ReadOrDie
04-15-2007, 05:19 AM
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
if ($Shout['sid'] != $vbulletin->userinfo['userid'] && !can_moderate())
{
echo 'false';
exit;
}
I tried to make it
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.
I have done this once before, but i forgot how :(
Anyway, the standard code is
if ($Shout['sid'] != $vbulletin->userinfo['userid'] && !can_moderate())
{
echo 'false';
exit;
}
I tried to make it
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.