Quote:
Originally Posted by just.b.jealous
I need some help guys, I've got my page working for the most part. I just need to know how to make it parse BBCode that's being pulled from vBulletins threads.
|
You need to initialize and use the BB Code parser...
In the php file near the top add the lines:
PHP Code:
require_once(DIR . '/includes/class_bbcode.php');
$bbcode_parser =& new vB_BbCodeParser($GLOBALS['vbulletin'], fetch_tag_list(),true);
Then you can use this line (change the $rawthread and $parsedthread variables to your needs) to get the parsed output (BB Code converted to HTML)
PHP Code:
$parsedthread= $bbcode_parser->parse($rawthread ,'nonforum', true);
The "true" on the end is to parse smilies too... if you don't want smilies make it "false".