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

ad_above_content: ads up 3th post?

Discussion in 'Styling and Customization Questions' started by Claudio, Nov 5, 2011.

  1. Claudio

    Claudio Well-Known Member

    I´m using ad_message_body to display a 336x280 block of Adsense

    The problem is that if there are more than 3 posts, since the 4th post there is now adsense but there is an empty space

    How can I do to avoid the display of adsense since the 4th post?
    Sin título.gif

    EDIT: The title of this thread is wrong, I couldnt edit it
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Adsense only allows 3 ads per page.

    This code will restrict your ads to the first three posts in a thread:

    <xen:if is="{$post.position} < 3">
    Claudio likes this.
  3. Claudio

    Claudio Well-Known Member

    thanks Jake, it works :)

Share This Page