JamesBrown
Well-known member
I have found that an advert after the first post is one of the best adsense earners. can someone post an idiots guide to achieving this with with XF. Thanks in anticipation.
Sencond post or maybe after x replies ? Would be great..And how about an ad as second post that looks like a regular reply? Does such resource exist?
You can use this to put ad in second post http://xenforo.com/community/resources/bd-rotating-ads.292/Sendond post or maybe after x replies ? Would be great..
Thank you very much, I'll give it a tryYou can use this to put ad in second post http://xenforo.com/community/resources/bd-rotating-ads.292/
Very nice..And you are using "Rotating Ads" addon pointed by HenrikHansen ?
<xen:hook name="ad_message_below" />
<xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 0 AND {$thread.reply_count} > 0">
<xen:if is="!{$visitor.user_id}">
<li class="message">
<div class="messageUserInfo">
<div class="messageUserBlock">
<div class="avatarHolder" style="height: 102px; width: 102px">
<span class="helper"></span>
<img src="http://cliptheapex.com/data/avatars/m/0/2.jpg" alt="Avatar" height="96px" width="96px" style="border: 1px solid #C0C0C0; padding: 2px" />
</div>
<h3 class="userText">
<span style="font-weight: bold">Google AdSense</span>
<em class="userTitle" itemprop="title">Guest Advertisement</em>
</h3>
<span class="arrow"><span></span></span>
</div>
</div>
<div class="messageInfo primaryContent">
<div class="messageContent">
<article>
<blockquote class="messageText ugc baseHtml">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-######";
/* Message Below */
google_ad_slot = "######";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<br /><br /><label for="LoginControl"><span style="font-weight: bold; color: #004400"><a href="login/" class="concealed noOutline">Log in or Sign up</a></span></label> to hide all adverts.
</blockquote>
</article>
</div>
</div>
</li>
</xen:if>
</xen:if>
<xen:hook name="ad_message_below" />
<xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 0 AND {$thread.reply_count} > 0">
<li class="message">
<div class="messageUserInfo">
<div class="messageUserBlock">
<div class="avatarHolder" style="height: 102px; width: 102px">
<span class="helper"></span>
<img src="http://cliptheapex.com/data/avatars/m/0/2.jpg" alt="Avatar" height="96px" width="96px" style="border: 1px solid #C0C0C0; padding: 2px" />
</div>
<h3 class="userText">
<span style="font-weight: bold">Google AdSense</span>
<em class="userTitle" itemprop="title">Guest Advertisement</em>
</h3>
<span class="arrow"><span></span></span>
</div>
</div>
<div class="messageInfo primaryContent">
<div class="messageContent">
<article>
<blockquote class="messageText ugc baseHtml">
Your advert here
</blockquote>
</article>
</div>
</div>
</li>
</xen:if>
We use essential cookies to make this site work, and optional cookies to enhance your experience.