Hello,
I´m trying to add Brogan´s Guide to add a responsive Adsense between 1. and 2. Post
Using this Code
breaks the Look of the default Core Light Style to this
I´m using the "is admin" conditional just to check if it works. Don´t want to log out an in all the Time
Tested the Code with the Standard Style works just fine.
I´m trying to add Brogan´s Guide to add a responsive Adsense between 1. and 2. Post
Using this Code
Code:
<xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 0 AND {$thread.reply_count} > 0">
<xen:if is="{$visitor.is_admin}">
<li class="message">
<div class="messageUserInfo" itemscope="itemscope" itemtype="http://data-vocabulary.org/Person">
<div class="messageUserBlock">
<div class="avatarHolder">
<span class="helper"></span>
<xen:avatar user="$visitor" size="m" img="true" />
</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-id";
width = document.documentElement.clientWidth;
/* Message Below Responsive 2 */
google_ad_slot = "1234567890";
google_ad_width = 320;
google_ad_height = 50;
if (width > 619) {
/* Message Below Responsive 1 */
google_ad_slot = "1234567890";
google_ad_width = 468;
google_ad_height = 60;
}
if (width > 879) {
/* Message Below */
google_ad_slot = "1234567890";
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>
breaks the Look of the default Core Light Style to this

I´m using the "is admin" conditional just to check if it works. Don´t want to log out an in all the Time
Tested the Code with the Standard Style works just fine.