The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
About $vbulletin->userinfo['VAR']
Hello,
I'm not sure how to explain this but here goes. You know the "$vbulletin->userinfo" ? What do you call that? I know its like a class etc (right?) but how does it work? Of course i know how classes work but i'm not too sure how EXACTLY this works. What i need is the same thing but with a different table? Not the users table but a different custom table which i have created. This will use the $vbulletin->userinfo['userid'] to define which USER. If anyone understands me and can help that would be greatly greatly appreciated! Thanks, James |
#2
|
|||
|
|||
$vbulletin->userinfo is a class variable (more specifically an array) which contains information about the browsing user. It is populated automatically by vBulletin depending on who the user is.
I'm not sure what you are trying to do but you custom table data won't be added to it automatically, you need to edit/add your own query to fetch the data and add it. |
#3
|
|||
|
|||
What im trying to do is have another table which works the same way as 'user' via the $vbulletin->userinfo but instead have it as $myleague->leagueinfo['POINTS'] ? w
Where abouts do i add the code for this? Maybe a hook? |
#4
|
||||
|
||||
I would suggest reading up on OOP in PHP.
|
#5
|
|||
|
|||
In the class_core.php, there is this.
PHP Code:
Thanks. |
#6
|
||||
|
||||
It's all just simple PHP4-compatible OOP. $vbulletin->userinfo is just a variable containing an array (fetch_userinfo() returns an array).
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|