Quote:
Originally Posted by calorie
@westpointer: try the attached...
|
Thanks! That works great.
I've modified the code a little, setting a variable depending on whether or not the user is a member of the group:
PHP Code:
if (!in_array($usergroup_id,$user_groups) AND empty($result_groups))
{ // RESTRICTED PAGE SETTINGS
$restricted = 0;
eval('$navbar = "' . fetch_template('navbar') . '";');
$src_output = make_page_content();
}
Then when the page is output:
PHP Code:
$header
$navbar
END;
if ($restricted == 1) {
$morestuff = "You can see everything!";
}
$src_output .= <<<END
$morestuff
$footer
That gives me very nice granular control for what is displayed based on the forum groups. Thanks!