Quote:
Originally Posted by chanzero
help for a noob please  if i have the following...
PHP Code:
<?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;
?>
if i understand what this code does, i should get back something like this:
parsed text = My Review!
but i just get
HTML Code:
[url=http://www.mysite.com/reviews.php?id=4661][b]My Review![/b][/url]
|
i should note that kirby helped me figure this out by pointing out that i did not definie $do_html, $do_smilies, $do_bbcode, $do_imgcode, etc
thanks kirby!