XenForo Getting Custom User Field Text

Q

QuackieMackie

Guest
I created a custom user field, and now I'm trying to use that text value, for a template. How can I get that text value?

In my template I did this so I could use the custom user banner css without copying it to multiple places:
PHP:

Code:
<xf:if is="$user.Profile.custom_fields.pronouns">
    <div class="staff-pronouns">
        <xf:if is="$user.Profile.custom_fields.pronouns == 'he_him'">
            <span class="userBanner userBanner--syl_pro_he_him">{{ $user.Profile.custom_fields.pronouns...

Read more

Continue reading...