forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: nomand on October 28, 2006, 03:48:24 am

Title: /lastup,2 only for the index.php view
Post by: nomand on October 28, 2006, 03:48:24 am
searched for this issue, nothing yet.

I want the "Last additions" with thumbnails appear only on the gallery home page, but it appears in the categories and albums as well. how do i make it so that it only appears on the home page?  www.nomand.ru/index.php

thanks. nomand
Title: Re: /lastup,2 only for the index.php view
Post by: Nibbler on October 28, 2006, 03:58:37 am
Quick mod to index.php

Code: [Select]
                    case 'lastup':
                        display_thumbnails('lastup', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        flush();
                        break;

change to

Code: [Select]
                    case 'lastup':
                    if ($cat == 0) {
                        display_thumbnails('lastup', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        flush();
                        }
                        break;
Title: Re: /lastup,2 only for the index.php view
Post by: nomand on October 28, 2006, 04:11:01 am
thanks! works perfect.
cheers man