![]() |
How can I access a custom profile field in forumdisplay.php?
Is this even possible? Basically I made an IF statement saying
PHP Code:
Is there someway of accessing the custom field from the php file?:confused: Any help is much appreciated. --------------- Added [DATE]1277756882[/DATE] at [TIME]1277756882[/TIME] --------------- Also tried $bbuserinfo but no go either. --------------- Added [DATE]1277772863[/DATE] at [TIME]1277772863[/TIME] --------------- OK got it working 2 ways... $vbulletin->userinfo[field5] and $vbulletin->userinfo['field5'] My question is now- which is the 'proper' way to code it for maximum compatibility- is there a difference? |
i tried to show custom fields in forumdisplay template but i couldn't :(
when i tried: $vbulletin->userinfo[field5] there was seemed "Array[field5]" how can i use custom fields in forumdisplay template? |
What type of field is field 5?
|
If in a plugin, you use $vbulletin->userinfo[fieldx] to grab fieldx for the viewer.
If in a template, you use $bbuserinfo[fieldx] to grab fieldx for the viewer. |
Quote:
Quote:
|
You would have to post your exact code in order for us to figure out why it isn't working.
|
All times are GMT. The time now is 06:54 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|