Back to vBulletin 3.6 Template Modifications

Add Advertising after first post - Postbit Alteration
Mod Version: 1.00, by GoTTi

This modification is in the archives.
vB Version: 3.6.0 Rating: (6 votes - 4.83 average) Installs: 128
Released: 08 Sep 2006 Last Update: Never Downloads: 25
Not Supported  

go into your postbit or postbit_legacy template and add this to the END of the template:

Code:
<if condition="!$GLOBALS['FIRSTPOSTID']">
 <br>
<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr>
    <td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]" colspan="2">        
        Sponsored Links
    </td>
</tr>
<tr>
    <td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px">
<center>
<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxxx";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="xxxxxxx";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000CC";
google_color_url = "008000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
  src="https://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center>
    </td>
</tr>
</table> 
</if>
Note: This example shows code for a google ad. you can remove the entire google ad and place a different code in there. perhaps phpadsnew code or some other advertising companies codes. whatever you like.

This is the standard code without ads inside.

Code:
<if condition="!$GLOBALS['FIRSTPOSTID']">
 <br>
<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr>
    <td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]" colspan="2">        
        Sponsored Links
    </td>
</tr>
<tr>
    <td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px">
<center>
------PLACE AD CODE HERE------
</center>
    </td>
</tr>
</table> 
</if>

Download

No files for download.

Screenshots

Click image for larger version
Name:	Image1.jpg
Views:	3543
Size:	32.3 KB
ID:	53207  


vblts.ru supports vBulletin®, 2022-2024