i have this:
PHP Code:
<?php
define('CWD', '/home/egconline/domains/xxx/public_html/forum');
include(CWD . '/global.php');
require_once(CWD . '/includes/class_bbcode.php');
$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$parsed_text = $parser->do_parse(viewrules(2322));
echo($parsed_text);
?>
viewrules(2322) = the function that gets the post text form the db
but then i recieve this error:
Quote:
Fatal error: Call to a member function query_read_slave() on a non-object in /usr/home/egconline/domains/xxx/public_html/forum/includes/class_bbcode.php on line 208
|