How can i limit the toprated images pages How can i limit the toprated images pages
 

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]

Main Menu

How can i limit the toprated images pages

Started by deathrider, March 04, 2007, 06:17:15 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

deathrider

how can i limit the "toprated" page ... i want to display only 1 page , and not all the pages i have...

Joachim Müller

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).

deathrider

maybee you can help me with the code... or something , my website is , 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 !


Nibbler

Change this line in include/functions.inc.php

                theme_display_thumbnails($thumb_list, $thumb_count, $album_name, $album, $cat, $page, $total_pages, is_numeric($album), $display_tabs);

to

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

deathrider

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

Joachim Müller


deathrider

if i'l find some way that i can help i will ! thanks anyway