vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   $bbuserinfo - qustion (https://vborg.vbsupport.ru/showthread.php?t=74310)

miz 01-13-2005 01:15 PM

$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

Quote:

Originally Posted by miz
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 ?

miz 01-13-2005 06:46 PM

Quote:

Originally Posted by Zachery
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

Quote:

Originally Posted by miz
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

miz 01-15-2005 03:20 PM

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.

Brad 01-15-2005 09:27 PM

$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

PHP Code:

// ###################### 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:

PHP Code:

    // handle some stuff for registered users
    
if (empty($bbuserinfo))
    {
        
$useroptions iif(defined('IN_CONTROL_PANEL'), 160) + iif(defined('AVATAR_ON_NAVBAR'), 20);
        
$bbuserinfo fetch_userinfo($session['userid'], $useroptions);
    } 



All times are GMT. The time now is 04:23 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01726 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete