Hello calorie
I have this case:
I have 2 group: Registered Member & Senior Member. Register can view all text in code tag. But i would like to do this: Register can view all text in all forums except Software forum. In Software forum only Senior Member can view text in code tag, that mean Senior can view all text in code tag in all forum.
I know where to edit, like this:
Code:
function hide_bbcode_access($hide_bbcode_info)
{
//Get current forumid to compare with the forumid config in ACP, then do some conditional expression, i stuck here
$hide_bbcode_blocked = 1;
$hide_bbcode_disallowed = explode(",",str_replace(" ","",$hide_bbcode_info->options['hide_bbcode_groups']));
$hide_bbcode_primary = $hide_bbcode_info->userinfo['usergroupid'];
$hide_bbcode_secondary = explode(",",str_replace(" ","",$hide_bbcode_info->userinfo['membergroupids']));
$hide_bbcode_intersect = array_intersect($hide_bbcode_disallowed, $hide_bbcode_secondary);
if (!in_array($hide_bbcode_primary, $hide_bbcode_disallowed) AND empty($hide_bbcode_intersect))
{
$hide_bbcode_blocked = 0;
}
return $hide_bbcode_blocked;
}
But i dont know how to get current forumid in this function. pls give me some suggestion. Many thanks