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

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

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 :)..