coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: Konstantinos on September 05, 2005, 06:54:11 PM

Title: sorting private albums
Post by: Konstantinos on September 05, 2005, 06:54:11 PM
how do i sort the private albums of the members ? they are sorted randonmly i dont want that thanx
Title: Re: sorting private albums
Post by: Stramm on September 05, 2005, 08:05:07 PM
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
Title: Re: sorting private albums
Post by: Konstantinos on September 06, 2005, 02:26:54 PM
u mean in the list_albums() ? right ?
Title: Re: sorting private albums
Post by: Stramm on September 06, 2005, 03:10:58 PM
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
Title: Re: sorting private albums
Post by: Konstantinos on September 06, 2005, 05:49:28 PM
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
Title: Re: sorting private albums
Post by: Stramm on September 06, 2005, 05:53:35 PM
in 1.3x there is