Jump to content
WebFlake
  • 0

Banner after 5th post?


Courage

Question

2 answers to this question

Recommended Posts

  • 0

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 by Lock Down
  • Upvote 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...