Log in

View Full Version : Infractions Only Where Moderators Have Power


cynix2
08-14-2006, 05:31 PM
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
$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();
}
im pretty sure the main problem here is $vbulletin->forum['forumid'] but i could be wrong

bump

anyone have any idea how to do this? i at least gave a good start... please help?