Courage Posted February 22, 2014 Share Posted February 22, 2014 Hi webflakers; how cand I add a custom banner after 5th post in topic view? Link to comment Share on other sites More sharing options...
0 Lock Down Posted February 22, 2014 Share Posted February 22, 2014 (edited) edit template topic view > post find <script type="text/javascript"> $('report_mark_{$post['post']['pid']}').observe('click', ipb.global.updateReportStatus.bindAsEventListener( this, {$this->memberData['_cache']['report_temp']['post_marker']['post'][$post['post']['pid']]['info']['id']},2,2 ) ); </script> </if> </div> </div> </div> </if> <if test="initIgnoredPost:|:$post['post']['_repignored'] == 1 || $post['post']['_ignored']"> after the </div> add <script type="text/javascript"> $('report_mark_{$post['post']['pid']}').observe('click', ipb.global.updateReportStatus.bindAsEventListener( this, {$this->memberData['_cache']['report_temp']['post_marker']['post'][$post['post']['pid']]['info']['id']},2,2 ) ); </script> </if> </div> </div> </div> <if test="$post['post']['post_count']==5">Your ad goes here</if> </if> <if test="initIgnoredPost:|:$post['post']['_repignored'] == 1 || $post['post']['_ignored']"> Move the if around until you get it where you want it to show. Edited February 22, 2014 by Lock Down 1 Link to comment Share on other sites More sharing options...
0 TJ. Posted February 22, 2014 Share Posted February 22, 2014 The question(s) in this support topic have been answered and the owner has been able to solve the problem. Because of this, the support topic has been closed and moved.If you have other questions, please open a new topic. Link to comment Share on other sites More sharing options...
Question
Courage
Hi webflakers; how cand I add a custom banner after 5th post in topic view?
Link to comment
Share on other sites
2 answers to this question
Recommended Posts