Advanced search  

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]

Pages: [1]   Go Down

Author Topic: How to hide {MAIN_MENU1} if not logged in ?  (Read 2847 times)

0 Members and 1 Guest are viewing this topic.

mp3k

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
How to hide {MAIN_MENU1} if not logged in ?
« 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 ? ???
« Last Edit: February 22, 2005, 06:56:44 pm by TranzNDance »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How to hide {MAIN_MENU1} if not logged in ?
« Reply #1 on: February 22, 2005, 09:26:46 am »

post a link and test account (non-admin)

Joachim
Logged

mp3k

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: How to hide {MAIN_MENU1} if not logged in ?
« Reply #2 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 :).. 
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.