Thanks Xenon,
<?php
require_once("forums/includes/functions.php");
require_once("forums/includes/functions_bbcodeparse.php");
echo parse_bbcode2('test', 0, 0, 0, 1, 0, 1);
?>
I wish i could say that worked but I get an error saying call to a member of a non-existant object. Looked into it, seems it tries to use the DB_Sql_vb class in db_mysql.php... So i figured if i instantiated that class and included config.php and db_mysql.php maybe the problem would go away...
<?php
require_once('forums/includes/config.php');
require_once('forums/includes/db_mysql.php');
$DB_site = new DB_Sql_vb;
$DB_site->appname = 'vBulletin';
$DB_site->appshortname = 'vBulletin (' . VB_AREA . ')';
$DB_site->database = $dbname;
$DB_site->connect($servername, $dbusername, $dbpassword, $usepconnect);
require_once("forums/includes/functions.php");
require_once("forums/includes/functions_bbcodeparse.php");
echo parse_bbcode2('test', 0, 0, 0, 1, 0, 1);
?>
When i do that i get the VB error:
There seems to have been a slight problem with the database.
Please try again by pressing the refresh button in your browser.
An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.
We apologise for any inconvenience.
|