The Arcive of vBulletin Modifications Site. |
|
Admin and Mod Panel link on NAVBAR Details »»
|
|||||||||||||||||||||||||
Hi there
this is my first and little modification. ADMIN AND MOD PANEL LINK ON NAVBAR TEXT VERSION open navbar template find this text: Code:
<if condition="$show['pmwarning']"><div><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></div></if> Code:
<center><if condition="$show['admincplink']"><a href="$admincpdir/index.php$session[sessionurl_q]"><b>[$vbphrase[admin]]</b></a></if> <if condition="$show['modcplink']"><a href="$modcpdir/index.php$session[sessionurl_q]"><b>[$vbphrase[mod]]</b></a></if> </center> IMAGE VERSION: Add this code: Code:
<center><if condition="$show['admincplink']"><a href="$admincpdir/index.php$session[sessionurl_q]"><img src="http://www.yousite.com/forums/images/adminpanel.gif"></a></if> <if condition="$show['modcplink']"><a href="$modcpdir/index.php$session[sessionurl_q]"><b>[$vbphrase[mod]]</b></a></if> </center> IF YOU WANT YOU CAN CUSTUMIZE THE IMAGE Upload in your site this image ![]() IF YOU USE VBADVANCED USE THIS CODE FOR TEXT VERSION: Code:
<center> <if condition="$show['admincplink']"><a href="http://www.yoursite.com/forum/admincp/index.php"><b>[$vbphrase[admin]]</b></a></if> <if condition="$show['modcplink']"><a href="http://www.yoursite.com/forum/modcp/index.php"><b>[$vbphrase[mod]]</b></a></if> </center> PLEASE CLICK ON INSTALL Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Thanks, works fine.
I edited a bit to suit my needs, but it's all good. It always got annoying scrolling down to access the admincp. Cheers Eric Installed. |
|
#3
|
||||
|
||||
|
thanks!! yeah It always got annoying scrolling down!!
|
|
#4
|
||||
|
||||
|
Adds a query to pages!
|
|
#5
|
||||
|
||||
|
No, it doesn't. And yes, I actually tested that claim, even though it's obviously wrong.
|
|
#6
|
||||
|
||||
|
thanks! it works fine for me...
|
|
#7
|
||||
|
||||
|
R-D let me know your problem?
you must be administrator or moderators for see the links! |
|
#8
|
|||
|
|||
|
thanks nice little mod...works great
|
|
#9
|
||||
|
||||
|
Quote:
And FRDS, some information to back up my claim: Taken from global.php Code:
// This generates an extra query for non-admins/supermods on many pages so we have chosen to only display it to supermods & admins // $show['modcplink'] = iif(can_moderate(), true, false); $show['modcplink'] = ($vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel'] OR $vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['ismoderator']); |
|
#10
|
|||
|
|||
|
cool idea , but I have it in the navbar
|
![]() |
|
|