Jump to content

Show ad if theres +2 posts


Owdy

Recommended Posts

Easy with a template edit

forums > front > topics > topic

Find

					{{if $postCount == 1 AND $advertisement = \IPS\core\Advertisement::loadByLocation( 'ad_topic_view' )}}
						{$advertisement|raw}
					{{endif}}

Replace with

					{{if $postCount == 1 AND $advertisement = \IPS\core\Advertisement::loadByLocation( 'ad_topic_view' ) AND $topic->posts > 1}}
						{$advertisement|raw}
					{{endif}}

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...