• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 Show custom field value

#1
Hello,

I am trying to show a customFields value in memberview the customField is from number type and in my example i have set an user the amount of 12345, alas when it shows in the member profile view it shows only the first number aka 1.

I have put the following code

HTML:
<xen:if is="{$user.customFields.Pocky}">
    <dl><dt>{xen:phrase Pocky}:</dt>
        <dd>{xen:number $user.customFields.Pocky.Value}</dd></dl>
</xen:if>
This is what i get as value:

1506516956879.png

While the actual value is:

1506516979518.png
 

Steve F

Well-known member
#3
I think all you need is
HTML:
<xen:if is="{$user.customFields.Pocky}">
    <dl><dt>{xen:phrase Pocky}:</dt>
        <dd>{$user.customFields.Pocky}</dd></dl>
</xen:if>