Conditional for profile and pulling custom field data

Michael

Active member
#1
Hey everyone I am wondering how I can go about pulling custom field data on the members profile pages, I currently use this for the message template:

{$message.customFields.my_identifier}

But that doesnt work and nor does:

{$user.customFields.my_identifier}

In the member_view template.

I also want this data to change based on the profile you are viewing, say Bob put he liked bananas under a Favourite Food field, when viewing Bobs profile it would say he liked bananas where if you view Peters profile you would find out he liked pizza, I am sure you will get the idea :D

Any ideas of what I am looking for?

Thank you!
 

Jake Bunce

XenForo moderator
Staff member
#2
{$user.customFields.my_identifier} works for me. Be sure to replace "my_identifier" with the id of the field.
 
Top