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

Claudio

Well-known member
#1
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
#2
Adsense only allows 3 ads per page.

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

Code:
<xen:if is="{$post.position} < 3">
	AD CODE HERE
</xen:if>