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

XF 1.4 Multiple ads under conversation

Discussion in 'XenForo Questions and Support' started by NeoCHI, Dec 23, 2014.

  1. NeoCHI

    NeoCHI Active Member

    I'm currently using:

    Code:
    <xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 0">
    Adsense code
    </xen:if>
    
    within the ad_message_below template to put ads under the first post of each thread view page. It's working perfectly fine for the thread view page but for conversations it's causing an ad to be post under every message...what am I doing wrong?
     
  2. Tracy Perry

    Tracy Perry Well-Known Member

    Have you reviewed the resource by Brogan?






    Looks to be the two you need to be working with in an if/else setup.
     

Share This Page