Removing last additions from a specific category Removing last additions from a specific category
 

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]

Main Menu

Removing last additions from a specific category

Started by suzanitta, December 06, 2006, 01:12:33 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

suzanitta

I would like to remove the last additions only from user galleries category. Which part of the code do I have to edit?

Abbas Ali

Edit index.php

Replace


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


with


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

suzanitta