1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.3 Getting ad out of post frame

Discussion in 'XenForo Questions and Support' started by Jeff Fuqua, Mar 8, 2015.

  1. Jeff Fuqua

    Jeff Fuqua Well-Known Member

    I have an ad which shows up after the fifth post but it appears within the post frame. I was wondering how I might have it appear on the outside.

    Here's the code:

    <xen:hook name="ad_message_below" />
    <xen:if is="{xen:helper ismemberof, $visitor, 13}"><xen:else />
    <xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 5 AND {$firstPost} AND !{$message.conversation_id}">
    <table style="background-color: #f4f4f4;" width="100%" border="0" cellspacing="0" cellpadding="0">
    <td style="padding-top: 15px; padding-bottom: 0px;"><div align="center"><div style="float:middle;">
    <!-- BEGIN RICH-MEDIA Burst Media CODE -->
    ad code
    <!-- END Burst Media CODE --></div>
    <div style="clear:both"></div>
  2. Tracy Perry

    Tracy Perry Well-Known Member

    You also need to specify that you are not using the default style, but one by @Audentio Design. You should post in the discussion group for that style to get feedback as the normal ad placement (if I remember correctly) is outside the frame.
  3. Brogan

    Brogan XenForo Moderator Staff Member

    Create a new list item by adding </li><li> to the top of the template.
    Jeff Fuqua likes this.
  4. ThemeHouse

    ThemeHouse Well-Known Member

    Yep this is what I recommend for our themes as well.

Share This Page