coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: deathrider on March 04, 2007, 06:17:15 PM

Title: How can i limit the toprated images pages
Post by: deathrider 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...
Title: Re: How can i limit the toprated images pages
Post by: Joachim Müller 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).
Title: Re: How can i limit the toprated images pages
Post by: deathrider on March 05, 2007, 03:48:01 PM
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 !

Title: Re: How can i limit the toprated images pages
Post by: Nibbler on March 05, 2007, 04:56:19 PM
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);
Title: Re: How can i limit the toprated images pages
Post by: deathrider on March 05, 2007, 05:32:37 PM
thank you very much! i wish i could buy you some beer :)
Title: Re: How can i limit the toprated images pages
Post by: Joachim Müller on March 06, 2007, 07:41:35 AM
Oh, you actually can - see We need your help (http://forum.coppermine-gallery.net/index.php?topic=14227.0)
Title: Re: How can i limit the toprated images pages
Post by: deathrider on March 06, 2007, 03:04:33 PM
if i'l find some way that i can help i will ! thanks anyway