Resource icon

XenForo 2.0 Random Ads Plugin

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
6,958
Points
698

Reputation:

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