Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: /lastup,2 only for the index.php view  (Read 8621 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.014 seconds with 19 queries.