The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I am working on a site that has a members area, and this members area has a vBulletin forum that is only accessible by members. I am trying to automatically login these users to the vBulletin forum when they login to the members area.
I've written some code to set the cookies 'bbuserid' and 'bbpassword', but it doesn't seem to be working. I am obviously missing something, but not sure what, and I am not sure where to look to find out. This is what I have written to set the cookies... Code:
if(!$result = mysql_query("SELECT userid, password FROM user WHERE username='".$_POST['vb_login_username']."'")) { echo mysql_error(); exit; } if(mysql_num_rows($result) > 0) { $row = mysql_fetch_array($result); $license_num = "..."; setcookie("bbuserid", $row['userid']); setcookie("bbpassword", md5($row['password'].$license_num)); } Thank you! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|