Well, I was searching for where $bbuserinfo is set and I learned something - apparently it's not a real variable. There's a function that replaces references to it in templates with $GLOBALS['vbulletin']->userinfo . And that kind of runs up against the limit of my php knowledge - I don't really get the $GLOBALS thing. I guess it's an array of global variables, but then if you can access them that way, why use the 'global' statement? I'll have to look that up when I get a chance...
In any case, I think you probably just want to do your thing using the global_start hook location. ($vbulletin is set up in includes/init.php, to answer your question).
|