Back to Modification Graveyard

Hide Infraction Link For Moderators If They Are Not Moderating The Forum
Mod Version: 1.00, by orban

This thread is in the Modification Graveyard.
vB Version: 3.6.0 Rating: (0 vote - 0 average) Installs: 13
Released: 16 Aug 2006 Last Update: Never Downloads: 13
Not Supported  

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.

Download

This modification cannot be downloaded.


vblts.ru supports vBulletin®, 2022-2024