The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
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? |
#12
|
|||
|
|||
Right now, I have it so it sets the cookies (I checked in my browser). But it is on a different domain then my forum so I am unsure if it will work until I transfer everything over to the domain the forum is on.
|
#13
|
|||
|
|||
Awesome... all I need to know now is how to log the user OUT externally. Ideas?
Is it just clear the two created cookies and then clear the session in the database? (how do you do that with the sessions?) Edit: removing the userid, password and sessionhash cookies worked... ie: setcookie('bbpassword', "", time() - 14400); setcookie('bbuserid', "", time() - 14400); setcookie('bbsessionhash', "", time() - 14400); Although yeah it still doesn't remove the session data from the database |
#14
|
|||
|
|||
Well,
I don't see V bulletin doing this either. I just clear the cookies and that works well enough for me. Its really sad that Vbulletin has no better support. PHPbb has better response and its free. Unbelievable. Tree, cookies are not held to one server, and they can work cross domains. Sessions cannot since they are saved on the server. Cookies are stored on the clients computer. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|