The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Authentication and sessions
Hi all
I'm trying to work out how to use the vBulletin members table to authenticate and then pass this data via a session. I have a script which is completely seperate to vB, but it currently uses phpBB members to log in. The code I use for this is: PHP Code:
This works fine. However, I'm struggling doing this with vBulletin. I currently have: PHP Code:
The code listed here doesnt even authenticate, I'm struggling with the MD5 encryption I think. Many thanks, Ian |
#2
|
|||
|
|||
I too have the same problem,
I want to login from the outside of vBulletin. Some one told me that this will work : Code:
session_start(); $session["userid"]=$_SESSION['mid']; $newsession =& new vB_Session($vbulletin, '', $vbulletin->userinfo['userid'], '', $vbulletin->session->vars['styleid']); $newsession->set('userid', $_SESSION['mid']); $newsession->set('loggedin', 1); $newsession->set('bypass', 1); //$newsession->set_session_visibility(($vbulletin->superglobal_size['_COOKIE'] > 0)); $vbulletin->session =& $newsession; //($hook = vBulletinHook::fetch_hook('login_process')) ? eval($hook) : false; But its not working |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|