Webmastersite.net
Register Log In

vBulletin cookies
is it possible to use vbulletin cookies?

Comments on vBulletin cookies

sifuhall
Member

Usergroup: Customer
Joined: Apr 13, 2006

Total Topics: 5
Total Comments: 16
Posted May 04, 2006 - 12:35 PM:

I am running vBulletin 3.5.4 and woudl like to use vbulletin cookies so my users do not have to log in seperately to the links section.

updating the cookie settings to use bbuserid for the username works great, but if I change the password cookie to bbpassword it no longer works.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted May 05, 2006 - 6:43 AM:

What value does vBulletin put in the password cookie? Is it the same thing that's in the users table's password field, or something else?
sifuhall
Member

Usergroup: Customer
Joined: Apr 13, 2006

Total Topics: 5
Total Comments: 16
Posted May 05, 2006 - 7:16 AM:

I compared the cookie value in bbpassword to the cookie value in wsnpass and it is different.

If I can identify how the bbpassword is calculated (and I'm pretty sure I can) where would I update this in wsn links?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted May 06, 2006 - 5:00 PM:

It'll need a special cookie type handled in classes/member.php to make it upgradeable. Replace
   else if ($cookietype == 'smf')
{
$both = unserialize(stripslashes($_COOKIE[$idcookiename]));
$id = $both[0];
$userpassword = $both[1];
}
with

else if ($cookietype == 'smf')
{
$both = unserialize(stripslashes($_COOKIE[$idcookiename]));
$id = $both[0];
$userpassword = $both[1];
}
else if ($cookietype == 'vb')
{
$userpassword = however you transform the password cookie value into the database value
}


I presume someone at vBulletin support knows.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.