The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
![]()
I created a new dropdown link in the NAVBAR that displays online tools (see code below). These tools should be available for anyone thats logged into my site. currently their only available for users that belong to the Admin Usergroup (6). When your not logged in, the link should not display in the Navbar (which works fine).
If I remove theis line from the code: <if condition="$show['admincplink']"> along with the trailing </if>. Users that are not logged into the site will see the drop-down menu in teh Navbar, but it does not display the links within. If a registerd user logs in, the links with work fine. I guess what I need to know is how do I remove the link from the Navbar when a user is not logged in, but when a user logs in (regardless of their Usergroup permissions), the user can navigate the drop-down menu. I already know how to restrict items in a drop-down menu to specific Usergroups. Use this code: <if condition="in_array($bbuserinfo['usergroupid'], array(6, 9))"> <!-- NEOSMUT TOOLS --> <if condition="$show['admincplink']"> <if condition="$show['popups']"> <!-- start vBMenu control element --> <td width="67" height="29" id="NeoTools"><a href="$vbphrase[neotools]#"><img id="nav_menu" src="$stylevar[imgdir_misc]/nav_tools.gif" width="67" height="29" border="0" alt="" /></a><script type="text/javascript"> vbmenu_register("NeoTools", 1);</script></td> <!-- end vBMenu control element --> </if> </if> |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|