Advertisement:

Author Topic: Order News  (Read 34414 times)

Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,068
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Order News
« on: April 04, 2007, 02:24:12 AM »
Link to Mod

When using the news fader in SMF, items are displayed in the order they are entered. There has been expressed a desire to have an easy way to re-order items without tedious re-entry.

Order News adds a feature to the news administation page that lets an administrator re-order their news items as they like.


Update:

Version 1.0.1 has been released to fix a few typos in the install script. These should be non-critical so updating a working install is not needed.

Version 1.0.2 has been released to allow installs on SMF 1.1.3.
« Last Edit: July 07, 2007, 01:54:57 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 shadow82x

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,279
  • Gender: Male
    • cmblaber on LinkedIn
Re: Order News
« Reply #1 on: April 04, 2007, 03:30:42 PM »
Very nice mod I have been waiting for a mod like this too :)  
Colin B
Former Spammer, Customize, & Support Team Member

Offline dDOTr2

  • Semi-Newbie
  • *
  • Posts: 51
Re: Order News
« Reply #2 on: April 08, 2007, 06:31:15 AM »
great mod. thanks a lot for coding this.

Offline Azashub

  • Semi-Newbie
  • *
  • Posts: 35
Re: Order News
« Reply #3 on: April 16, 2007, 09:51:41 AM »
Exactly what I was looking for ... sad it's not support on 1.1 RC2 :(

Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,068
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Re: Order News
« Reply #4 on: April 16, 2007, 11:09:24 AM »
Sorry, I won't support pre-release versions of the 1.1 branch. I highly encourage you to update SMF as soon as convenient as RC2 had some bad bugs in it.
Motoko-chan
Director, Simple Machines

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


Offline SpelingMistakes

  • Jr. Member
  • **
  • Posts: 223
    • ArmyInfoForum
Re: Order News
« Reply #5 on: May 27, 2007, 11:46:49 AM »
Is it possible to upgrade this mod this way

Simply put numbers in some box and than save it – Now when I have 12 news and I want to add another one in the “middle” I must click and save 6 times till I move desired news in the middle.

That is first thing – next is

Is it possible to add another category of news which will be special in a way that those has special order of displaying – like this

I create one news and I want it display every third change of a news – that will “reorder” my first 12 and I will have another special which will show every 3 times news has change. After that news start to show from beginning.

That will work in all occasions – for instance – I have 5 news and my special news will show in 3 place and in 6 etc which etc …..

I hope so I explained how this works and what I am in need for :)
There is a huge difference between living and being alive!

Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,068
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Re: Order News
« Reply #6 on: May 27, 2007, 12:19:12 PM »
The first item works the way it does because of how news is stored in the database. The data is stored so that the entries are saved in the order they are in the form.

The second one would require a complete overhaul of the news system, and I unfortunately don't have the time right now to code something that big. You are welcome to make a request for it in the mod requests board.

Do note that the news line displays a random entry each time the page is refreshed. The only thing affected by the order of the entries is the news fader.
Motoko-chan
Director, Simple Machines

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


Offline Iron IC

  • Semi-Newbie
  • *
  • Posts: 92
  • Gender: Male
Re: Order News
« Reply #7 on: June 06, 2007, 09:04:04 AM »
Hello there!

Great mod you made here. It works as it should, but unfortunately I get error messages in admin area  under Maintainance -> Logged errors.

I run version 1.1.2. Any chance for at fix for this problem? That would be great. Thank you!

Regards Iron IC


Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,068
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Re: Order News
« Reply #8 on: June 06, 2007, 10:53:17 AM »
It would help greatly if you could provide the content of the errors.
Motoko-chan
Director, Simple Machines

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


Offline Iron IC

  • Semi-Newbie
  • *
  • Posts: 92
  • Gender: Male
Re: Order News
« Reply #9 on: June 06, 2007, 12:08:42 PM »
Okey, here are a few i didn`t delete yet. Currently I have uninstalled it, but I am going to activate it again if I get a solution to the problem. Thanks

8: Undefined index: quick_theme_changer
Fil: /usr/home/web/webx/byggmuskler.no/forum/Themes/default/Errors.template.php (eval?)
Linje: 368

8: Undefined index: news_move_up
Fil: /usr/home/web/x/byggmuskler.no/forum/Themes/default/ManageNews.template.php (eval?)
Linje: 61

8: Undefined index: news_move_down
Fil: /usr/home/web/webx/byggmuskler.no/forum/Themes/default/ManageNews.template.php (eval?)
Linje: 63

8: Undefined index: news_warn_body
Fil: /usr/home/web/webx/byggmuskler.no/forum/Themes/default/ManageNews.template.php (eval?)
Linje: 43

8: Undefined index: news_warn_header
Fil: /usr/home/web/webx/byggmuskler.no/forum/Themes/default/ManageNews.template.php (eval?)
Linje: 41

Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,068
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Re: Order News
« Reply #10 on: June 07, 2007, 12:06:07 AM »
Do you happen to be using UTF-8? If so, you'll want to copy the contents from Themes/default/languages/Modifications.english.php to Themes/default/languages/Modifications.english-utf8.php
Motoko-chan
Director, Simple Machines

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


Offline Iron IC

  • Semi-Newbie
  • *
  • Posts: 92
  • Gender: Male
Re: Order News
« Reply #11 on: June 07, 2007, 11:49:22 AM »
I guess mean copy to modifications.norwegian-utf8.php? It worked! Thank you :)

Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,068
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Re: Order News
« Reply #12 on: June 07, 2007, 07:17:41 PM »
Glad to hear it worked. If you would like to contribute localized strings for this mod, PM me with the translation and the language file name (I'll forget if you don't) and I'll add them to the next version.
Motoko-chan
Director, Simple Machines

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


Offline OZSlayer

  • Semi-Newbie
  • *
  • Posts: 47
  • Gender: Male
  • Always Moving Forward
    • Random As Website
Re: Order News
« Reply #13 on: June 16, 2007, 11:15:43 PM »
Hi guys,
I get the following text show up at the top of my forums and i can seem to find where it is comming from. I thinki it has something to do with the order news mod.
 
//Order News $txt['news_move_up'] = 'Move Up'; $txt['news_move_down'] = 'Move Down'; $txt['news_warn_header'] = 'Alert:'; $txt['news_warn_body'] = 'You have changed the order of the news items. You must save for the changes to apply.';

See Forum here http://www.randomas.com/smf/index.php

Thanks OZSlayer

Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,068
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Re: Order News
« Reply #14 on: June 17, 2007, 04:14:40 AM »
Sometimes mods will break the language file.

Make sure Modifications.english.php has the <?php and the ?> at the beginning and end of the file respectively, and that they each have the whole line to themselves.
Motoko-chan
Director, Simple Machines

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


Offline OZSlayer

  • Semi-Newbie
  • *
  • Posts: 47
  • Gender: Male
  • Always Moving Forward
    • Random As Website
Re: Order News
« Reply #15 on: June 17, 2007, 09:08:27 PM »
Hi, yes it was the >?  The mod had installed it self after the >?

Thanks OZSlayer

Offline kill3r

  • Semi-Newbie
  • *
  • Posts: 88
  • Gender: Male
Re: Order News
« Reply #16 on: July 07, 2007, 08:16:11 AM »
This is really a great feature. i tried installing this on 1.1.3 but its incompatible. can i edit the package info file or need to wait for any update ?
thanks

Offline TrueSatan

  • SMF Hero
  • ******
  • Posts: 1,783
Re: Order News
« Reply #17 on: July 07, 2007, 10:36:06 AM »
@ kill3r

A quick compatibility update version for you
« Last Edit: July 07, 2007, 01:23:18 PM by Motoko-chan »

Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,068
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Re: Order News
« Reply #18 on: July 07, 2007, 01:23:59 PM »
Please do not post unauthorized copies of the mod without asking permission. I have removed the attachment.


Update: Added a 1.1.3-compatible version to the downloads.
« Last Edit: July 07, 2007, 01:54:21 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 kill3r

  • Semi-Newbie
  • *
  • Posts: 88
  • Gender: Male
Re: Order News
« Reply #19 on: July 08, 2007, 12:59:19 PM »
thanks both of you ppl.