I stole this from a thread by andreas located here:
https://vborg.vbsupport.ru/showthrea...reate+New+User
Quote:
Important Notice
It is assumed that you are using this code from 'within' vBulletin, eg with the vBulletin backend loaded.
If this is not the case, you must include smth. like the following code in global context:
PHP Code:
define('VB_AREA', 'External');
define('SKIP_SESSIONCREATE', 1);
define('SKIP_USERINFO', 1);
define('CWD', '/path/to/vbulletin');
require_once(CWD . '/includes/init.php');
Keep in mind that if you are using the a/m Datamanager-Code within a function or method you must global $vbulletin.
|
the thread is about making new users but you should follow the same guidelines