PDA

View Full Version : Parsing vbcode...


Adrian Schneider
09-13-2005, 03:00 AM
I'm having troubles getting vbcode to parse, well just img tags actually.

So what are the bare requirements for getting it to parse correctly, here is what I have (I think I got all of it).
// ...
require_once(DIR . './includes/class_bbcode.php');
// ...
$bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
// ...
$blog['pagetext'] = $bbcode_parser->parse(unhtmlspecialchars($blog['pagetext']));
// ...

The strange thing is on my other board it works (maybe system environment? (linux vs windows), also it runs 3.5.0 RC2, and I tried this with RC1 and RC3 (thought maybe it was a version issue).

Many thanks.

Andreas
09-13-2005, 03:02 AM
require_once(DIR . './includes/class_bbcode.php');


should be

require_once(DIR . '/includes/class_bbcode.php');


Except that I don't see Problems in the Code.

Adrian Schneider
09-13-2005, 09:13 PM
Anyway, I accidentally stumbled upon this thread (https://vborg.vbsupport.ru/showthread.php?t=82693) and used do_parse instead, and all is well.