![]() |
Adsense Integration as second post - StarBuG optimized blending
1 Attachment(s)
Introduction:
I am StarBuG, a clinical Physician for Children, and I am running several health Forums to support patients with medical questions. During the many years I am running my Forums I constantly worked on optimizing my Advertising integrations to maximize my earnings and the user experience using my forums. The click through rates for my Adsense integrations are good to very good for forums and may increase due to further optimizations so mark this mod as installed if you use it to make sure you always use the best optimized version of my adsense integration. What this mod does: This mod adds a Google Adsense large rectangle after the first post of each thread. It is blended to look like a regular post in your thread without violating Google adsense TOS. Make sure you use the same colors you use on your forum to optimize blending! This mod shows the AD only to GUESTS! If you want to show it to your members as well remove the " AND $show['guest']" condition!. Installation instructions: in the template postbit_legacy find: Code:
{vb:raw template_hook.postbit_end} Code:
<vb:if condition="$post['isfirstshown'] AND $show['guest']"> Make sure you change all lines marked RED to fit your forum. For better blending I use my Websites Logo as "Avatar" to make it look more like a post. For the same reason I added the "we have no influence..." part below the "Avatar". You can remove the whole "userinfo_extra" part if you don't like the text. Screenshot: https://vborg.vbsupport.ru/external/2010/08/26.png More of my Adsense Integrations:
Patientenfragen.net - we have the answers Of course feedback is welcome and if you have suggestions to further improve CTR please let me know! StarBuG https://vborg.vbsupport.ru/ Google isn't paying you enough money! Discover WHY! |
First post reserved
|
thank you StarBug, good hack
|
super ;)
|
thanks, looks great.
|
I am not a big fan of google...
How could I set this up to rotate personal ads like on refresh... would be very helpful. Thanks |
Use an AD Server like OpenX
|
Sweet! Installed, and working great!
|
great--
This is a great template mod for this... To fix the date so it will display next to the icon change it from date to postdate.. Thanks! |
Works Fine. thx
|
Great hack.. I may look into this one very soon. But im really interested in the Adsense module under your breadcrumbs? Is there a link available for download?
Installing this now.. Question does the ad have to be the 336x280px large rectangle? |
Do you mean the big welcome message with the large rectangle on the left?
You can use whatever ad format you want however a large rectangle ad performs best in my experience |
Quote:
Quote:
|
Did that myself (again :p).
I try to release it in the next few days if I find the time |
Quote:
|
Nice Mod! Is there a way to get this work for vB 3.8.x? Would be great.
|
I released that a long time ago.
Check my profile for the link ;) |
Ok, got it all working, thanks :D
Also, is it possible for the advert to show too all usergroups barring 3 (admins, moderators and premium members)?? Andy |
use: <vb:if condition="!is_member_of($bbuserinfo, X,Y,Z)">
where X,Y,Z are the usergroups you don't want to show the ads to. |
Great mod StarBuG! Just curious if you are using a 3rd party style for your site or if you customized the look/feel yourself?
|
Header and Graphics are designed for my site, the rest I did myself ;)
|
not working in 4.0.7
|
Of course it works, I run it since 4.0.1 unchanged.
Did you view it when logged in? If so you might have missed that it only shows to guests ;) |
not working in 4.0.8
|
Ohhhh people. Please read my replies before you say it is not working!
IT WORKS. I run it on all my forums (4.0.8) and never changed it! It is only viewable for guests. If you don't want that remove the guest condition! |
Quote:
|
change the first line to:
Code:
<vb:if condition="$post['isfirstshown'] AND !is_member_of($bbuserinfo, X,Y,Z)"> |
What code I need to show to all usergroups. I did put
<vb:if condition="$post['isfirstshown'] AND $show['member']"> but is not showing up for all user groups as I will like thanks |
just remove AND $show['member']
|
Quote:
|
Of course it did
vB Conditions are easy once you understand them ;) |
Quote:
Any ideas how can I do to add this mod to show per every 5 posts instead of the second post only? |
Thanks super man
|
As always, that works like a charm
|
installed works great... thank you
|
Interesting, tagged.
|
working on 4.1.7
|
thanks for that.
is there a chance to get it centered ? |
Just modified my 4.1.10. I've improved the design of the "post" so it looks like a real one - with Google's avatar, a user called "Google AdSense" with rank "Ads from Google". It even has registration date and location :)
If anybody's interested - send me a PM, because most probably I won't follow this thread. |
1 Attachment(s)
I think it's easier to publish the code here then answer each PM individually.
As an attachment you can find a screenshot of the platform where I made the modification. You can see working example (in Bulgarian, unfortunately) on this page. The installation process remains the same, except of the code: Code:
<vb:if condition="$post['isfirstshown'] AND $show['guest']"> The code in red you may change/adapt to your needs. Good luck! |
All times are GMT. The time now is 06:09 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|