PDA

View Full Version : Quick Question


SirJtaa.com
03-17-2007, 12:07 AM
Hey,

I'm not sure if I posted this in the right section, but I have a question about intergrating vB with your site.
Right now, I use cchdir() to go to the forums directory so I can include global.php, which I use to intergrate the forum with my site. Now in order for most of the scripts on my site to work, I need to know the logged in variable, (for example, the forum we used to use is SMF, which used $context['user']['is_logged']). To find this out, I did a var_dump() of the huge vb variable, and I echoed it onto a testing page, then I found "loggedin" which is crammed somewhere in that variable. I tried:

$vbulletin['user']['loggedin']

but that didnt work. Does anyone want to tell me the variable and the output of the variable (because I noticed it outputted 2 when I did a var_dump on it).

Marco van Herwaarden
03-18-2007, 04:50 PM
You could check if the $vbulletin->userinfo['userid'] has a valid userid > 0.

PS It could still be a banned user.