• 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?


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

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">