Support Forum
Any thoughts for a advertisement plugin?
lets try this again, if I wanted to show it on every say 3rd post, would I do this?
if
(
$spTopicView
->currentPost==3){
if (!is_user_logged_in()) { echo ' <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!– Responsive –> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-xxxxxxxxxxxxxxxx" data-ad-slot="xxxxxxxxx" data-ad-format="auto"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> '; }
}
well, if you want it after every third post (what you asked for), that is not how one would do it.. but sounds like you have what you want? It would show it only after the third post...
Visit Cruise Talk Central and Mr Papa's World
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 618
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10126
Posts: 79622