Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: /lastup,2 only for the index.php view  (Read 8646 times)

0 Members and 1 Guest are viewing this topic.

nomand

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
/lastup,2 only for the index.php view
« 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
« Last Edit: October 28, 2006, 04:14:50 am by Nibbler »
Logged

Nibbler

  • Guest
Re: /lastup,2 only for the index.php view
« Reply #1 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;
Logged

nomand

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
Re: /lastup,2 only for the index.php view
« Reply #2 on: October 28, 2006, 04:11:01 am »

thanks! works perfect.
cheers man
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 19 queries.