PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
j4rdin
Worker
Worker


Joined: May 26, 2006
Posts: 147
Location: West Sussex - UK

PostPosted: Thu Jan 14, 2010 5:05 pm Reply with quote Back to top

Is it possible to change the order of the news items displayed in the news module. I need to be able to move posts about in the module so that they are displayed in order of "date occurring" rather than when they have been entered onto the site. Something similar to the block display admin module would be very useful.
View user's profile Send private message Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Sat Jan 16, 2010 9:02 am Reply with quote Back to top

You could try to change the SELECT statement that is within the function theindex() from:

Code:

ORDER BY s.sid DESC


to

Code:

ORDER BY s.time DESC


Just be sure to take a backup of your script first or test the change on a local copy.
View user's profile Send private message Visit poster's website
j4rdin
Worker
Worker


Joined: May 26, 2006
Posts: 147
Location: West Sussex - UK

PostPosted: Sun Jan 17, 2010 10:00 am Reply with quote Back to top

Hi Montego, probably wasn't very clear in the original post.
I don't want to change the order of the displayed posts as such. What has happened is that I have posted some news stories in the site and then discovered that I have missed some posts out.
When I then put them onto the site they get the latest post ID number and are normally displayed first (at the top) in the news module.
I need an easier way to re arrange the order in which the posts are displayed, regardless of the post ID number.
For instance be able to move them up or down the list, in a similar way to how we can move the order of displayed blocks in the block admin module. Hope this is clearer.
View user's profile Send private message Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Tue Jan 19, 2010 8:28 pm Reply with quote Back to top

You can do exactly that by virtue of the change I suggested above. Change the news article posting date/time and it is descending order by date/time.
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum