View Full Version : Mini Mods - [Naxon] ACP And MCP Links On Navbar
Naxon
03-23-2007, 10:00 PM
This modifiction will add a link to the Admin Control Panel and to the Moderator Control Panel on the navbar (Just for users that have premissions).
Installation:
Open the navbar Template.
Find:
<!-- nav buttons bar -->
<div align="center">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
<tr align="center">
Add below:
<!-- AdminCP And ModCP Links On NavBar By Naxon -->
<if condition="$show['admincplink']"><td class="vbmenu_control"><a href="$admincpdir/index.php$session[sessionurl_q]">$vbphrase[admin]</a></td></if>
<if condition="$show['modcplink']"><td class="vbmenu_control"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a></td></if>
<!-- /AdminCP And ModCP Links On Navbar By Naxon -->
Save.Replace "http://domain.com/admincp/" with your AdminCP Link, and "http://domain.com/modcp/" with your ModCP Link.
Enjoy :)
Naxon
03-24-2007, 02:53 AM
~ Reserved ~
MoB Dudditz MD
03-24-2007, 03:27 AM
Is there any difference from using:
<if condition="$show['admincplink']"><a href="$admincpdir/index.php$session[sessionurl_q]">$vbphrase[admin]</a></if>
<if condition="$show['modcplink']"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a></if>
I'm still trying to learn all the conditions.
For some reason, it will not show in the navbar on my vBadvanced.
HMBeaty
03-24-2007, 03:29 AM
Is there any difference from using:
<if condition="$show['admincplink']"><a href="$admincpdir/index.php$session[sessionurl_q]">$vbphrase[admin]</a></if>
<if condition="$show['modcplink']"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a></if>
I'm still trying to learn all the conditions.
For some reason, it will not show in the navbar on my vBadvanced.
No, but you might want to use
<if condition="$show['admincplink']"><td class="vbmenu_control"><a href="$admincpdir/index.php$session[sessionurl_q]">$vbphrase[admin]</a></td></if>
<if condition="$show['modcplink']"><td class="vbmenu_control"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a></td></if>
;)
Naxon
03-24-2007, 09:05 AM
Thank's guys :)
* Updated
zariyan
03-24-2007, 03:39 PM
actually the code you specify will not show it right in nav bar
<!-- AdminCP And ModCP Links On NavBar By Naxon -->
<if condition="$show['admincplink']"><td class="vbmenu_control"><a href="$admincpdir/index.php$session[sessionurl_q]">$vbphrase[admin]</a></td></if>
<if condition="$show['modcplink']"><td class="vbmenu_control"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a></td></if>
<!-- /AdminCP And ModCP Links On Navbar By Naxon -->
<!-- nav buttons bar -->
Isnt correct
It needs to be
Find:
<!-- nav buttons bar -->
<div align="center">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
<tr align="center">
add BELOW
<!-- AdminCP And ModCP Links On NavBar By Naxon -->
<if condition="$show['admincplink']"><td class="vbmenu_control"><a href="$admincpdir/index.php$session[sessionurl_q]">$vbphrase[admin]</a></td></if>
<if condition="$show['modcplink']"><td class="vbmenu_control"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a></td></if>
<!-- /AdminCP And ModCP Links On Navbar By Naxon -->
Just trying to help
Naxon
03-24-2007, 05:12 PM
But I tried it on my board and it's working..
zariyan
03-25-2007, 06:25 PM
hmm thats odd, because when i put code in you gave it tried adding it in another column to the right of the Navbar, but nionetheless, its a good template edit. good job
Twilkey
03-25-2007, 09:53 PM
I did this on my board awhile ago. Nothing special, I just got tired of scrolling to the bottom to get to the admincp.
Terminatoronly
03-26-2007, 05:36 AM
thanks alot mate :)
Atakan KOC
03-26-2007, 06:22 AM
Thanks....
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.