The Arcive of vBulletin Modifications Site. |
|
Admin CP and Mod CP links in your navbar Details »»
|
|||||||||||||||||||||||||
This is a quite simple template modification that will add your AdminCP and ModCP links to your navbar.
Open your Navbar template. Find: Code:
</tr> </table> </div> <!-- / nav buttons bar --> Place Above: Code:
<if condition="$show['admincplink']"><td class="vbmenu_control"><a href="$admincpdir/index.php$session[sessionurl_q]">$vbphrase[admin]CP</a></td></if> <if condition="$show['modcplink']"><td class="vbmenu_control"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]CP</a></td></if> IF you would like to remove the other links then please do the following. Open your Footer template. Find and Remove: Code:
<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> Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Screen Shots? Sounds Good though depends how they look.
|
|
#3
|
|||
|
|||
|
Added a screenshot for ya.
|
|
#4
|
||||
|
||||
|
Nice Hack! *INSTALLED*
But i have a request: There's a way to display only one of the link for mods and admin? If i'm admin i'd like to view only admincp (the modcp is useless for me) Also a mod could see only modcp. |
|
#5
|
||||
|
||||
|
Modified!
instead of <if condition="$show['admincplink']"> write <if condition="$show['admincplink'] AND $bbuserinfo[usergroupid]==X"> Where X is the administrator's groupid For Modcp Link: <if condition="$show['modcplink']"> replace with: <if condition="$show['modcplink']" AND $bbuserinfo[usergroupid]==X"> Where X is the Mod's groupid I hope it will be useful! |
|
#6
|
|||
|
|||
|
very nice.. very convenient.. thanks..
|
|
#7
|
|||
|
|||
|
i like this MOD
I have this concern . If I want a condition saying (if usergroup Admin or MODERATOR) show "this" else show "blablabla") what should the code be ??? |
|
#8
|
|||
|
|||
|
I got this error for some reason
The following error occurred when attempting to evaluate this template: Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/justs2/public_html/forums/includes/adminfunctions_template.php(3537) : eval()'d code on line 215 This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish. |
|
#9
|
|||
|
|||
|
|
|
#10
|
|||
|
|||
|
Quote:
|
![]() |
|
|