- 05, Jun 2020
- #1
Type your ad code in the places where banners are written. Each time you refresh the page where you add the ad, it will randomly show an ad. Xenforo is a version of the code 1.x, adapted for Xenforo 2.x.
<xf:comment>DEFINE AND RANDOMIZE YOUR BANNERS</xf:comment>
<xf:set var="$banners.1">banner 1</xf:set>
<xf:set var="$banners.2">banner 2</xf:set>
<xf:set var="$banners.3">banner 3</xf:set>
{$banners.{{ ($xf.time % 3) + 1 }}|raw}