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

XF 1.5 Adsense ad after 1st post in a thread?

Discussion in 'Troubleshooting and Problems' started by fredrikse, Feb 13, 2016.

  1. fredrikse

    fredrikse Active Member

    Hi,

    What configuration is necessary to get an AdSense Ad after the first post in a thread?
     
  2. fredrikse

    fredrikse Active Member

    Currently I use the following templates:

    ad_thread_view_above_messages
    ad_thread_view_below_messages
     
  3. wang

    wang Well-Known Member

    I think you can do that with this code:

    HTML:
    <xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 0 AND {$thread.reply_count} > 0">
    adsense code
    </xen:if>
     
    fredrikse likes this.
  4. fredrikse

    fredrikse Active Member

    Thanks, @wang. I will give it a try.
     
    wang likes this.
  5. wang

    wang Well-Known Member

    You are welcome sir.
     
  6. fredrikse

    fredrikse Active Member

    In what template should I put this code?
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

Share This Page