You can get $bbuserinfo by calling global.php
PHP Code:
chdir('path/to/your/forum/directory/'); //don't use it if your page is in the forum directory
require_once('global.php');
Another way : don't need to say to vBulletin to remember them.
PHP Code:
if ($_COOKIE["bbsessionhash"]) {
$query_session = "SELECT user.* FROM session LEFT JOIN user ON user.userid=session.userid WHERE sessionhash = '" . addslashes($_COOKIE["bbsessionhash"]) . "' LIMIT 1";
$result_session = $db->db_selectData($query_session);
$userinfo = array();
while($row_session = mysql_fetch_row($result_session)) {
foreach($row_session as $field => $value) {
$userinfo["$field"] = $value;
}
}
}