Topic: Aditional menu item: visible only when logged in

Hi all,

I added an additional menu item through the Options admin section.
Is there any way to have this new menu item show up only if users are logged in ?
I'll be happy even if I have to hardcode this menu item on a file.

Thx a bunch

2 (edited by FireWolf 2008-08-28 22:43)

Re: Aditional menu item: visible only when logged in

ok I figured it out. In case anyone else has a similar need, u need to edit the /include/functions.php and add a new link element. I added this in ligne 296 and 305:

$links[] = '<li id="navsearch"><a href="your url here">'.$lang_common['Your Menu Item name'].'</a>';

now there's a last step with your language files. Open up common.php in the respective language folders and add somewhere (I added this in the Miscellaneous group) the definition and it's translation.