Advertisement:

Author Topic: Order News  (Read 34384 times)

Offline C4G-TK

  • Sr. Member
  • ****
  • Posts: 961
  • SHOW others respect & you GET respect in return.
Re: Order News
« Reply #40 on: December 15, 2009, 11:34:45 PM »
This is another one of those mods that should be standard in SMF.  In fact, most ALL of the re-ordering mods should be standard.  (News, Stickied Topics, Profile Fields)  Can't wait for you to update.  It really does make things easier for Admins. :)
-img removed-

Offline PalmBeachPreps

  • Jr. Member
  • **
  • Posts: 169
  • Gender: Male
    • Palm Beach Preps
Re: Order News
« Reply #41 on: December 23, 2009, 10:55:49 PM »
Any chance that this will be updated for RC2?

Offline gbsothere

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,780
  • I'm a Pappy!
Re: Order News
« Reply #42 on: December 28, 2009, 04:47:14 PM »
Motoko-chan, I have a question (and no hurry on the answer; just when you find time):

My main forum is 1.1.11, Default theme and I would like, very much, to be able to use your mod to change the order of the news, since we use the news fader probably more than most features.  Here is my problem:

I wanted to be able to incorporate some BBC drop down menus (as one finds in the posting area) in the news area and finally was able to achieve that here:

http://www.simplemachines.org/community/index.php?topic=337912.msg2276542#msg2276542

I find that your mod uses some of the same blocks of code I use in the ManageNews.template.php.  The main one I'd like to ask you about is here:

Code: [Select]
<td align="center">
<a href="#" onclick="newsMove(\'newsarticle', $admin_news['id'], '\', \'newsarticle' , $admin_news['id'] - 1 , '\'); return false;"><img src="', $settings['images_url'], '/sort_up.gif" alt="', $txt['news_move_up'], '" /></a>
</td><td align="center">
<a href="#" onclick="newsMove(\'newsarticle', $admin_news['id'], '\', \'newsarticle' , $admin_news['id'] + 1 , '\'); return false;"><img src="', $settings['images_url'], '/sort_down.gif" alt="', $txt['news_move_down'], '" /></a>
</td><td align="center">
<div style="margin-bottom: 2ex;"><textarea rows="3" cols="65" name="news[]" id="newsarticle', $admin_news['id'], '" style="width: 85%;">', $admin_news['unparsed'], '</textarea></div>

The id="newsarticle"

In my BBC drop down code, in that particular block of code, id must be id="box'.$count.'".  Am I right in thinking that, since that's the case, I cannot use this mod, if I want to keep my BBC drop down menus functioning as they should?  There is no way for two mods (mine really isn't a mod) to have their own id in the same block of code?

Here's a sample of what I'm trying to preserve:




Thank you for any insight and, again, absolutely no hurry.   :)
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.
I Don't Want To Grow Old Alone

It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.


A reminder about admin / ftp passwords etc.

Offline C4G-TK

  • Sr. Member
  • ****
  • Posts: 961
  • SHOW others respect & you GET respect in return.
Re: Order News
« Reply #43 on: January 02, 2010, 06:10:45 PM »
Tried to install the lastest update on my RC2 forum and got the following error.
I understand when it says TEST FAILED< but what is a MODIFICATION PARSE ERROR?

Image below:
-img removed-

Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,068
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Re: Order News
« Reply #44 on: January 02, 2010, 07:24:01 PM »
It means it didn't understand the modification instructions, possibly due to some formatting problem. I've seen issues in some cases with bad extraction of mods. Try manually extracting the modification to its own folder in the Packages directory and see if it works properly.
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


Offline C4G-TK

  • Sr. Member
  • ****
  • Posts: 961
  • SHOW others respect & you GET respect in return.
Re: Order News
« Reply #45 on: January 03, 2010, 01:15:13 AM »
I tried to take another look at it and parsed it to do it manually.

There is only one edit showing to do when I parse and I did it which is the Modifications.english file edit.

What happened to the ManageNews.template.php edit?  Look at the package when you parse it in on the mod site.  There is only the above edit showing to do that is required.  All the rest are simply language edits that are not needed.  It says nothing to do currently as ManageNews.template.php like it did previously.

Your XML file shows to do the ManageNews.template.php edit though.  I don't think it is in my end or else the package would parse correctly on this site.
« Last Edit: January 03, 2010, 09:35:56 AM by C4G-TK »
-img removed-

Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,068
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Re: Order News
« Reply #46 on: January 03, 2010, 02:28:15 AM »
Odd. I'll look into it. I confirmed it applied cleanly on my test environment.
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


Offline C4G-TK

  • Sr. Member
  • ****
  • Posts: 961
  • SHOW others respect & you GET respect in return.
Re: Order News
« Reply #47 on: January 03, 2010, 09:36:17 AM »
I parsed it here by selecting RC2 and it doesn't show the ManageNews.template edit.

http://custom.simplemachines.org/mods/index.php?mod=745
-img removed-

Offline C4G-TK

  • Sr. Member
  • ****
  • Posts: 961
  • SHOW others respect & you GET respect in return.
Re: Order News
« Reply #48 on: February 21, 2010, 03:08:20 AM »
Tried to install the lastest update on my RC2 forum and got the following error.
I understand when it says TEST FAILED< but what is a MODIFICATION PARSE ERROR?

Ok, I tried this on a second forum on a different server and I still get the same error.
Has anyone gotten this to install on an RC2 forum?
-img removed-

Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,068
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Re: Order News
« Reply #49 on: February 21, 2010, 02:48:30 PM »
I haven't been able to reproduce the issue. It might be an issue with gzip handling on some servers.
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


Offline [unplugged]

  • Sophist Member
  • *****
  • Posts: 1,312
  • Gender: Male
  • I know just enough to get me in trouble...
    • Empire of the Sun
Re: Order News
« Reply #50 on: February 21, 2010, 02:58:30 PM »
I tried to install it on my test site and get the same error as above. I have a screenshot here if it helps at all:

« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »


Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,068
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Re: Order News
« Reply #51 on: February 21, 2010, 03:37:05 PM »
I tried to install it on my test site and get the same error as above. I have a screenshot here if it helps at all:

Specs on that please. Also, x86_64 or i3/4/5/686? Oh, and platform (since you can run PHP on Windows).
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


Offline [unplugged]

  • Sophist Member
  • *****
  • Posts: 1,312
  • Gender: Male
  • I know just enough to get me in trouble...
    • Empire of the Sun
Re: Order News
« Reply #52 on: February 21, 2010, 03:58:16 PM »
It's calling install-20.xml from the package-info.xml, but that file is not in the package, only the install.xml is, resulting in that error.
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »


Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,068
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Re: Order News
« Reply #53 on: February 22, 2010, 11:06:07 AM »
Hmmm. I do have install-20.xml in my source tree, but it seems I forgot to check it in to version control (I'm at my desktop for a few minutes this morning). I'll try and get a patch release out tomorrow (Tuesday) when I'm home.

Edit: For those really itching to get something done today, I'm attaching install-20.xml. Extract the mod to an empty directory, then place into the same directory as install.xml and archive the mess back up.

Edit: Released 1.0.9, removed attachment.
« Last Edit: March 02, 2010, 08:02:34 PM by Motoko-chan »
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


Offline C4G-TK

  • Sr. Member
  • ****
  • Posts: 961
  • SHOW others respect & you GET respect in return.
Re: Order News
« Reply #54 on: February 22, 2010, 04:37:04 PM »
Thanks for taking a look at it, Motoko-chan!

After you get the updated version done, nudge them to make this standard in SMF.  This really is a great tool that should be standard!
-img removed-

Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,068
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Re: Order News
« Reply #55 on: March 02, 2010, 08:02:06 PM »
1.0.9 has been released with the missing file for SMF 2.0.
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


Offline C4G-TK

  • Sr. Member
  • ****
  • Posts: 961
  • SHOW others respect & you GET respect in return.
Re: Order News
« Reply #56 on: March 03, 2010, 12:25:09 AM »
Cool deal!  I would update my site now, but the connection sucks here in Aruba.  Luckily, the drinks, beach, weather, water, and everything else is FANTASTIC though!  Was just signing in to check on things at SMF before going to bed.  This was a cool bit of good news to see.  Thanks MOTOKO!!
-img removed-

Offline Bugo

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,533
  • Gender: Male
    • dragomano on GitHub
    • @dragomano on Twitter
    • Russian translations for SMF mods
Re: Order News
« Reply #57 on: March 04, 2010, 02:11:46 PM »
Russian text:

Code: [Select]
//Order News
$txt['news_move_up'] = 'Переместить вверх';
$txt['news_move_down'] = 'Переместить вниз';
$txt['news_warn_header'] = 'Предупреждение:';
$txt['news_warn_body'] = 'Вы изменили порядок новостей. Для принятия изменений нажмите кнопку "Сохранить".';


Offline TurtleKicker

  • Full Member
  • ***
  • Posts: 416
Re: Order News
« Reply #58 on: March 12, 2010, 11:50:45 AM »
Thanks for updating this for RC3, Motoko. One of those "duh" cricial features that should be in SMF by default.

Offline FireDitto

  • Full Member
  • ***
  • Posts: 617
  • Gender: Female
  • Shadow In The Flame
    • @SPWeyr on Twitter
    • Second Pass Weyr RPG
Re: Order News
« Reply #59 on: November 06, 2010, 07:40:41 PM »
Will this be updated for RC4?
Second Pass Weyr
An AU Pernse RPG

SMF 2.0.6 with SP 2.3.5