FARKHOSTİNG
Member
How does it work in version 2.0?
PHP:
<xf:comment>DEFINE AND RANDOMIZE YOUR BANNERS</xf:comment>
<xf:set var="$rand">(xf:calc '({$serverTime} % 3) + 1')</xf:set>
<xf:if is="($rand) == 1">
banner one
</xf:if>
<xf:if is="($rand) == 2">
banner two
</xf:if>
<xf:if is="{$rand} == 3">
banner three
</xf:if>
Last edited: