I have this code to parse the bbcode into html, and it works perfectly, except attached images are made into links. How can I get the bbcode parser to make the images display with the <img /> tag and not links?
PHP Code:
$forumpath = SRD."forums"; // path to your forum //echo $forumpath; $that_cwd = @getcwd(); // absolute path to this script chdir($forumpath); $phrasegroups = array(); $globaltemplates = array(); $actiontemplates = array(); $specialtemplates = array(); require_once('./global.php'); require_once('./includes/class_bbcode.php'); @chdir($that_cwd); $bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list(), true); //$my_text = $bbcode_parser->do_parse("[b]Parse[/b]",false,true,true,true,true,false); //echo $my_text;