I`m trying to stop a usergroup viewing a page, and have the following :
Which gives me parse errors.
Where am i going wrong?
Many Thanks.
PHP Code:
if(( $bbuserinfo[usergroupid == 2])
{
eval(print_standard_error('nopermission_loggedin'));
}
else
{
val('print_output("' . fetch_template('chat') . '");');
Where am i going wrong?
Many Thanks.
Comment