Changing Random from last to first upload Changing Random from last to first upload
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Changing Random from last to first upload

Started by KDB9000, December 30, 2007, 09:58:15 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

KDB9000

Where is the code stored that will set the image to the last uploaded? I would like to change it so it uses the first uploaded image and not the last.

KDB9000

Come on. Someone has to know. Part of this question was in another post. Please check:

http://forum.coppermine-gallery.net/index.php?topic=49270.0

I want to change the random pic to be the first pic uploaded instead of the last one.

Nibbler

Look in index.php for the 2 uses of

max( p.pid )  AS last_pid

and change the max to min.