Hello All
Really This is Great Forum And Great Idea , I Just Want Some Help From vBulletin Developer
I'm programming My Own Site and I Have a vBulletin forum and I want to match to make form from out of the forum to make forum user log in and use their username and other in comments .. etc so i want a script to validation username and password and hook into forum database and makes query in the tables session and so on ( I don't have experience in vBulletin Frame Work and how It have effect in database table when the user log in ) so i want that script to make effect from out of the forum ,thus when the user go to the forum he will logged in automatically Because he enter his username and password from out using the session hash , Any body can Help Me Plz
I Started In The PHP Code But I want The rest Of it
PHP Code:
$username = $_POST['username'];
$password = $_POST['password'];
$query = mysql_query ("SELECT userid,
username,
password,
email,
salt
FROM user WHERE username = '".$username."'");
$row = mysql_fetch_array($query);
if($row['password'] == md5(md5($password).$row['salt']))
{
// Here Is The Script that will make the session hash and effect in forum database
}