![]() |
Administrative Tools Dropdown
Administrative Tools Dropdown Menu
What it does: Adds a dropdown menu visible only to the Administrator group for Admin tools and related links. Time to install: 5 Minutes Difficulty: Easy Templates: 1 Phrases: 1 Step 1: AdminCP -> Languages & Phrases -> Phrase Manager -> Add New Phrase Phrase Type: Global Product: vBulletin Varname: navadmin Text: Admin Tools Step 2: Style & Templates -> Style Manager -> (Your Style) -> Edit Templates -> Navigation / Breadcrumb Templates -> navbar Find: Code:
<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td> Code:
<!-- Admin Menu --> Code:
<!-- / NAVBAR POPUP MENUS --> Code:
<!-- Admin Tools Menu Element --> Code:
<tr><td class="vbmenu_option"><a href="http://www.yourdomain.tld/forum/admincp/index.php">Admin CP</a></td></tr> Screenshot attached. Please Click https://vborg.vbsupport.ru/ if you are using this. Thanks! |
Nice idea ;)
|
Just a quick question what is different then regular dynamic pop-up menus ?
Nothing |
Quote:
Not every hack has to be revolutionary dude. I find this handy, so I took the time to post it up and share it with the community. If this makes one single person's life easier, my time spent putting it together was well spent. |
Thanks for sharing your mod. Could you also attach your instructions in a .txt file? Thanks.
|
Simple but useful, thanks Chris-777
Clicked install |
Quote:
|
This is a great mini hack for those of us that can't do any of our own code.
I am using this as an option in my existing drop downs in order to get to my Administration forum: <!-- Admin Menu --> <if condition="in_array($bbuserinfo['usergroupid'], array(7))"> <tr><td class="vbmenu_option"> <a href="/forum/forumdisplay.php?f=3">Administration</a> </td></tr> </if> <!-- /Admin Menu --> However, it only works for members who are ONLY in the Moderator group (#7). It doesn't seem to work for the accounts that are both Admins and Moderators (6+7). Is there any way to fix this? Thanks! |
Yep, change:
Code:
<if condition="in_array($bbuserinfo['usergroupid'], array(7))"> Code:
<if condition="in_array($bbuserinfo['usergroupid'], array(6, 7))"> |
You can do it this way as well. I only use the array because of personal preference.
Code:
<if condition="$bbuserinfo['usergroupid'] == 6 OR $bbuserinfo['usergroupid'] == 7"> Code:
<if condition="is_member_of($bbuserinfo, 6, 7)"> |
All times are GMT. The time now is 08:47 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|