Owdy Posted January 11, 2020 Posted January 11, 2020 I wanna show ad after first forum post, but only when ther are more that 1 posts. Is ti possible? some code?
Martin A. Posted January 12, 2020 Posted January 12, 2020 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}}
Recommended Posts
Archived
This topic is now archived and is closed to further replies.