Only one row "lastup" when not on main page Only one row "lastup" when not on main page
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Only one row "lastup" when not on main page

Started by altenae, October 29, 2011, 05:16:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

altenae

I want only one row "lastup" when not on main page.

On the main page I have two rows last addition.
I want only one row when you go into a category.

I was thinking about this code in the index.php:

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

I could add an ELSE statement.
But how do I override the Lastup,2 in the config into Lastup,1 ?

Edward


altenae