Advanced search  

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]

Pages: [1]   Go Down

Author Topic: sorting private albums  (Read 3370 times)

0 Members and 1 Guest are viewing this topic.

Konstantinos

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 120
sorting private albums
« 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
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: sorting private albums
« Reply #1 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)
Code: [Select]
"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

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 120
Re: sorting private albums
« Reply #2 on: September 06, 2005, 02:26:54 pm »

u mean in the list_albums() ? right ?
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: sorting private albums
« Reply #3 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

Konstantinos

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 120
Re: sorting private albums
« Reply #4 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
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: sorting private albums
« Reply #5 on: September 06, 2005, 05:53:35 pm »

in 1.3x there is
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 16 queries.