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: Most viewed and toprated lists only in main page?  (Read 4078 times)

0 Members and 1 Guest are viewing this topic.

Draiver

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Most viewed and toprated lists only in main page?
« on: July 16, 2004, 01:51:37 am »


I've configured to show those too lists, but now it shows those lists in all categories as well...Is there a way to get them showed only in the main page??
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Most viewed and toprated lists only in main page?
« Reply #1 on: July 16, 2004, 08:27:16 am »

out-of-the-box: no!
I remember someone has coded a hack that will do what you request for cpg1.2.1, might work with cpg1.3.x as well. Please search the cpg1.2 support board and the mods baord as well, as I can't remember the actual thread.

GauGau
Logged

Draiver

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Most viewed and toprated lists only in main page?
« Reply #2 on: July 16, 2004, 10:48:20 pm »

I found help how to show those everywhere except in main page...but not how to get them showed only in main page and not elsewhere...
Or then I didn't just find the right topic...so..can anyone find it or know how to solve this?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Most viewed and toprated lists only in main page?
« Reply #3 on: July 17, 2004, 09:55:02 am »

post a link to the topic you found...

GauGau
Logged

Draiver

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Most viewed and toprated lists only in main page?
« Reply #4 on: July 17, 2004, 12:38:59 pm »

http://forum.coppermine-gallery.net/index.php?topic=5434.0

So I guess that " if ($cat!=0) { " should replace with something else...
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Most viewed and toprated lists only in main page?
« Reply #5 on: July 17, 2004, 12:47:55 pm »

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

Draiver

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Most viewed and toprated lists only in main page?
« Reply #6 on: July 17, 2004, 12:57:18 pm »

that works! thanks again :)
starting to learn these things  ;)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Logged

Draiver

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Most viewed and toprated lists only in main page?
« Reply #8 on: July 17, 2004, 01:38:41 pm »

that might be useful..have to bookmark..thx
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.