require_once(DIR . '/includes/class_bbcode.php'); $parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list()); $parsed_text = $parser->do_parse($text, $do_html, $do_smilies, $do_bbcode, $do_imgcode, $do_nl2br, $cachable);
<?php chdir('./forums'); require_once('./global.php'); require_once('./includes/class_bbcode.php'); // test parse bb $text = "[url=http://www.mysite.com/reviews.php?id=4661][b]My Review![/b][/url]"; $parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list()); $parsed_text = $parser->do_parse($text, $do_html, $do_smilies, $do_bbcode, $do_imgcode, $do_nl2br, $cachable); print "parsed text = " . $parsed_text; ?>
[url=http://www.mysite.com/reviews.php?id=4661][b]My Review![/b][/url]