Resource icon

XenForo 2.0 Random Ads Plugin

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,724
Points
823

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...
 

ShieldX

Well-known member
Registered
Joined
Mar 27, 2022
Messages
540
Points
53

Reputation:

this code work , but i want to use 2 banner side by side so what will be the code for that as it only showing 1 banner.
 

webelious

New member
Registered
Joined
May 31, 2023
Messages
4
Points
1

Reputation:

Which file do i need to put this code in. New to XF. thanks guys
 
Top