Jump to content

  •  

  • Tutorial info Visit support topic

    • Added on: Aug 02 2007 08:13 PM
    • Date Updated: May 08 2008 06:10 PM
    • Views: 3318
     


    * * * * *
    2 Ratings

    Advert / Banner after first and last post

    How to add a banner etc to appear after the first and last post on the topic view.

    Posted by AndyF on Aug 02 2007 08:13 PM
    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>

    :)

    Powered by Tutorials 1.4.1 © 2012, by Michael McCune