The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
![]()
Hello,
I installed vbulletin lately (I am initial), my problem it is that I want integrated the forum in my web portal so that the registered voters with will not have 2 identified (in the site and the forum), has what I included/understood Vbulletin uses the cookies or the sessions thus I integrated a script in the index page of the forum which makes the test; if the user is already authenticated anything does not do if not I initialize the sessions used by the forum with the data of the user already authenticated, above my script: //************************************************// if(!$vbulletin->userinfo['id']) { $vbulletin->GPC['pseudo'] = $row['pseudo']; $vbulletin->GPC['password'] = $row['password']; $vbulletin->userinfo['password'] = $row['password']; $vbulletin->userinfo['id'] = $row["id"]; $vbulletin->userinfo['pseudo'] = $row["pseudo"]; $vbulletin->session->vars['styleid'] = 2; $vbulletin->session->vars['id'] = 2; $vbulletin->db->query_write("DELETE FROM vb_cpsession WHERE id = '".$vbulletin->userinfo['id'] ."'"); exec_unstrike_user($vbulletin->GPC['pseudo']); $vbulletin->session->vars = $vbulletin->session->fetch_session($vbulletin->userinfo['id']); $db->query_write(" INSERT INTO vb_session (sessionhash, id, host, idhash, lastactivity, styleid, loggedin, bypass, useragent) VALUES ('" . $db->escape_string($vbulletin->session->vars['sessionhash']) . "', " . $vbulletin->session->vars['id'] . ", '" . $db->escape_string($vbulletin->session->vars['host']) . "', '" . $db->escape_string($vbulletin->session->vars['idhash']) . "', " . TIMENOW . ", " . $vbulletin->session->vars['styleid'] . ", 1, " . iif ($logintype === 'cplogin', 1, 0) . ", '" . $db->escape_string($vbulletin->session->vars['useragent']) . "')"); $newsession =& new vB_Session($vbulletin, '', $vbulletin->userinfo['id'], '', $vbulletin->session->vars['styleid']); $newsession->set('id', $vbulletin->userinfo['id']); $newsession->set('loggedin', 1); $newsession->set('bypass', 1); $vbulletin->session =& $newsession; $cpsession = $vbulletin->session->fetch_sessionhash($vbulletin->userinfo['id']); $vbulletin->db->query_write("INSERT INTO vb_cpsession (id, hash, dateline) VALUES (" . $vbulletin->userinfo['id'] . ", '" . $vbulletin->db->escape_string($cpsession) . "', " . TIMENOW . ")"); echo "<script language=\"javascript\">window.location='".fetch_r eplaced_session_url('index.php ?')."';</script>"; } //**********************************************/// My problem it is that with the first connection to the forum and when I try to enter importation which heading (calendar, message of the day) I am automatically redirect to the home of the forum and this action occurs especially when I try to reach the control panel user, I have all to check, can be that I have lapse of memory some parameters but Ca exceeds me especially that I am initial in Vbulletin. :disappointed: Thank you Badi |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|