Came across this via google, I realize its old, but if others need it...
To hide messages from anyone not logged into the forum, you cannot do it with BBCODE, you must implement a custom BBCODE as a plugin. This is how you do that:
1. In admincp>add new plugin
2. Hook location = bbcode_create
3. Title = VIP BBCODE (or whatever)
4. PHP CODE:
Code:
$custom_bbcode = 'registered';
$this->tag_list['no_option'][$custom_bbcode] = array ();
$this->tag_list['no_option'][$custom_bbcode]['callback'] = 'handle_external';
$this->tag_list['no_option'][$custom_bbcode]['external_callback'] = 'hide_message_from_unregistered_users';
if (!function_exists ('hide_message_from_unregistered_users')) {
function hide_message_from_unregistered_users (&$theobj, &$value, &$option) {
if ($theobj->registry->userinfo['userid'])
return $value;
else
return '<table border="8"><tr><td>This message can only be viewed by logged in Overclockers Members. <a href="overclockers.com/forums/register.php">Register an account</a></td></tr></table>';
}
}
In order to implement this for a specific usergroup, rather than the example code above which only hides from unregistered users, you'd just need to edit the code slightly.