Resource icon

XenForo 2.0 Random Ads Plugin

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
V.I.P Member
Registered
Joined
Nov 13, 2018
Messages
4,635
Time online
8d 5h 6m
Points
523
LQD submitted a new resource:

Random Ads Plugin - Random Ads Plugin

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.
Code:
<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}
Read more about this resource...
 
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock