Mutt
Well-known member
I've created a quick edit of the first post error w/ this template edit. Can someone help me correct it? when I save the edited 1st post, the page loads w/ the 1st post completely gone (though the banner is still there) & the little action progress animation running indefinitely.
I'm using this code for ad_message_below to place a banner after the 1st post on every thread page.
I know there's alot going on there but it's this line causing the issue.
I inserted that line to ensure that on short posts the ad was displayed after the post & not sorta in the post area. when i remove it the problem goes away.
I'm using this code for ad_message_below to place a banner after the 1st post on every thread page.
Code:
<xen:hook name="ad_message_below" />
<xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 0 AND !{$message.conversation_id}">
<xen:comment>after 1st post</xen:comment>
<li id="after_1st_post_ad" class="message">
<div align="center" style="background: white; padding: 10px; margin: 10px auto; border: 1px solid black; border-radius: 10px;">
<xen:if is="{xen:helper ismemberof, $visitor, 20, 12, 9}">
SFN Supporters & VIPs don't see this ad.
<xen:else />
<xen:if is="{$forum.node_id} == 6">
this is an adult ad
<xen:else />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-xxxxxx";
/* after 1st post - 728x90 */
google_ad_slot = "7074045484";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</xen:if>
</xen:if>
<xen:if is="{$visitor.is_admin} AND {$xenOptions.showAdLocations}">
<div align="center" style="background: yellow; padding: 4px; font-size: 16px; font-weight: bold; width: 500px;">ad_message_below 1st</div>
</xen:if>
</div>
</li>
<xen:else />
<xen:comment>between posts</xen:comment>
<xen:if is="{$visitor.is_admin} AND {$xenOptions.showAdLocations}">
<div align="center" style="background: white; padding: 10px; margin: 10px auto; border: 1px solid black; border-radius: 10px;">
<div align="center" style="background: yellow; padding: 4px; font-size: 16px; font-weight: bold; width: 500px;">ad_message_below</div>
</div>
</xen:if>
</xen:if>
I know there's alot going on there but it's this line causing the issue.
Code:
<li id="after_1st_post_ad" class="message">
</li>