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

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

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 2 Guests 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