So I found this on the forum, which I modified a bit for VB5.
define('VB_AREA', 'External');
define('SKIP_SESSIONCREATE', 1);
define('SKIP_USERINFO', 1);
define('CWD', 'forum');
require_once(CWD . '/core/includes/init.php');
$newuser =& datamanager_init('User', $vbulletin, ERRTYPE_ARRAY);
$newuser->set('username', '$user');
$newuser->set('email', '$email');
$newuser->set('password', '$pass');
$newuser->set('usergroupid', 2);
$user,$email,$pass are my variables on my website for when a new user signs up, what do I need to modify to make it vb5 compatible? as this was for vb3/vb4.. ?
|