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


    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:

  3. wang

    wang Well-Known Member

    I think you can do that with this code:

    <xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 0 AND {$thread.reply_count} > 0">
    adsense code
    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