![]() |
Admin CP and Mod CP links in your navbar
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> 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 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> |
Screen Shots? Sounds Good though depends how they look.
|
Added a screenshot for ya.
|
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. |
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! |
very nice.. very convenient.. thanks..
|
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 ??? |
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. |
|
Quote:
|
All times are GMT. The time now is 05:10 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|