How to hide {MAIN_MENU1} if not logged in ? How to hide {MAIN_MENU1} if not logged in ?
 

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

How to hide {MAIN_MENU1} if not logged in ?

Started by mp3k, February 21, 2005, 06:02:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mp3k

... I have modified my gallery so you MUST be logged in if you want to see anything, when I browse to login.php I can see MAIN MENU 1 but not MAIN MENU 2... how to hide also menu 1 if not logged in ? ???

Joachim Müller

post a link and test account (non-admin)

Joachim

mp3k

nevermind, heh.. I was talking abuout MAIN1 menu but the problem was MAIN2 menu.. I edited the theme.php ( hardwired )

added few more..     

if (!USER_CAN_CREATE_ALBUMS) {
    template_extract_block($template_main_menu, 'most_viewed');...

thingys and now I can hide everything from non regged ppl :)..