Display "lastup,2" only on index? Display "lastup,2" only on index?
 

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

Display "lastup,2" only on index?

Started by net, August 22, 2008, 04:09:20 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

net

Hi,

Can't seem to figure this one out, i have my anycontent.php over for use so i guess i could use that for this purpose (it only displays on index if i remember correctly) , anyone able to give me some help?

I've searched the forums but to my surprise i could not find this.

net

I just saw my explanation is kinda flimsy, what i want is "lastup,2" only to show when category=0

Nibbler

Edit index.php accordingly. Find the lastup section


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


and add a category check


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

net