[REQ] Hide Infraction Link For Moderators If They Are Not Moderating The Forum

here u go...........

Hide Infraction Link For Moderators If They Are Not Moderating The Forum

Create a new plugin:

Product: vBulletin
Hook Location: postbit_display_complete
Title: Hide Infraction Link For Moderators If They Are Not Moderating The Forum
Execution Order: 5
Plugin PHP Code:

Code:
if ($this->registry->userinfo['permissions']['usergroupid'] == 7 AND !can_moderate($this->thread['forumid']))
{
    $show['infractionlink'] = false;
}
Plugin is Active: Yes


That's it.


You might want to adjust the 7 if your moderator usergroup id isn't 7.

Note that this only hides the link and doesn't prevent them manually going to the URL.
 
Back
Top