Xenforo Random Ads Plugin

Dr.Pavlov

Инквизитор
Admin
Регистрация
11 Июл 2004
Сообщения
5,529
Реакции
1,589
Credits
1,116
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.

[HIDE=3]
Код:
<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}
[/HIDE]