XF 2.0 using custom user field value in template

i have a custom user field with id 'hatesetting' and 2 values '15' and '75'
its a choice field with radio buttons
i want to check if the value that was selected by the user is '75'

the problem is that when i select '75' it returns the code in the else part, while it should be returning the code in the if part.

my template:
Code:
<xf:if is="{$xf.visitor.custom_fields.hatesetting.75}">
//do something
<xf:else/>
//do something else
</xf:if>
 
I'm not 100% sure, but try something like:
HTML:
<xf:if is="$xf.visitor.Profile.custom_fields.hatesetting == 75">
    // do something
<xf:else />
    // do something else
</xf:if>
 
Last edited:
another question: do you know how i can make my template apply to every page?
i know about extra.less but when i put xenforo template code in there the entire file wont work anymore (apparently css and template code wont mix)

edit: nvm i figured it out, its called PAGE_CONTAINER
 
Last edited:
Just bumped in to this same issue with the manual still being wrong. $xf.visitor.custom_fields.____ doesn't work anywhere, at least from anywhere I tested it.
 
Back
Top Bottom