Sort order in "Edit pics" Sort order in "Edit pics"
 

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

Sort order in "Edit pics"

Started by DanielS, July 06, 2004, 12:57:56 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

DanielS

I have a large collection of pics in one album. I want to delete old pics, but the sort order is alphabetical (despite of "By date" in Control Panel"), and I cannot change it. Where can I set sort order on "Edit Pics" page?

Joachim Müller

Quote from: DanielS on July 06, 2004, 12:57:56 PMWhere can I set sort order on "Edit Pics" page?
Not at all in the user interface, you'll have to look into the code and modify the query.

GauGau

DanielS

#2
I cannot edit the code, because i'm total newbie in PHP!
Please, tell me, what and wnere should I edit?
I know, that this is in "editpics.php"...

By the way, I can provide you with a good russian translation of Coppermine, that I made for my site. Do you need it?

Joachim Müller

Quote from: DanielS on July 16, 2004, 06:20:55 PMBy the way, I can provide you with a good russian translation of Coppermine, that I made for my site. Do you need it?
Sure, translations are always welcome. Please refer to http://forum.coppermine-gallery.net/index.php?topic=4623.0 on this issue.

Haven't looked into this in detail, but I think, the code in question is    $sql =  "SELECT * ".
                        "FROM {$CONFIG['TABLE_PICTURES']} ".
                        "WHERE approved = 'NO' ".
                        "ORDER BY pid ".
                        "LIMIT $start, $count";


GauGau