XF 2.2 Number formatting

Lee

Well-known member
Is there a way I can apply xenforo's number formatting to a custom profile field that I have manually inserted in to a template?
 
How are you outputting the content?

You can use a filter: {$var|number} or {$var|number_short}.

Alternatively, you can use a function: {{ number($var) }} or {{ number_short($var) }}

The output is the same so it's just personal preference.
 
Top Bottom