Quote:
Originally Posted by tmhall
It took me about four hours to figure out that this will only work for primary usergroup memberships, and another four hours to not figure out how to make it check secondary usergroup memberships too. 
|
Solution provided by Link14716 in
this thread:
Change:
PHP Code:
$html_allowed=array(6); // add more by seperating each by commas in the ()'s: (6,8,19)
// ********************* REMOVE HTML CODES ***************************
if(!$dohtml && !in_array($userinfo[usergroupid],$html_allowed)&& !in_array($post[usergroupid],$html_allowed))
to:
PHP Code:
$html_allowed=array(6); // add more by seperating each by commas in the ()'s: (6,8,19)
// ********************* REMOVE HTML CODES ***************************
foreach ($html_allowed as $ug) {
if (is_member_of($userinfo, $ug)) {
$userinfo_sane = true;
}
if (is_member_of($post, $ug)) {
$post_sane = true;
}
}
if(!$dohtml && !$usergroup_sane && !$post_sane)