Andre Daub
Active member
Wow thank you very much. Now it works fine.
And the oferflow auto in .bbCodeQuote works perfect.
Thank you for your patience.
And the oferflow auto in .bbCodeQuote works perfect.
Thank you for your patience.
but no ads are showing up.if (width > 743) {
<div style="text-align: left;">
/* Above Content Left 336x280 */
google_ad_slot = "codehere";
google_ad_width = 336;
google_ad_height = 280;
</div>
<div style="text-align: right;">
/* Above Content Right 336x280 */
google_ad_slot = "codehere";
google_ad_width = 336;
google_ad_height = 280;
</div>
}
if (width > 743) {
/* Above Content Left 336x280 */
google_ad_slot = "codehere";
google_ad_width = 336;
google_ad_height = 280;
}
<xen:if is="!{$visitor.user_id} AND {$post.position} % {$xenOptions.messagesPerPage} == 0 AND {$thread.reply_count} > 0">
<li class="message">
<div class="messageUserInfo" itemscope="itemscope" itemtype="http://data-vocabulary.org/Person">
<div class="messageUserBlock">
<div class="avatarHolder">
<span class="helper"></span>
<a href="{xen:link 'members/member.2326/'}" class="avatar" data-avatarhtml="true"><img src="data/avatars/m/2/2326.jpg" width="96" height="96" alt="Member" /></a>
</div>
<h3 class="userText">
<span style="font-weight: bold">Google AdSense</span>
<em class="userTitle" itemprop="title">Advertisement</em>
</h3>
<span class="arrow"><span></span></span>
</div>
</div>
<div class="messageInfo primaryContent">
<div class="messageContent">
<article>
<blockquote class="messageText ugc baseHtml">
<div id="google-linkads-1"></div>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
ad = document.getElementById('google-linkads-1');
var adWidth = (typeof ad.getBoundingClientRect === 'function') ?
ad.getBoundingClientRect().width : ad.offsetWidth;
/* replace XXX with your publisher id */
google_ad_client = "ca-pub-xxx";
/* replace all ad-slot#X strings with the correct ad slot IDs */
if ( adWidth >= 698 ) google_ad_param = ["728", "15", "ad-slot#X"];
else if ( adWidth >= 460 ) google_ad_param = ["468", "15", "ad-slot#X"];
else if ( adWidth >= 100 ) google_ad_param = ["200", "90", "ad-slot#X"];
else google_ad_param = ["200", "90", "ad-slot#X"];
document.write (
'<ins class="adsbygoogle" style="display:inline-block;'
+ 'width:' + google_ad_param[0] + 'px;'
+ 'height:' + google_ad_param[1] + 'px'
+ '" data-ad-client="' + google_ad_client
+ '" data-ad-slot="' + google_ad_param[2]
+ '"></ins>'
);
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</blockquote>
</article>
</div>
</div>
</li>
</xen:if>
<xen:if is="!{$visitor.user_id} AND {$post.position} % {$xenOptions.messagesPerPage} == 1 AND !{$message.conversation_id}">
<li class="message">
<div class="messageUserInfo" itemscope="itemscope" itemtype="http://data-vocabulary.org/Person">
<div class="messageUserBlock">
<div class="avatarHolder">
<span class="helper"></span>
<a href="{xen:link 'members/member.2326/'}" class="avatar" data-avatarhtml="true"><img src="data/avatars/m/2/2326.jpg" width="96" height="96" alt="Member" /></a>
</div>
<h3 class="userText">
<span style="font-weight: bold">Google AdSense</span>
<em class="userTitle" itemprop="title">Advertisement</em>
</h3>
<span class="arrow"><span></span></span>
</div>
</div>
<div class="messageInfo primaryContent">
<div class="messageContent">
<article>
<blockquote class="messageText ugc baseHtml">
<div class="message-body">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- message-body -->
<ins class="adsbygoogle message-body"
style="display:inline-block"
data-ad-client="ca-pub-xxx"
data-ad-slot="xxx"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</blockquote>
</article>
</div>
</div>
</li>
</xen:if>
@media (min-width: 940px) {
.message-body {
width: 728px;
height: 90px;
}
}
@media (max-width: 939px) {
.message-body {
width: 300px;
height: 250px;
}
}
@media (max-width: 400px) {
.message-body {
width: 250px;
height: 250px;
}
}
And this to your xen if array:How do I stop this showing with the best posts add-on? That add-on grabs multiple posts with ads on a single page, thus breaching Googles policy.
Where do I find the array name to use?
AND !({$post.isBestAnswer} AND {$post.dupe})
Nope, that didn't work.
Nah, it works fine for me.And this to your xen if array:
@Lior. can confirm this.And this to your xen if array:
Using it for months already.AND !({$post.isBestAnswer} AND {$post.dupe})
You sure? I just read through the discussion and I don't see you: http://xenforo.com/community/threads/best-posts-uncover-your-top-content-paid.75322/I ask this on the addon author myself few months ago.
Vis PM.You sure? I just read through the discussion and I don't see you: http://xenforo.com/community/threads/best-posts-uncover-your-top-content-paid.75322/
We use essential cookies to make this site work, and optional cookies to enhance your experience.