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: Removing last additions from a specific category  (Read 2669 times)

0 Members and 1 Guest are viewing this topic.

suzanitta

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Removing last additions from a specific category
« on: December 06, 2006, 01:12:33 pm »

I would like to remove the last additions only from user galleries category. Which part of the code do I have to edit?
« Last Edit: December 06, 2006, 04:54:18 pm by GauGau »
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Removing last additions from a specific category
« Reply #1 on: December 06, 2006, 01:22:45 pm »

Edit index.php

Replace

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

with

Code: [Select]
                    case 'lastup':
                        if ($cat < FIRST_USER_CAT && $cat != 1) {
                          display_thumbnails('lastup', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        }
                        flush();
                        break;
Logged
Chief Geek at Ranium Systems

suzanitta

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Removing last additions from a specific category
« Reply #2 on: December 06, 2006, 04:28:13 pm »

Thank you for your quick response  ;)
Logged
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 15 queries.