
05-04-2009, 08:50 PM
|
|
|
Join Date: Sep 2008
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Thank you, and thank you! This fixed my problem.
Quote:
Originally Posted by harty83
Just as a FYI, the first line (global $vbulletin) is not necessary. That was overlooked on my part. The full code that got it working is
Code:
//load the vbulletin framework
define('VB_AREA', 'External');
define('SKIP_SESSIONCREATE', 1);
define('SKIP_USERINFO', 1);
define('CWD', 'path/to/vbulletin/forum'));
require_once(CWD . './includes/init.php');
//work around to make global vbulletin stick
$registry = $vbulletin;
unset($vbulletin);
$vbDb = $registry->db;
//declare as global vbulletin's registry and db objects
global $vbulletin,$db;
$vbulletin = $registry;
//vbulletin db object which is needed for vbulletin's project tools addon
$db = $vbDb;
Thanks!
Alan
|
|