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

No ad in conversation window

Discussion in 'XenForo Questions and Support' started by Dav, Nov 12, 2010.

  1. Dav

    Dav Active Member

    Hi,

    How do i add a google adsense advertisement after the first post in all threads but so they dont appear after the first post in the conversation window?

    Thanks
     
  2. Lawrence

    Lawrence Well-Known Member

    Appearance -> Templates -> Message

    Scroll down to the very bottom of the message template and paste in the following:


    Code:
    <xen:if is="!{$post.position} AND !{$message.conversation_id}">
    
    your adsense code here
    
    </xen:if>
     
  3. Dav

    Dav Active Member

    Thanks for this Lawrence :)
     
  4. Umit

    Umit Active Member

    You are wonderful! Thank you :)
     

Share This Page