
01-24-2003, 03:07 PM
|
 |
|
|
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally posted by arracing
well in stead of userid how about usergroupid to block whole groups from seeing it. Also please double check me, is it usergroupid or just usergroups? Also I want to include more than 1 usergroupid in the list of people not being able to see the stats. I try and put numbers like
if ($bbuserinfo[usergroupid]==1,3,4,11,12)
{
show_nopermission();
}
but that gives me an error.
What am i doing wrong.
I know if i use the code below it works fine to block guests.
if ($bbuserinfo[usergroupid]==1)
{
show_nopermission();
}
|
Change this:
Code:
if ($bbuserinfo[usergroupid]==1,3,4,11,12)
{
show_nopermission();
}
To this:
Code:
if (in_array($bbuserinfo['usergroupid'], array(1,3,4,11,12))) {
show_nopermission();
}
|