/lastup,2 only for the index.php view /lastup,2 only for the index.php view
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

/lastup,2 only for the index.php view

Started by nomand, October 28, 2006, 03:48:24 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nomand

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

Nibbler

Quick mod to index.php


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


change to


                    case 'lastup':
                    if ($cat == 0) {
                        display_thumbnails('lastup', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        flush();
                        }
                        break;

nomand