This is how I fixed the problem.
Ill try to show tidbits, because it is integrated with some other site im doing.
Ignore MID in the sql code, thats something I added to th Vbulletin database.
$license = your license number
the $salt I hard coded sicne I am the one adding users to the database. So I know the salt.
Code:
function logintoforum($userid, $pass_plaintext, $salt, $license){
$SQLCODE[0] = "SELECT * FROM `user` WHERE `mid` = '$userid'";
$QRYCODE[0] = mysql_query($SQLCODE[0]) or die(mysql_error());
$ASSCODE[0] = mysql_fetch_assoc($QRYCODE[0]);
$password = md5(md5(md5($pass_plaintext) . $salt) . $license);
setcookie('bbpassword', $password, time() + 14400);
setcookie('bbuserid', $ASSCODE[0]['userid'], time() + 14400);
}
Are you still trying to register the user with an external script into Vbulletin?