The Arcive of vBulletin Modifications Site. |
|
Show Adsense After post number "x" and "x" Details »»
|
|||||||||||||||||||||||||||
|
Show Adsense After post number "x" and "x"
Developer Last Online: Jul 2022
Works With Vbulletin V3.7.2 This is a very simple template modification have similar to absence 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 one of these codes to the bottom of your postbit template. Here are the codes: 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
|
|||
|
|||
|
awesome Reserved
|
|
#3
|
|||
|
|||
|
any idea how to get rid of this space?
![]() heres the code i added at the bottom Quote:
|
|
#4
|
|||
|
|||
|
that screenshot is hardly viewable...
|
|
#5
|
|||
|
|||
|
Take the .th. out before the .jpg and you get the full image -
|
|
#6
|
|||
|
|||
|
The space is the natural space that happens between each post. I'll try to add a space to the top of the advert for you.
|
|
#7
|
|||
|
|||
|
$spacer_open and $spacer_close is the problem.
|
|
#8
|
|||
|
|||
|
I tried to remove them but it didn't help. There was still a gap on the bottom side.
|
|
#9
|
|||
|
|||
|
Simply add <br /> before $spacer_open. Example:
<br /> $spacer_open <div style="padding:0px 0px $stylevar[cellpadding]px 0px"> |
|
#10
|
|||
|
|||
|
its really a useful stuff !
thanks for sharing
|
![]() |
|
|