XenForo
Administrative
- Thread starter
- Admin
- #1
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:
Code:
<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
ادامه مطلب...