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: Removing Random Images from Album List  (Read 2621 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: 47844
  • 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.014 seconds with 20 queries.