Add Advertising after first post - Postbit Alteration
This modification is in the archives.
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> 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 |