XF 1.4 Disabling adsense on thin pages


I want to show adsense in thread view, but only on pages that:

1. are image free
2. are video free (including embedded youtube videos)
3. have substantial content i.e more than 2 posts.

What would be the best way to achieve that?


XenForo developer
Staff member
The last part you could check by "{$thread.reply_count} > 1" (or "count({$posts}) > 1") in a template condition. (Note that you may need to be careful where the adsense code is going as these may not be available in all templates.)

The first two requirements would require custom development.