The Arcive of vBulletin Modifications Site. |
|
Moderators can see the Mod CP link Details »»
|
|||||||||||||||||||||||||
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. Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
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. |
|
#3
|
|||
|
|||
|
Nevermind
|
|
#4
|
|||
|
|||
|
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?
|
|
#5
|
|||
|
|||
|
Quote:
thx neways .... |
|
#6
|
|||
|
|||
|
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: ??? |
|
#7
|
||||
|
||||
|
The code to do this is already in 3.5.3, just commented out.
|
|
#8
|
|||
|
|||
|
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> |
|
#9
|
||||
|
||||
|
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); // 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'] = iif ($permissions['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel'] OR $permissions['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['ismoderator'], true, false); |
|
#10
|
|||
|
|||
|
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. |
![]() |
|
|