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: How can i limit the toprated images pages  (Read 2573 times)

0 Members and 1 Guest are viewing this topic.

deathrider

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
How can i limit the toprated images pages
« on: March 04, 2007, 06:17:15 pm »

how can i limit the "toprated" page ... i want to display only 1 page , and not all the pages i have...
« Last Edit: March 05, 2007, 05:34:27 pm by Nibbler »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How can i limit the toprated images pages
« Reply #1 on: March 05, 2007, 07:27:54 am »

toprated is a "meta album", as well as most viewed and last uploaded. It displays as many files as there are. There's no toggle to limit it. If you need a limit, you have to code it in (but it doesn't make sense).
Logged

deathrider

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: How can i limit the toprated images pages
« Reply #2 on: March 05, 2007, 03:48:01 pm »

maybee you can help me with the code... or something , my website is , http://Http://katana.110mb.com , you can find there page with top rated pics... and you will understand why i need this function , maybee you can help!

Thanks anyway !

Logged

Nibbler

  • Guest
Re: How can i limit the toprated images pages
« Reply #3 on: March 05, 2007, 04:56:19 pm »

Change this line in include/functions.inc.php

Code: [Select]
                theme_display_thumbnails($thumb_list, $thumb_count, $album_name, $album, $cat, $page, $total_pages, is_numeric($album), $display_tabs);
to

Code: [Select]
                theme_display_thumbnails($thumb_list, $thumb_count, $album_name, $album, $cat, $page, $total_pages, is_numeric($album), $album == 'toprated' ? false : $display_tabs);
Logged

deathrider

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: How can i limit the toprated images pages
« Reply #4 on: March 05, 2007, 05:32:37 pm »

thank you very much! i wish i could buy you some beer :)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How can i limit the toprated images pages
« Reply #5 on: March 06, 2007, 07:41:35 am »

Oh, you actually can - see We need your help
Logged

deathrider

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: How can i limit the toprated images pages
« Reply #6 on: March 06, 2007, 03:04:33 pm »

if i'l find some way that i can help i will ! thanks anyway
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.