The Arcive of vBulletin Modifications Site. |
|
Administrative Tools Dropdown Details »»
|
|||||||||||||||||||||||||
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 -->
<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 -->
Code:
<!-- / NAVBAR POPUP MENUS --> 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 --> 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 Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Nice idea
|
|
#3
|
|||
|
|||
|
Just a quick question what is different then regular dynamic pop-up menus ?
Nothing |
|
#4
|
|||
|
|||
|
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. |
|
#5
|
||||
|
||||
|
Thanks for sharing your mod. Could you also attach your instructions in a .txt file? Thanks.
|
|
#6
|
||||
|
||||
|
Simple but useful, thanks Chris-777
Clicked install |
|
#7
|
|||
|
|||
|
Quote:
|
|
#8
|
|||
|
|||
|
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! |
|
#9
|
|||
|
|||
|
Yep, change:
Code:
<if condition="in_array($bbuserinfo['usergroupid'], array(7))"> Code:
<if condition="in_array($bbuserinfo['usergroupid'], array(6, 7))">
|
|
#10
|
|||
|
|||
|
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)"> |
![]() |
|
|