<?php require_once('global.php'); require_once('includes/class_bbcode.php'); $bbcode =& new vB_BbCodeParser($vbulletin, fetch_tag_list()); // call the bbcode class $text = 'Some text [b]with bbcode[/b] in it'; // data that contains bbcode $forumid = 'nonforum'; // (follows "global" bbcode rules as defined in vBoptions) $allowsmilie = true; // parse smilies? true = yes, false = no. $parsed_text = $bbcode->parse($text, $forumid, $allowsmilie); // Parse the text echo("<html>"); echo($parsed_text); echo("</html>"); ?>