PDA

View Full Version : Help using the session table


dannyb2100
02-22-2009, 07:25 PM
Hey all, ok I've created a plugging at hook Global_start.

if ($vbulletin->session->vars['email'] == 0)
{
$varemail = $bbuserinfo[email];
//Add the user email to the session var
$vbulletin->session->set('email', $varemail);

}


Whats wrong someone help me out as its not setting the information ?
sorry if its so simple and easy, only just getting the hang of the way VBB is coded,

Thanks again VBB,

Dan.

Lynne
02-22-2009, 08:12 PM
$vbulletin->userinfo, not $bbuserinfo. $bbuserinfo is used in templates (html), $vbulletin->userinfo is used in plugins (php)

(I didn't check the rest of the code - that just stood out.)

dannyb2100
02-22-2009, 08:26 PM
$vbulletin->userinfo, not $bbuserinfo. $bbuserinfo is used in templates (html), $vbulletin->userinfo is used in plugins (php)

(I didn't check the rest of the code - that just stood out.)

That would explain an afull lot will test now,

Thanks again Lynee :)


EDIT.

Worked like a treat !, Thanks Lynee

Dismounted
02-24-2009, 04:53 AM
Why do you need to do that?