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

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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