I have a serious problem regarding the issue to login a member in vbulletin from a login box that is located on my home page.
I have got the code from somewhere for looging me in, but its not working fine, & the code is :
PHP 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;
Can anyone plz help me to sort the issue, or to reply with a possible answer.
The issue is very urgent, & i have tried many things.