This modification/hack allows you to promote/order one news article above another. The default behavior of the Nuke News module is to always put the most recent news item at the top of the chain. With this modification you can alter that behavior. Get it in the download area - free download. It is still considered experimental, but I have tested it pretty thoroughly. Download it here. Please post all bug reports here. Do not post bug reports in the comments of this article. I will not respond to them - sorry.
[UPDATED 4/29/2003]I have replaced the download with a modified nuke/html/admin/modules/stories.php file. That is the only file that has changed. If you downloaded before 18:25 hours on 4/29/2003, please redownload and you should be able to restore the default NULL values now.
Re: Nuke (v6.5) News Module Mod - Prioritize/Order Your Articles! (Score: 0) | ![]() | what happenes when you don't want the story pinned anymore? |
Re: Nuke (v6.5) News Module Mod - Prioritize/Order Your Articles! (Score: 1) by gcf on Tuesday, April 29, 2003 @ 14:54:57 CDT (User Info | Send a Message) http://ravenphpscripts.com | |
What should happen is that the value is restored to NULL, but MySQL is defaulting to 0. I will fix this this evening. |
Re: Nuke (v6.5) News Module Mod - Prioritize/Order Your Articles! (Score: 0) | ![]() | well, i installed, and it did what it said, BUT, when you try to change the integer back to 0 or nothing, the story does not return to its initial position. |
Re: Nuke (v6.5) News Module Mod - Prioritize/Order Your Articles! (Score: 1) by gcf on Tuesday, April 29, 2003 @ 14:53:30 CDT (User Info | Send a Message) http://ravenphpscripts.com | |
Well, MySQL is setting to 0 instead of NULL when the value is deleted, which is causing the problem. Until I can code a work-around you will just have to renumber your articles. Sorry. |
Fixed! - Re: Nuke (v6.5) News Module Mod - Prioritize/Order Your Articles! (Score: 1) | ![]() | I have replaced the download with a modified nuke/html/admin/modules/stories.php file. That is the only file that has changed. If you downloaded before 18:25 hours on 4/29/2003, please redownload and you should be able to restore the default NULL values now. |