Quote:
Originally Posted by louis_chypher
After some looking into this I found that I also was not allowed access after a few times of clicking on the Shoutbox link.
I've placed My correction below with an addition:
//use for individual access
//if ($vbulletin->userinfo['userid'] != X)
//use for usergroup access
if (!(in_array($vbulletin->userinfo['usergroupid'], array(6,7))))
{ print_no_permission();
exit();
}
If you want to give access to only an individual then change
//if ($vbulletin->userinfo['userid'] != X)
to
if ($vbulletin->userinfo['userid'] != X)
and add change if (!(in_array($vbulletin->userinfo['usergroupid'], array(6,7))))
to
//if (!(in_array($vbulletin->userinfo['usergroupid'], array(6,7))))
Then replace the X with the userid of the person you are giving shoutbox edit access.
|
awesome! thanks for your help.
if i want multiple user ids, do i seperate by comma??
Code:
if ($vbulletin->userinfo['userid'] != 1,2,3)