Owdy Posted January 11, 2020 Share 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? Link to comment Share on other sites More sharing options...
Martin A. Posted January 12, 2020 Share 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}} Link to comment Share on other sites More sharing options...
Owdy Posted January 12, 2020 Author Share Posted January 12, 2020 Perfect, thank you 🙂 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.