sorting private albums sorting private albums
 

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

sorting private albums

Started by Konstantinos, September 05, 2005, 06:54:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Konstantinos

how do i sort the private albums of the members ? they are sorted randonmly i dont want that thanx

Stramm

they're supposed to be sorted by username!!!

find in index.php the function list_users and modify the sql

I've modified mine already so I can't exactly say if it works for the standard coppermine (but I'm nearly sure it does)
"ORDER BY thumb_pid DESC"; should eg bring albums with the newest uploads to top

but if you mean the albums of a specific member inside his category.... each user can sort his albums with the album manager

Konstantinos

u mean in the list_albums() ? right ?

Stramm

no, list_users
when you click on user galleries then you see all users who have created albums and have pics in them.

Inside these categories the sort is done by the user

Konstantinos

list_users()
*
* Get a list of users galleries

there is no ORDER BY code in this part so i cant modify it to ORDER BY thumb_pid DESC

Stramm