The Arcive of vBulletin Modifications Site. |
|
![]() |
|||||||||||||||||||||||||
This is a very simple template modification have similar to adsence hack and the random postbit advert hack. But you have more control with this hack as you change the option for where the adverts will appear "after which message"
Add This code to the bottom of your postbit template. Here is the code: Code:
<if condition="$post[postcount]==1"> <p align="center"> [AD CODE GOES HERE] </p> </if> Code:
<if condition="$post[postcount]==1"> <p align="center"> [AD CODE GOES HERE] </p> </if> <if condition="$post[postcount]==10"> <p align="center"> [AD CODE GOES HERE] </p> </if> <if condition="$post[postcount]==20"> <p align="center"> [AD CODE GOES HERE] </p> </if> Also there is another way for doing this: Code:
<if condition="in_array($post['postcount'], array(1, 5, 10, 15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100))"> <if condition="in_array($bbuserinfo['usergroupid'], array(1, 2, 3, 4,5,6,7,8, 9))"> $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" align="left">Sponsored Links (<a href=/payments.php>No Ads</a>)</td> </tr> <tr> <td class="alt1" align="center"> [AD CODE GOES HERE] </td> </tr> </table> </div> $spacer_close </if></if> Supporters / CoAuthors Show Your Support
|
Comments |
#2
|
|||
|
|||
![]()
You could combine them all into one.
Code:
<if condition="$post[postcount]==1 OR $post[postcount]==10 OR $post[postcount]==20"> <p align="center"> [AD CODE GOES HERE] </p> </if> |
#3
|
|||
|
|||
![]()
yeah, thanks for that. But i've got different codes for each one. that would be fine for 1 standard adverts of the same.
|
#4
|
||||
|
||||
![]()
Thanks for sharing. Could you please put your instructions in a .txt file and attach it also? Thanks.
|
#5
|
||||
|
||||
![]()
Thanks man.
|
#6
|
|||
|
|||
![]()
This works better for me :
Code:
<if condition="$post[postcount] == 1"> <if condition="in_array($bbuserinfo['usergroupid'], array(1, 2, 3, 4, 8, 9, 10, 22, 6))"> $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" align="left">Sponsored Links</td> </tr> <tr> <td class="alt1" align="center"> <script type="text/javascript"><!-- google_ad_client = "pub-8986773341913936"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text_image"; google_ad_channel =""; google_color_border = "8B1306"; google_color_bg = "132C4B"; google_color_link = "FFFFFF"; google_color_url = "FFFF00"; google_color_text = "FFFFFF"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </td> </tr> </table> </div> $spacer_close </if></if> |
#7
|
|||
|
|||
![]()
Yet another way to do this:
Code:
<if condition="in_array($post['postcount'], array(1, 5, 10, 15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100))"> <if condition="in_array($bbuserinfo['usergroupid'], array(1, 2, 3, 4,5,6,7,8, 9))"> $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" align="left">Sponsored Links (<a href=/payments.php>No Ads</a>)</td> </tr> <tr> <td class="alt1" align="center"> <script type="text/javascript"><!-- google_ad_client = "your google Stuff Here!"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text"; google_ad_channel =""; google_color_border = "89959B"; google_color_bg = "BEC8CE"; google_color_link = "000000"; google_color_url = "00008B"; google_color_text = "496690"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </td> </tr> </table> </div> $spacer_close </if></if> ![]() Enjoy |
#8
|
|||
|
|||
![]()
It did not work in postbit template so put it into postbit_legacy and works fine
|
#9
|
|||
|
|||
![]() Quote:
I installed also this but adsense does not show |
#10
|
|||
|
|||
![]()
works fine here, make sure you're in one of the usergroups that actually shows this, and it should work fine.
Also, make sure that you replace all the google stuff with your own google code and settings, that could be part of it as well. I've been running like this for a while, had no problems with it at all ![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|