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: How To Sort Thumbnails By Random  (Read 2036 times)

0 Members and 1 Guest are viewing this topic.

pressurecooker

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 35
    • Environmental Articles
How To Sort Thumbnails By Random
« on: May 27, 2008, 12:04:58 pm »

Hi,

I need to get my thumbnail views sorted by random.

I added the new option to $sort_array = array( in functions.inc.php and then a new option to the dropdown in admin.php - it doesn't do anything.

Then I found a piece of code in functions.inc.php starting with

Code: [Select]
case 'random': // Random pictures
                if ($META_ALBUM_SET && $CURRENT_CAT_NAME) {
                        $album_name = $lang_meta_album_names['random'].' - '. $CURRENT_CAT_NAME;
                } else {
                        $album_name = $lang_meta_album_names['random'];
                }
Is this something I need to play with?
I couldn't find anything in this board or documentation. Any suggestions much appreciated!
Logged
Join the green campaign - Environmental Articles
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 15 queries.