Advanced search  

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

Pages: [1]   Go Down

Author Topic: Removing Random Images from Album List  (Read 3261 times)

0 Members and 1 Guest are viewing this topic.

rlm

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Removing Random Images from Album List
« on: November 22, 2004, 02:30:58 pm »

hi,

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

Richard
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Removing Random Images from Album List
« Reply #1 on: November 22, 2004, 04:16:06 pm »

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
Logged

rlm

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: Removing Random Images from Album List
« Reply #2 on: November 22, 2004, 05:44:44 pm »

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.
 :-\\
Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: Removing Random Images from Album List
« Reply #3 on: November 25, 2004, 06:32:51 pm »

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

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

Page created in 0.039 seconds with 20 queries.