XF 2.1 Question about "Custom User Field"

Gator

Well-known member
According to the Xenforo manual here, it says use {$xf.visitor.custom_fields.fieldId} into a template, so I created two custom user fields, fieldId_A and fieldId_B

I went to user field "fieldId_A" to test to see if I could get "fieldId_B" to also show up in the message user block
I then went to Users > Custom user fields > Value display HTML and added the following HTML code:

Code:
<table>
<a href="https://battlefieldtracker.com/bfv/profile/origin/{$value}/overview" target="_blank">{$value} <i class="fas fa-external-link-alt"></i></a>
</table>
{$xf.visitor.custom_fields.fieldId_B}

When I view the output in the User info block (below the avatar) I see {$xf.visitor.Profile.custom_fields.fieldId_B} instead of the value

What am I doing wrong?
 
Last edited:
Top Bottom