• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Xenforo 2 - Random Ads Code

Admin

Well-Known Member
Staff member
Administrator
Write your ad code where it says banner. It will randomly show an ad every time you refresh the page where you inserted the ad. It is the adaptation of the codes in Xenforo 1.x version for Xenforo 2.x.

HTML:
<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}
 

Facebook Comments

Similar threads

New posts New threads New resources

Back
Top