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 |
#252
|
|||
|
|||
[COLOR="Black"]
Quote:
Place this code at the very end of your Postbit_legacy template. This works in all versions of 3.6 Code:
<!-- Adsense After LAST Post --> <if condition="$post[postcount]!=1 and $post['islastshown']"> <!-- GOOGLE AD --> <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> Paste you Google Adsense Code Here </td> </tr> </table> </div> $spacer_close </if> <!-- Google Ad --> |
#253
|
||||
|
||||
Great thanks alot. The problem was is that Im using postbit legacy as opposed to postbit template. Thanks for the code as well for keeping it in the bottom of the posts...
|
#254
|
|||
|
|||
Quote:
Glad it works |
#255
|
||||
|
||||
Quote:
I tried to make it only visible to guests.. But couldn't The starting is like this: What should I add to make it only visible to guests. Code:
<if condition="(($post[islastshown] and !$GLOBALS['vbulletin']->GPC['ajax']))"> |
#256
|
|||
|
|||
Hello Everyone,
I know this has been asked before, but no one has seemed to answer it, so I am going to ask it again. Besides, I am sure that are still several people including myself that is experiencing this issue. This is a really good hack other than the fact that after it's installed, it also shows up in the personal message due to it being in the postbit_legacy file. It's not that it shows up in the personal message that is the problem, the problem is, is that it does not fit properly in the personal message page (below the message box itself). However, if I change the formatting code to make it fit in the personal message page, then it does not show up properly after the 1st post in a thread. A catch 22 situation. Therefore, I either need to find a way to fix the formatting so that it fits in both sitiuations or make it so that it does not show up in the personal message. I do want to use the code and not want to have to delete it because it won't show up properly in the personal message, so I need some help. Anyone know how to fix the code for either situations? Thank You, Nuguru |
#257
|
|||
|
|||
The code for adsense within the first and last post is not working. I added it below <!-- / message -->
Quote:
I'm using 3.6.4 |
#258
|
|||
|
|||
OK, it worked perfect in postbit but it is DOA when you put it in postbit_legacy
|
#259
|
|||
|
|||
Quote:
Hello and Happy New Year from WebbinZine.com, Again, does anyone know how to fix this sizing and spacing issue between the PM and after the 1st post? Thank You, Nuguru |
#260
|
|||
|
|||
Hello,
I'm having a slight problem with the Adsense displayed in the first post. I'm using this code to display the ads: <if condition="$post[postcount] % $vboptions[maxposts] == 1"> But then it gives me an alignment problem when the post is short. How can I fix this problem? Thanks. |
#261
|
|||
|
|||
Hi,
I am using the code as specified on Page 1 - Works fine - only problem is it puts the code under every post when you click to read a pm - and because of this - pushs he design out, is there a way not to show it when reading messages in the pm center? Hope someone can help. Webs |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|