Navigation

> Viewing tutorial: Advert / Banner after first and last post
Options V
Description: How to add a banner etc to appear after the first and last post on the topic view.
I can`t really take much credit for this, this is mainly due to Michael`s help and tips that i have combined to get this. thumbsup.gif

Anyway, this is probably useful for adsense etc, it will display a banner / ad etc after the first post and after the last post (this is regardless of the users posts per page setting) smile.gif

ACP > Look and feel > Skin manager > (edit skin) > Edit template html > Topic view > Render row

Add this to the very bottom, after all other code...

CODE
<if="in_array( $post['post_count'] % $this->ipsclass->vars['display_max_posts'], array( 0, 1 ) )">
<table class='ipbtable' cellspacing="1">
<tr>
<td align="center">

PUT YOUR ADVERTISEMENT CODE ETC HERE

</td>
</tr>
<tr>
<td class="catend" colspan="2">
<!-- no content -->
</td>
</tr>
</table>
</if>


smile.gif

Category jump:

Collapse

> Tutorials System Statistics

3 user(s) active in the Tutorials System
Active Users 3 guest(s), 0 member(s) 0 anonymous member(s)
Tutorials System Statistics
Board Stats Tutorials: 498
Categories: 15
Views: 371,017

(FSY23) Tutorials v2.1 © 2010 by Michael McCune
RSS Lo-Fi Version 

Skin by IPB Customize
Time is now: 8th February 2010 - 09:57 PM