![]() |
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'])) 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. |
<font color="red">*y2krazy clicks install.</font>
|
Really weird this isn't build it, makes absolutely no sense to be honest.
|
/me Clicks Install
Thanks, Cant this Be Built? and Uploaded as an .xml File? |
Added an .xml file. I thought because it's so small there's no need for one, but oh well. :D
|
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 |
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). |
my mods are a little power hungry
|
Why do you have the usergroup test in there ?
|
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! |
You can probably leave it out, now that I think about it.
Just go with Code:
if (!can_moderate($this->thread['forumid'])) |
Quote:
Big thanx!:) |
yeah i left it out for the product i released, it should also check additional usergroups
|
All times are GMT. The time now is 09:30 AM. |
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:
|