Im not sure if the <if> tags work with bbcode (havent tried it). Ive done this with a mini-hack :
in /includes/functions_bbcodeparse.php find:
PHP Code:
$code = &$buffer;
eval('$html = "' . fetch_template('bbcode_php') . '";');
Replace with:
PHP Code:
$code = &$buffer;
// make sure user is a member of our board...
if (!$bbuserinfo['userid'])
{
$code = 'wouldent you like to know? :)';
}
eval('$html = "' . fetch_template('bbcode_php') . '";');
If bbcode accepts the <if> tags, use this instead:
<!-- php buffer start --><if condition="$bbuserinfo[userid]">$code<else />What youd Like to say to them here </if><!-- php buffer end -->
Dont use quotes in your arrays when working with the templates