The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Okay the code pasted below is in my NAVBAR. Basically I created a drop down menu which contains all my Admin functions - including Admin CP's for other addons etc...
What it does right now is display in the NAVBAR only for users that belong to the Admin USERGROUP (6). It appears that it's only looking for USERGROUP (6) from the Primary Usergroup field and not the Additional (Secondary) Usergroup field. How can I alter this code to also look for Admin USERGROUP (6) if a users Additional Usergroup field is set to Admin? Note: This question doesn't only apply to the Admin USERGROUP (6). I'll use this code for other instances. Example: User one's Primary Usergroup is Team Member and User two's Secondary Usergroup is Team Member. I want both users to have access to a certain area of the site w/out having to create a compeltly seperate USERGROUP and assigning both of the users to that new USERGROUP as their primary. <!-- ADMIN TOOLS --> <if condition="in_array($bbuserinfo['usergroupid'], array(6))"> <if condition="$show['admincplink']"> <if condition="$show['popups']"> <!-- start vBMenu control element --> <td width="67" height="29" id="AdminTools"><a href="$vbphrase[admintools]#"><img id="nav_menu" src="$stylevar[imgdir_misc]/nav_admin.gif" width="67" height="29" border="0" alt="" /></a><script type="text/javascript"> vbmenu_register("AdminTools", 1);</script></td> <!-- end vBMenu control element --> </if> </if> </if> |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|