The Arcive of vBulletin Modifications Site. |
|
Google Adsense (or other) in a Block like an Individual Post Details »»
|
|||||||||||||||||||||||||||||
|
Google Adsense (or other) in a Block like an Individual Post
Developer Last Online: Aug 2017
This is for you that don't like how vB standard ad management works as a matter of delivery ads inside the posts in a thread. You know, it may looks disrespectful for someone that posted a great material in a thread but have to share its space with adsenses.
I've tested it only on Postbit Legacy so far but I don't think that's a reason for not working on Postibit as well. It's a pretty simple template edit. Just find your Postbit Legacy or Postbit Template and add the code below, right at the end of the template, click save and it's done. Code:
<vb:if condition="$post[postcount] % $vboptions[maxposts] == 1"> <div class="postbit"> <h3 class="posthead"> Sponsored Links</h3> <div class="postbody">--YOUR ADSENSE CODE GOES HERE --</div> </div> <br /> </vb:if> I'm still trying to figure out how vB conditionals work and so far I've did it only to show it after the first post everywhere. I'm sure if you are familiar with that and use different ones on the first line of the code, you can be able to show this on specific forums, different positions, etc. If you know how to do it, please share what you tried with others here. If you like it, mark it as Installed please ! Screenshots
Show Your Support
|
|||||||||||||||||||||||||||||
| Благодарность от: | ||
| sodasusu | ||
| Comments |
|
#2
|
|||
|
|||
|
Good idea but your template modification creates a lot of xhtml issues...
|
|
#3
|
|||
|
|||
|
images?
|
|
#4
|
|||
|
|||
|
I?m using nearly the same code as posted here: http://www.2-wheel-planet.de/ebay/24...post15784.html
|
|
#5
|
|||
|
|||
|
Nice work.
|
|
#6
|
||||
|
||||
|
Quote:
My images won't help you much as in fact I don't use adsenses with this but in fact banners I manage my self with phpadsnew But you'll have exactly after first post in thread a box with your adsense into it, looking exactly your postbit (or legacy) frame, with same colors you used on your forums. Not a big deal. If some one here using adsenses wants to share a screenshot, I'd please in add it to the first post here. |
|
#7
|
|||
|
|||
|
|
|
#8
|
||||
|
||||
|
You got it Khalled: https://vborg.vbsupport.ru/showthread.php?t=237502
|
|
#9
|
||||
|
||||
|
Screen shot added.
|
|
#10
|
|||
|
|||
|
Just installed right now! mark as installed and rate 5stars! keep up the good work... peace
|
![]() |
|
|