Announcement

Collapse
No announcement yet.

Add a banner to the Last post? & other banner questions

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Add a banner to the Last post? & other banner questions

    I want to have a google adsense banner in my forum posts, but not after the first post, or after a certain number, but after the last post.
    http://www.vbulletin.com/forum/showthread.php?t=123281

    This explains how to do it, but what should i put in for it to place the banner after every last post instead of every first post? This is the way i have it setup in my PHPBB.

  • #2
    Admin CP -> Styles & Templates -> Style Manager -> « » -> Show Thread Templates -> SHOWTHREAD

    Code:
    <if condition="$show['threadedmode'] OR $show['hybridmode']">
    <!-- thread posts list -->
    $threadlist
    <!-- /thread posts list -->
    </if>
    
    <div id="posts">$postbits</div>
    
    [color=red]$spacer_open
    <div style="padding:$stylevar[cellpadding]px 0px $stylevar[cellpadding]px 0px">
    
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <tr>
    	<td class="thead" align="left">Sponsored Links</td>
    </tr>
    <tr>
    	<td class="alt1" align="center">
    		[color=red]BANNER CODE HERE[/color]
    	</td>
    </tr>
    </table>
    
    </div>
    $spacer_close[/color]
    
    <!-- start content table -->
    $spacer_open
    <!-- / start content table -->
    That should work.

    Comment


    • #3
      Originally posted by Jake Bunce
      Admin CP -> Styles & Templates -> Style Manager -> « » -> Show Thread Templates -> SHOWTHREAD

      Code:
      <if condition="$show['threadedmode'] OR $show['hybridmode']">
      <!-- thread posts list -->
      $threadlist
      <!-- /thread posts list -->
      </if>
      
      <div id="posts">$postbits</div>
      
      [color=red]$spacer_open
      <div style="padding:$stylevar[cellpadding]px 0px $stylevar[cellpadding]px 0px">
      
      <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
      <tr>
      	<td class="thead" align="left">Sponsored Links</td>
      </tr>
      <tr>
      	<td class="alt1" align="center">
      		[color=red]BANNER CODE HERE[/color]
      	</td>
      </tr>
      </table>
      
      </div>
      $spacer_close[/color]
      
      <!-- start content table -->
      $spacer_open
      <!-- / start content table -->
      That should work.
      Thanks that works well

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X
      😀
      🥰
      🤢
      😎
      😡
      👍
      👎