![]() |
Moderators can see the Mod CP link
Thanks to cyberhypnotic for fixing my mistake.
Just a simple hack to allow your moderators to view the Mod CP link just like your Super Moderators and Administrators can. Open your Footer template. Find: Code:
<if condition="$show['modcplink']"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a> -</if> Code:
<if condition="$bbuserinfo[usergroupid] == '6' OR $bbuserinfo[usergroupid] == 'Super Mod Group ID' OR $bbuserinfo[usergroupid] == 'Moderator Group ID'"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a> -</if> You can get the 3.0.x version here. Please make sure that you enter the correct groups. |
Nice, I think you made two of the same thread though.
EDIT: Oops, sorry. I just realised that was for 3.0.12 :P My apoligies. |
Nevermind
|
this doesn't work for me with 3.5.1. Confirmed usergroup id's. As soon as I hit save it just goes to a blank page instead of returning to the edit template screen....and the link does not show. I changed it to only show <if condition="is_member_of(7)"> and still no go. Any clue?
|
Quote:
thx neways .... |
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 :disappointed: ??? |
The code to do this is already in 3.5.3, just commented out.
|
It actually didn't work for me. I had to change
Code:
<if condition="$show['modcplink']"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a> -</if> Code:
<if condition="$bbuserinfo[usergroupid] == '6' OR $bbuserinfo[usergroupid] == 'Super Mod Group ID' OR $bbuserinfo[usergroupid] == 'Moderator Group ID'"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a> -</if> |
You shouldn't need to do any template changes, revert the change and look for this in global.php
Code:
$show['admincplink'] = iif($permissions['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel'], true, false); |
Paul, is there any possible way to allow ONLY a certain usergroup ID to view the ModCP?
I have a Moderator that I want to be able to view it and have permission to use the menu in the ModCP. If I uncomment that line, it will allow ALL Mods permission to use it and I don't want all Mods to use all of the menu options on the ModCP. |
All times are GMT. The time now is 04:45 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:
|