thanks for the reply. The other guys told me to use this
PHP Code:
<?php
Require_once('./global.php');
Require_once('./includes/class_bbcode.php');
Function vb_build_message($text)
{
global $vbulletin;
$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$do_html = true; // Allow HTML
$do_smilies = true; // Allow Smilies
$do_bbcode = true; // Allow BBcode
$do_imgcode = true; // Allow [IMG]
$do_nl2br = true; // Break line
$cachable = false; //
return $parser->do_parse($text, $do_html, $do_smilies, $do_bbcode, $do_imgcode, $do_nl2br, $cachable);
}
Echo vb_build_message('text [b]with[b] bbcode');
?>
The code work fine on the test text. But when I apply to the text called from table `post`, column `pagetext`. I keep getting error like this:
Quote:
Fatal error: Call to a member function query_read_slave() on a non-object in
public_html/includes/class_bbcode.php on line 229
|
Im using vbb 4.0.5