The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
probably someone of you can help me. i want vbulletin authenticate against an axternal database. this one is a very easy one, just 4 fields (username, userid, password, email).
i added a hook in login.php just below of Code:
$vbulletin->input->clean_array_gpc() Code:
($hook = vBulletinHook::fetch_hook('external_login_hook')) ? eval($hook) : false; Code:
$newuser =& datamanager_init('User', $vbulletin, ERRTYPE_ARRAY); $newuser->set('username', $external_uid); $newuser->set('email', 'email@email.com'); $newuser->set('password', 'somepassword'); $newuser->set('usergroupid', 2); now the problem starts, after authentication (useradding or not doesnt matter) i have a problem with starting vb session and redirecting to the board again. i try it with this code: Code:
verify_authentication($vbulletin->GPC['vb_login_username'], $vbulletin->GPC['vb_login_password'], $vbulletin->GPC['cookieuser'], true); exec_unstrike_user($vbulletin->GPC['vb_login_username']); process_new_login($vbulletin->GPC['logintype'], $vbulletin->GPC['cookieuser'], $vbulletin->GPC['cssprefs']); do_login_redirect(); can anyone please help me how to, create the vb sessions? would be very nice. thanks -andy |
#2
|
|||
|
|||
![]()
yeah i need the same info
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|