In reputation.php there are a few areas that skip reputation limit checks if you are an administrator. What I would like to do is make it so not just the admin, but a certain usergroup can also skip this check. (thus making them exempt)
Here is some code that I think just needs tweaking to add a check for the usergroup:
Code:
if (!($permissions['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel']))
{
if ($vbulletin->options['maxreputationperday'] >= $vbulletin->options['reputationrepeat'])
{
$klimit = ($vbulletin->options['maxreputationperday'] + 1);
}
else
I thought an "AND ($vbulletin->userinfo['usergroupid'] == ##)
where ## = the groupid to be exampt would work, but it does not...
Ultimately I'd like to give various groups different limits, but this will do the trick for now.