coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: paquets on September 02, 2009, 12:41:13 PM

Title: Last Updated instead of Last Uploaded
Post by: paquets on September 02, 2009, 12:41:13 PM
Hi,

Sorry of this has been asked and answered before. I searched the board and could not find an answer...

On the homepage of a CPG site, would it be possible to show the "last updated" files instead of the "last additions"?

Right now to do that, I go in PHPmyAdmin to change the number of the pic entry, which is an ok work-around but seems a bit complex. :P

site: adpharm.net (http://adpharm.net)

Title: Re: Last Updated instead of Last Uploaded
Post by: Nibbler on September 02, 2009, 02:15:57 PM
What do you mean by 'last updated'?
Title: Re: Last Updated instead of Last Uploaded
Post by: paquets on September 02, 2009, 02:34:30 PM
Basically that if an image has information added to it (caption/description/keyword) it would go up on the list. I suppose this would have to works with the date and time the image was last edited as opposed to using the image number.
So basically, even if image "a" was uploaded last, image "b" would be the first in the list because it was edited last.
Make sense?
Title: Re: Last Updated instead of Last Uploaded
Post by: Nibbler on September 02, 2009, 02:44:47 PM
Yeah. That's not a trivial mod to make though - the edit date/time is not recorded.
Title: Re: Last Updated instead of Last Uploaded
Post by: paquets on September 02, 2009, 02:47:34 PM
Quote from: Nibbler on September 02, 2009, 02:44:47 PM
Yeah. That's not a trivial mod to make though - the edit date/time is not recorded.

I see. Thanks for the reply and if I manage to get it to record the update date and do what I want it to do, I'll add it to the mods.

Thanks again!