امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
I can't believe this has never been asked before, but anyway, here is my code so far.
HTML:
The problem here is specifically this line:
Code:
If it is as above, it will always fire and display the image, no matter what the random number is. But if it is as below:
Code:
Read more
HTML:
کد:
<xf:set var="$number">
{{ rand(1,3) }}
</xf:set>
<xf:if is="{$number} == 1">
<a href="URL"><img src="image URL"></a>
<xf:else />
<p>{$number}</p>
</xf:if>
The problem here is specifically this line:
Code:
<xf:if is="{$number} == 1">If it is as above, it will always fire and display the image, no matter what the random number is. But if it is as below:
Code:
<xf:if...Read more
