News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

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