I am trying to alter some code which will allow members of a certain usergroup to edit and delete shouts in the vbShout modification.
I have done this once before, but i forgot how
Anyway, the standard code is
PHP Code:
if ($Shout['sid'] != $vbulletin->userinfo['userid'] && !can_moderate())
{
echo 'false';
exit;
}
I tried to make it
PHP Code:
if ($Shout['sid'] != $vbulletin->userinfo['userid'] && !can_moderate && $vbulletin->userinfo['usergroupid'] != 103())
{
echo 'false';
exit;
}
Im guessing im just doing something stupidly obvious, but if someone could point it out I would be very grateful.