The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Adsense after first post Details »» | |||||||||||||||||||||||||
Hey guys i think many of you will find this very usefull
With the template edit you can display adsense or banner after every 1st post. i have chosen to use my amazon affilite code. Add this to the bottom of your postbit template. Demo PHP Code:
Show Your Support
|
Comments |
#272
|
|||
|
|||
Are there any fixes for this problem.
|
#273
|
||||
|
||||
I have set this up so that it does not show up on private messages and that it shows after the 1st, 5th and 10th post, so that I get 3 ads on each full page of posts. Here is my code...
Code:
<!-- Start Sponsors --> <if condition="(THIS_SCRIPT!='private') && (((($post[postcount]-1)%10 == 0)|(($post[postcount]-5)%10 == 0)))"> $spacer_open <div style="padding:0px 0px $stylevar[cellpadding]px 0px"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-right: 0px" $post[scrolltothis] width="100%"> Sponsors<br /><br /> </td> </tr> <tr> <td class="alt1" align="center"> <script type="text/javascript"><!-- google_ad_client = "xxxxxxxxxxxxxxxxxx"; google_ad_width = 468; google_ad_height = 60; google_ad_format = "468x60_as"; google_ad_type = "text_image"; //2007-09-17: Chattanoogans-POSTBIT google_ad_channel = "xxxxxxxxx"; google_color_border = "F0F1FF"; google_color_bg = "F0F1FF"; google_color_link = "0000FF"; google_color_text = "5B5B5B"; google_color_url = "5B5B5B"; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </td> </tr> </table> </div> $spacer_close </if> <!-- End Sponsers --> The PROBLEM I am having is in the postbit_legacy, for whatever reason this breaks mutiquoting and quick reply buttons. If anyone has a clue how to fix those I would appreciate any help. |
#274
|
||||
|
||||
I figured it our finally, I took the spacer_open and close out of the equation and it works. Here is my final code...
Code:
<!-- / post $post[postid] popup menu --> <!-- Start Sponsors --> <if condition="(THIS_SCRIPT!='private') && (((($post[postcount]-1)%10 == 0)|(($post[postcount]-5)%10 == 0)))"> <div style="padding:6px 0px 0px 0px"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-right: 0px" $post[scrolltothis] width="100%"> Sponsors<br /><br /> </td> </tr> <tr> <td class="alt1" align="center"> <script type="text/javascript"><!-- google_ad_client = "xxxxxxxxxxxxxxxxxxxx"; google_ad_width = 468; google_ad_height = 60; google_ad_format = "468x60_as"; google_ad_type = "text_image"; //2007-09-17: Chattanoogans-POSTBIT google_ad_channel = "xxxxxxxxxxxxxxxxx"; google_color_border = "F0F1FF"; google_color_bg = "F0F1FF"; google_color_link = "0000FF"; google_color_text = "5B5B5B"; google_color_url = "5B5B5B"; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </td> </tr> </table> </div> </if> <!-- End Sponsers --> |
#275
|
||||
|
||||
Code:
<if condition="(($post[postcount]==1) or ($post[islastshown] and !$GLOBALS['vbulletin']->GPC['ajax']))"> this helps all the ones with the FF problem of the blank page after the quick reply |
#276
|
||||
|
||||
Guys, do u have any idea how about the problem when u place the Large Rectange or any ad in the last or first post, and you have quotes in there?
It messes up the design...? |
#277
|
||||
|
||||
Code:
<!-- Start Sponsors --> <if condition="(THIS_SCRIPT!='private') && (((($post[postcount]-1)%10 == 0)|(($post[postcount]-5)%10 == 0)))"> <div style="padding:6px 0px 0px 0px"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-right: 0px" $post[scrolltothis] width="100%"> Sponsored Ads</td></tr> <tr> <td class="alt1" align="center"> <google adds goes here> </td> </tr> </table> </div> </if> <!-- End Sponsers --> |
#278
|
|||
|
|||
Code:
<!-- Start Sponsors --> <if condition="!in_array($forum[forumid], array(1,2,3))"> <if condition="$post[postcount] % $vboptions[maxposts] == 1"> $spacer_open <div style="padding:0px 0px $stylevar[cellpadding]px 0px"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="alt1" align="center"> <script type="text/javascript"><!-- google_ad_client = "pub-846432XXXXXXXX"; google_ad_width = 468; google_ad_height = 60; google_ad_format = "468x60_as"; google_ad_type = "text_image"; //2007-09-17: Chattanoogans-POSTBIT google_ad_channel = "xxxxxxxxx"; google_color_border = "F0F1FF"; google_color_bg = "F0F1FF"; google_color_link = "0000FF"; google_color_text = "5B5B5B"; google_color_url = "5B5B5B"; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </td> </tr> </table> </div> $spacer_close </if> </if> <!-- End Sponsers --> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|