The Arcive of vBulletin Modifications Site. |
|
Hide Infraction Link For Moderators If They Are Not Moderating The Forum Details »»
|
|||||||||||||||||||||||||||
|
Hide Infraction Link For Moderators If They Are Not Moderating The Forum
Developer Last Online: Oct 2012
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;
}
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. Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
<font color="red">*y2krazy clicks install.</font>
|
|
#3
|
|||
|
|||
|
Really weird this isn't build it, makes absolutely no sense to be honest.
|
|
#4
|
|||
|
|||
|
/me Clicks Install
Thanks, Cant this Be Built? and Uploaded as an .xml File? |
|
#5
|
|||
|
|||
|
Added an .xml file. I thought because it's so small there's no need for one, but oh well.
|
|
#6
|
|||
|
|||
|
hey i made this
https://vborg.vbsupport.ru/showthread.php?t=124125 cuz i was trying for the same thing you are hope you dont mind that i borrowed your plugin, if you'd like i'll list you as a co-writer/supporter |
|
#7
|
|||
|
|||
|
Sure, I don't mind.
Great spot, didn't look quite in it, because I trust my mods, but they were just annoyed by the button in every post (so I removed that one). |
|
#8
|
|||
|
|||
|
my mods are a little power hungry
|
|
#9
|
||||
|
||||
|
Why do you have the usergroup test in there ?
|
|
#10
|
|||
|
|||
|
This is not working if the user have Moderator as additional usergroup. Please, can you help me with code for "is member of" or something like?
I can't get the correct sentence. Thanx! |
![]() |
|
|