امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
Hi
How can I display a number variable as a 'simple' number in a template?
Example code:
HTML:
i.e. instead of displaying the $cost variable as
Is there a built in function I can use, or only use JavaScript?
I found this post:
XF 2.1 - XF template "functions"?
But can't figure out how to use the functions (and if they are...
Read more
How can I display a number variable as a 'simple' number in a template?
Example code:
HTML:
{{ $cost ? $cost : phrase('free') : }}i.e. instead of displaying the $cost variable as
5.00 USD I'd like to simply display[COLOR=hsl(var(--xf-editorFocusColor))] [/COLOR]5.Is there a built in function I can use, or only use JavaScript?
I found this post:
XF 2.1 - XF template "functions"?
But can't figure out how to use the functions (and if they are...
Read more
