View Full Version : [Mini hack] Add Admin, Mod dropdown on Navbar
Original mod for 3.0.3 released on vbulletin Fans website [http://www.vbulletin.nl/showthread.php?t=2329] by Duncan99
I am kinda lazy to scroll down the page to enter ACP, so I add those codes to Navbar. If you just like me, go for it.
I just tidied it up by putting it into a dropdown menu and updated the template mod to work with 3.5.0 RC2 allthough should work with all versions 3+
Update 1.0.2
Fixed no show for moderators
Update 1.0.3
Fixed links not working anwhere other than forumhome
turksengel
08-22-2005, 12:14 PM
any screen ?
Boofo
08-22-2005, 12:35 PM
I would wrap it so the regular members don't even see the Staff drop down. :)
Regular members will not see the drop menu, only members with control panel priviliges will see the menu
Boofo
08-22-2005, 12:45 PM
You're right. I didn't look at the top piece of code very closely. ;)
Fj?rgyn
08-25-2005, 09:28 PM
Hello,
I tried this, but it don't works, no Mod see the link, what's wrong?
<if condition="$show['modcplink'] OR
$bbuserinfo['usergroupid'] == '5' OR $bbuserinfo['usergroupid'] == '7'">
You should not need the
OR $bbuserinfo['usergroupid'] == '5' OR $bbuserinfo['usergroupid'] == '7'">
as
<if condition="$show['modcplink']">
will cause the link ony to show if a member/mod has modcp priviliges
does the modcp link in the footer show for your mods?
I ask this because that uses the same conditional to show for mods
Fj?rgyn
08-25-2005, 10:44 PM
Yes, that's the code from the footer with id 5 and 7 and it works, without this it don't works :ermm:
Have you tried
<if condition="$bbuserinfo['usergroupid'] == '5' OR $bbuserinfo['usergroupid'] == '7'">
Cus that should then only show for mods and super mods????
Fj?rgyn
08-25-2005, 11:23 PM
Cus that should then only show for mods and super mods????
Yes :)
Heres the fix
Attachment has been updated
Tony G
08-26-2005, 03:25 AM
Please attach the fix to your first post too, thanks. :)
Fj?rgyn
08-26-2005, 10:17 AM
Thank you, you're the best :D
Please attach the fix to your first post too, thanks. :)
Done
Thank you, you're the best :D
Thankyou :)
Huijting
09-14-2005, 11:19 AM
Got it working thnx
But is there a way to get it working with cmps ?
thnx for any reply
Add the following to 'Portal Output Global Variables' in vBaCmps admin:
admincpdir
modcpdir
Huijting
09-14-2005, 08:19 PM
Don't know quite where to find : 'Portal Output Global Variables' :nervous:
ehmmm.....help :nervous:
Huijting
09-14-2005, 08:26 PM
oops found it , almost got it working now :-)
Now i got the problem that the link goes to www.huijting.nl/admincp/ and it should be going to www.huijting.nl/vbul/admincp/
When i'm in my forums it woarks great, only at my front page (and gallery) i got this problem.
Rob
ok in the navbar template find:
<!-- staff menu -->
<div class="vbmenu_popup" id="staff_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead">Staff Menu</td></tr>
<if condition="$show['admincplink']">
<tr><td class="vbmenu_option"><a href="$admincpdir/" target="blank_">Admin CP</a></td></tr>
</if>
<if condition="$show['modcplink'] OR $bbuserinfo['usergroupid'] == '5' OR $bbuserinfo['usergroupid'] == '7'">
<tr><td class="vbmenu_option"><a href="$modcpdir/" target="blank_">Moderator CP</a></td></tr>
</if>
</table>
</div>
<!-- / staff menu -->
replace with
<!-- staff menu -->
<div class="vbmenu_popup" id="staff_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead">Staff Menu</td></tr>
<if condition="$show['admincplink']">
<tr><td class="vbmenu_option"><a href="$vboptions[bburl]/$admincpdir" target="blank_">Admin CP</a></td></tr>
</if>
<if condition="$show['modcplink'] OR $bbuserinfo['usergroupid'] == '5' OR $bbuserinfo['usergroupid'] == '7'">
<tr><td class="vbmenu_option"><a href="$vboptions[bburl]/$modcpdir" target="blank_">Moderator CP</a></td></tr>
</if>
</table>
</div>
<!-- / staff menu -->
Huijting
09-15-2005, 06:55 PM
Absolutly great :squareeyed:
Thnx a million
no problem.... :) allways here to help
piXelatedEmpire
10-09-2005, 06:34 AM
installing this from scratch, which text file should I be using? Or should I use the first text file, then use the fix?
sorry, the first txt file has been updated with the fix.... the fix file is for anyone who had that previous version installed
Nathan2006
04-11-2006, 03:31 AM
Thank you KuRi :cool:
Install
Groovejunk
04-17-2006, 04:37 PM
Safari seems to have some troubles displaying the menubar after inserting this mod / hack. It only shows plain text.. Is there a fix? Or a slight modification maybe?
sc4r3d
04-23-2006, 01:08 AM
very nice, thanks
da420
04-23-2006, 09:26 PM
Super! Installed!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.