The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Infractions Only Where Moderators Have Power
I started writing this plugin but i honestly dont know what im doing.
I want my forum to only allow a moderator to give infractions in forums they have moderation powers in. hook: infraction_verify_permissions Code:
$uglist = $vbulletin->userinfo['usergroupid'] . iif(trim($vbulletin->userinfo['membergroupids']), ",".$vbulletin->userinfo[membergroupids]); if (!can_moderate($vbulletin->forum['forumid'], '', $vbulletin->userinfo['userid'], $uglist)) { print_no_permission(); } bump anyone have any idea how to do this? i at least gave a good start... please help? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|