<!-- Admin Menu -->
<if condition="$show['admincplink']">
<if condition="$show['popups']">
<!-- start vBMenu control element -->
<td class="vbmenu_control" id="AdminMenu">
<a STYLE="text-decoration:none" href="#">$vbphrase[navadmin]</a>
<script type="text/javascript">
<!--
vbmenu_register("AdminMenu");
//-->
</script>
</td>
<!-- end vBMenu control element -->
</if>
</if>
<!-- /Admin Menu -->
Find:
Code:
<!-- / NAVBAR POPUP MENUS -->
Add ABOVE:
Code:
<!-- Admin Tools Menu Element -->
<if condition="$show['admincplink']">
<div class="vbmenu_popup" id="AdminMenu_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead">Admin Tools</span></td></tr>
<tr><td class="vbmenu_option"><a href="http://option1">First Option</a></td></tr>
<tr><td class="vbmenu_option"><a href="http://option2">Second Option</a></td></tr>
<tr><td class="vbmenu_option"><a href="http://option3">Third Option</a></td></tr>
</table>
</div>
</if>
<!-- /Admin Tools Menu Element -->
Change http://option1/2/3 to the full URL of the option you'd like to link. For example, if you wanted to put a link to the AdminCP in the dropdown, the code would be:
"First/Second/Third Option" is simply the text displayed in the dropdown, edit it to suit whatever it is you're linking to. I personally don't use this for the AdminCP, but I find it useful for linking to PSIStats, Moderator Statistics and my VPS Server's Control Panel.
Screenshot attached.
Please Click if you are using this. Thanks!
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
<!-- Admin Tools Menu Element -->
<div class="vbmenu_popup" id="AdminMenu_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead">Admin Tools</span></td></tr>
<tr><td class="vbmenu_option"><a href="http://option1">First Option</a></td></tr>
<tr><td class="vbmenu_option"><a href="http://option2">Second Option</a></td></tr>
<tr><td class="vbmenu_option"><a href="http://option3">Third Option</a></td></tr>
</table>
</div>
<!-- /Admin Tools Menu Element -->
Won't this enable too see the links if they view source code, no matter what usergroup are no?
I ask this because I installed this to put a dropdown to some special search tools, and if anyone does right click and view source can get the links...
hmm, now that the <if condition="in_array($bbuserinfo['usergroupid'], array(7))"> and such is gone, and I suck at coding.. how can I set more than the admin usergroup?
Like if I want it to show for moderators too.. (6 and 7)?
Or if I want a seperate menu for mods and one for admins?
Edit: Fixed.
Just replaced the <if condition="$show['admincplink']"> with <if condition="in_array($bbuserinfo['usergroupid'], array(7))"> again. No one can see the code anyways now. Just the <!-- Admin content menu --> but nothing in between.