coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Permissions & Access Rights => Topic started by: mp3k on February 21, 2005, 06:02:32 PM

Title: How to hide {MAIN_MENU1} if not logged in ?
Post by: mp3k on February 21, 2005, 06:02:32 PM
... 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 ? ???
Title: Re: How to hide {MAIN_MENU1} if not logged in ?
Post by: Joachim Müller on February 22, 2005, 09:26:46 AM
post a link and test account (non-admin)

Joachim
Title: Re: How to hide {MAIN_MENU1} if not logged in ?
Post by: mp3k on February 22, 2005, 05:30:25 PM
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 :)..