The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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? 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? |
#2
|
|||
|
|||
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? |
#3
|
||||
|
||||
What type of field is field 5?
|
#4
|
||||
|
||||
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. |
#5
|
|||
|
|||
single row text field
when i use $bbuserinfo[fieldx]; it works. but only internet explorer, in firefox doesn't. have you got any suggestions? |
#6
|
||||
|
||||
You would have to post your exact code in order for us to figure out why it isn't working.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|