XF 1.5 Show custom field value

EvilGenius

New member
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.webp

While the actual value is:

1506516979518.webp
 
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>
 
Top Bottom