I have found my license. But, if I was logging in from mydomain.com and my forum is located on mydomain.net - it still wouldn't work because the cookie is set from mydomain.com, right?
And.. I have realized I am in the same situation as dzineit and treelovinhippie. Where does vbulletin have the query to set the session stuff in the database?
This is how it is adding the user into the forum AFTER they have logged into my website:
PHP Code:
function loginforum($userid, $pass_plaintext, $salt, $license){
$password = md5(md5(md5($pass_plaintext) . $salt) . $license);
setcookie(COOKIE_PREFIX . 'bbpassword', $password, time() + 14400);
setcookie(COOKIE_PREFIX . 'bbuserid', $userid, time() + 14400);
}
$getinfo = mysql_query("SELECT * FROM `users` WHERE `username` = '$username'");
while($r = mysql_fetch_array($getinfo)){
$useridf = $r['id'];
$passf = $r['password'];
$saltf = $r['salt'];
}
loginforum('$useridf','$passf','$saltf','LICENSE');