امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
Some time ago I was stuck on an issue and couldn't resolve it.
It was this:
Code:
No matter what I tried I couldn't get that to save so ended up going with a different approach, which was:
Code:
Since then it has bugged me why I couldn't get that to work in a single line of code in XF2, when it was possible in XF1.
Fast forward several months and today I was trying...
Read more
It was this:
Code:
{$banner.{{ ($xf.time % 5) + 1 }} }No matter what I tried I couldn't get that to save so ended up going with a different approach, which was:
Code:
کد:
<xf:set var="$int" value="{{ ($xf.time % 5) + 1 }}" />
{$banner.{$int}}
Since then it has bugged me why I couldn't get that to work in a single line of code in XF2, when it was possible in XF1.
Fast forward several months and today I was trying...
Read more
