The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I was under the impression that custom profile fields would populate within $vbulletin->userinfo, yet a print_r does not show any of my custom fields.
How can I make $vbulletin->userinfo['field11'] functional? Thanks! |
#2
|
||||
|
||||
![]()
What page are you trying to use it on? It may be called something else there.
|
#3
|
||||
|
||||
![]()
Well, you can always try:
$bbuserinfo['field11'] Sometimes that's defined. |
#4
|
|||
|
|||
![]()
Well, it's actually in a separate script but I've included global.php and $vbulletin is populated. I did a search for "field11" and the value but it wasn't anywhere to be found.
Also, $bbuserinfo wasn't populated. |
#5
|
|||
|
|||
![]() Quote:
$vbulletin->userinfo is always in the scope maybe the problem is, that your session isn't actual, so that you're a guest and guests don't have userfields ![]() try this: PHP Code:
Maybe it's empty |
#6
|
|||
|
|||
![]()
No, no. $vbulletin->userinfo is populated just fine. I'm logged in. The problem is that the custom fields just aren't included in $vbulletin-userinfo.
|
#7
|
||||
|
||||
![]()
Are ou sure $vbulletin is global at that point? Maybe you are using the wrong term to get the field.
|
#8
|
|||
|
|||
![]()
Yes, it's global. Again, it's fully populated. $vbulletin->userinfo['userid'] works.
|
#9
|
||||
|
||||
![]()
You might have a broken plugin. It could be causing your $vbulletin object to terminate early with an error, which causes the userinfo to be incomplete.
Try disabling your mods one at a time and refresh your print_r page until your userinfo is complete. Be sure to clear your cache between refreshes... Firefox: Hold SHIFT and press the refresh button on the toolbar Internet Explorer: Hold CTRL and press the refresh button on the toolbar |
#10
|
|||
|
|||
![]()
I disabled the plugin system and got the same result. However, perhaps this will shed light on the issue?
Quote:
Hmm actually you're right, $vbulletin->userinfo is not working correctly. I'll look into it and check back. --------------- Added [DATE]1237957156[/DATE] at [TIME]1237957156[/TIME] --------------- Got it, thanks for your help! |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|