View Full Version : $bbuserinfo - qustion
does any 1 know where $bbuserinfo is defined ?
i have search some files but with out any luck...
Marco van Herwaarden
01-13-2005, 01:22 PM
sessions.php and functions_login.php
Zachery
01-13-2005, 01:29 PM
does any 1 know where $bbuserinfo is defined ?
i have search some files but with out any luck...
Do you need somthing specific from it? :) or are you trying to add onto it ?
Do you need somthing specific from it? :) or are you trying to add onto it ?
im working to improve my team hack and i want to add $bbteaminfo
so i need to find out where $bbuserinfo is defined....
Jolten
01-13-2005, 07:19 PM
Anyone know how to pull a referrer name from that? I've tried $bbuserinfo[referrer] and $bbuserinfo[referrerid] but I'm getting nothing. I notice in the admincp/user.php there's an entire query for this data. Are referrer names not held in the bbuserinfo array?
Thanks
Zachery
01-13-2005, 08:48 PM
im working to improve my team hack and i want to add $bbteaminfo
so i need to find out where $bbuserinfo is defined....
Add the data to the users table if possible it would already get pulled
hmm not possible to add data to bbuserinfo cuse team table contain teams info and not spesifice user info , user can add into team thats why i got bbuserinfo[userteamid]...
sabret00the
01-15-2005, 03:36 PM
you could define bbteaminfo in a function file and then it can be called in all of your vbteams docs.
Guy G
01-15-2005, 04:23 PM
$bbuserinfo is just an array that pulls all the users info from the user table...
if im not wrong that is.
$bbuserinfo is built by the fetch_userinfo function in the file functions.php.
Search for this in /includes/functions.php and you'll find it
// ###################### Start getuserinfo #######################
// set $option to load other relevant information
function fetch_userinfo(&$userid, $option = 0)
By default this is called in sessions.php, at this line:
// handle some stuff for registered users
if (empty($bbuserinfo))
{
$useroptions = 0 + iif(defined('IN_CONTROL_PANEL'), 16, 0) + iif(defined('AVATAR_ON_NAVBAR'), 2, 0);
$bbuserinfo = fetch_userinfo($session['userid'], $useroptions);
}
Link14716
01-15-2005, 10:00 PM
$bbuserinfo is just an array that pulls all the users info from the user table...
if im not wrong that is.
Not just the user table. There are several other tables holding user data, user is just the main one.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.