You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 

Author: Evaders99PostPosted: Tue Oct 24, 2006 6:03 pm    Post subject:

I wonder if you can just update the date posted when you edit it, that would do what you want I think



Nuke Cops -> Core Chargers

All times are GMT - 8 Hours

Page 1 of 1

Powered by phpBB © 2001,2002 phpBB Group
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 241 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Edited news on top Edited news on top

Nuke Cops -> Core Chargers

Author: MiLLion PostPosted: Fri Oct 06, 2006 5:13 am    Post subject: Edited news on top

Hey, I want the edited news stories on my website to be displayed on top of the news list, if the news have been edited.

I have made up a way to do this in my mind, but i can't figure out how to do it in the codings.. My php skills are OK.

1. Alter the nuke_stories table by adding a column "edited". If a story has been edited either yes/1 or no/0 will be sat as a value in the field.

2. Sort the news by editen, then by id, but this is something i don't know how to do. I know its easy to sort by either eidted or id, but i don't know how to sort by one column, then sort by another.

Any ideas?
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.049 Seconds - 195 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
added by Evaders - DO NOT REMOVE
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::