PDA

View Full Version : vbulletin userinfo


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.

harmor19
04-15-2007, 11:35 AM
if ($Shout['sid'] != $vbulletin->userinfo['userid'] && can_moderate() && $vbulletin->userinfo['usergroupid'] != 103)
{
echo 'false';
exit;
}


You added code before the two parenthesis that immediately follows "can_moderate".

ReadOrDie
04-17-2007, 01:31 PM
grr thanks. I knew it was something stupid :P

We all make mistakes I guess

Thanks again.