Removing Random Images from Album List Removing Random Images from Album List
 

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

Removing Random Images from Album List

Started by rlm, November 22, 2004, 02:30:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rlm

hi,

may I ask, how can I remove Random Pics from the Album List but keep it on the Category List?

Richard

Joachim Müller

you start by reading the documentation or the faq. If you still wouldn't have been able to find an answer to your question, you would have searched the board.

Joachim

rlm

hi Gaugau,

i did all that. are you saying that this question has been answered already? or maybe, i didn't explain it clearly enough:

I have included the random images on the main page when categories are shown. when a category is selected, however, and the albums within it are listed, so too are the random images. this may be normal behaviour, but in my case it's not wanted. i only want the random images to appear on the category listing, not the album listing.
:-\\

donnoman

You can make any of the items on the main page conditional based on the cat being 0, like anycontent.

open your index.php at around line 700 you should find the case statement for "random" make it look like this


           case 'random':
               if ($cat == 0) {
                 display_thumbnails('random', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
               }
               flush();
               break;