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: Display "lastup,2" only on index?  (Read 2947 times)

0 Members and 1 Guest are viewing this topic.

net

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 88
Display "lastup,2" only on index?
« on: August 22, 2008, 04:09:20 am »

Hi,

Can't seem to figure this one out, i have my anycontent.php over for use so i guess i could use that for this purpose (it only displays on index if i remember correctly) , anyone able to give me some help?

I've searched the forums but to my surprise i could not find this.
Logged

net

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 88
Re: Display "lastup,2" only on index?
« Reply #1 on: August 22, 2008, 12:02:23 pm »

I just saw my explanation is kinda flimsy, what i want is "lastup,2" only to show when category=0
Logged

Nibbler

  • Guest
Re: Display "lastup,2" only on index?
« Reply #2 on: August 22, 2008, 12:15:21 pm »

Edit index.php accordingly. Find the lastup section

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

and add a category check

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

net

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 88
Re: Display "lastup,2" only on index?
« Reply #3 on: August 22, 2008, 12:20:50 pm »

thanks!
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.