Invision Modding: Advert / Banner after first and last post

Jump to content

Advert / Banner after first and last post Bookmark

User is offline AndyF 

  • Cogito ergo sum
  • PipPipPipPipPipPipPipPipPipPip
  • View blog
  • View gallery
  • Group: Management
  • Posts: 7,132
  • Joined: 10-December 06
  • Location:Derby, UK
  • Real Name:Andy
  • IPB Version:v3.1.x

Find Posts Tutorial info

  • Added on: 02 August 2007 - 03:13 PM
  • Date Updated: 08 May 2008 - 01:10 PM
  • Views: 2,297
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. :)

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) :)

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...

<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>


:)
0

Share:

Powered by (IM) Tutorials 1.1.0 © 2010, by Michael McCune