How To Sort Thumbnails By Random How To Sort Thumbnails By Random
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

How To Sort Thumbnails By Random

Started by pressurecooker, May 27, 2008, 12:04:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pressurecooker

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

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!
Join the green campaign - Environmental Articles