Log in

View Full Version : Show Thread Enhancements - Adsense Integration as second post - StarBuG optimized blending


StarBuG
08-20-2010, 10:00 PM
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 (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=249052) 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:

{vb:raw template_hook.postbit_end}and add below:

<vb:if condition="$post['isfirstshown'] AND $show['guest']">
<ul>
<li class="postbitlegacy postbitim postcontainer" id="post_{vb:raw post.postid}">
<!-- see bottom of postbit.css for .userinfo .popupmenu styles -->

<div class="posthead">&nbsp;&nbsp;<img title="Alt" src="./images/statusicon/post_old.png" alt="Alt" border="0" /><span class="date">&nbsp;<a href="http://www.DOMAIN.COM/register.php" style="color:#FFFFFF; text-decoration:underline;">(No Advertising after the first post? Register now for free!)</a></span></div>
<div class="postdetails">
<div class="userinfo">
<div class="username_container">
<br />
<span style="font-weight:bold;font-size:14px;margin-left:0px;color:#000000;">Advertising</span><br /><br />
<img src="http://www.DOMAIN.COM/images/logo_ads.png" width="90px" height="90px" alt="advertising" title="advertising" />
<dl class="userinfo_extra">
<dd>Forumname.com</dd>
<dd>has no influence</dd>
<dd>on advertisings</dd>
<dd>that are displayed by</dd>
<dd>Google Adsense</dd>
</dl>
</div>
</div>
<div class="postbody">
<br />
&nbsp;&nbsp;<!- Your Google Adsense Code for a 336x280px large rectangle -->
<div class="cleardiv"></div>
</div>
</div>
<div class="postfoot">
<div class="textcontrols floatcontainer">
<span class="postcontrols">&nbsp;</span>
</div>
</div>
<hr />
</li>
</ul>
</vb:if>Additional Comments:
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:
Adsense Integration as last post - StarBuG optimized blending (https://vborg.vbsupport.ru/showthread.php?t=249053)
Adsense Integration above similar threads - StarBuG optimized blending (https://vborg.vbsupport.ru/showthread.php?p=2087339)
Adsense integration together with nice welcome message - StarBuG optimized blending (https://vborg.vbsupport.ru/showthread.php?t=250649)Demo:
Patientenfragen.net - we have the answers (http://www.patientenfragen.net/en/)

Of course feedback is welcome and if you have suggestions to further improve CTR please let me know!

StarBuG

https://vborg.vbsupport.ru/ (http://www.AdSenseExperts.com)

Google isn't paying you enough money! Discover WHY! (http://www.adsenseexperts.com/consulting/adsense-optimization-service.html)

StarBuG
08-21-2010, 11:38 AM
First post reserved

lmgc
08-23-2010, 12:39 PM
thank you StarBug, good hack

TwiMaster
08-26-2010, 01:42 PM
super ;)

jacobsen1
09-02-2010, 01:25 PM
thanks, looks great.

onehost
09-04-2010, 06:08 AM
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

StarBuG
09-04-2010, 07:12 AM
Use an AD Server like OpenX

adiboy.net
09-06-2010, 07:20 AM
Sweet! Installed, and working great!

RichieBoy67
09-11-2010, 09:53 PM
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!

lubbie
09-14-2010, 01:25 PM
Works Fine. thx

VonDoom
09-14-2010, 07:01 PM
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?

StarBuG
09-14-2010, 08:54 PM
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

VonDoom
09-14-2010, 10:45 PM
Do you mean the big welcome message with the large rectangle on the left?

Yes ive seen this on another forum a cpl years ago and have been looking for it every since.

You can use whatever ad format you want however a large rectangle ad performs best in my experience
Thanks i was playing around with it for a minute and decided i preferred what you had suggested.

StarBuG
09-14-2010, 10:58 PM
Did that myself (again :p).

I try to release it in the next few days if I find the time

VonDoom
09-14-2010, 11:42 PM
Did that myself (again :p).

I try to release it in the next few days if I find the time

Oh WOW! Thanks a ton!!! :)

Silmarillion
09-25-2010, 09:28 PM
Nice Mod! Is there a way to get this work for vB 3.8.x? Would be great.

StarBuG
09-26-2010, 06:25 AM
I released that a long time ago.

Check my profile for the link ;)

Blade-uk
10-08-2010, 10:40 AM
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

StarBuG
10-08-2010, 01:43 PM
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.

westcan
10-10-2010, 05:27 AM
Great mod StarBuG! Just curious if you are using a 3rd party style for your site or if you customized the look/feel yourself?

StarBuG
10-10-2010, 05:58 PM
Header and Graphics are designed for my site, the rest I did myself ;)

XiTCLUB
10-25-2010, 07:30 PM
not working in 4.0.7

StarBuG
10-25-2010, 08:02 PM
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 ;)

xbrian88
10-25-2010, 08:06 PM
not working in 4.0.8

StarBuG
10-25-2010, 08:32 PM
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!

FReeSTER
10-26-2010, 04:37 AM
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.

where do I add this code please?

StarBuG
10-26-2010, 04:07 PM
change the first line to:


<vb:if condition="$post['isfirstshown'] AND !is_member_of($bbuserinfo, X,Y,Z)">

FReeSTER
10-26-2010, 06:19 PM
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

StarBuG
10-26-2010, 06:57 PM
just remove AND $show['member']

FReeSTER
10-26-2010, 06:58 PM
change the first line to:


<vb:if condition="$post['isfirstshown'] AND !is_member_of($bbuserinfo, X,Y,Z)">


Thank you so much it worked:)

StarBuG
10-26-2010, 07:11 PM
Of course it did

vB Conditions are easy once you understand them ;)

FReeSTER
10-27-2010, 10:48 AM
just remove AND $show['member']

Thank you mate, great mod and the best support.

Any ideas how can I do to add this mod to show per every 5 posts instead of the second post only?

SİMAR
01-09-2011, 09:59 PM
Thanks super man

Winter Sonata
01-16-2011, 09:25 PM
As always, that works like a charm

cakeforums
07-20-2011, 10:30 PM
installed works great... thank you

BlueCheri
07-21-2011, 07:19 AM
Interesting, tagged.

needtheend
10-24-2011, 08:42 PM
working on 4.1.7

thompson
12-21-2011, 07:35 AM
thanks for that.

is there a chance to get it centered ?

pvelkov
03-13-2012, 06:53 PM
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.

pvelkov
03-18-2012, 11:16 AM
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 (http://www.bgaudioclub.org/showthread.php?14735-%D0%91%D0%B0%D0%B2%D0%B5%D0%BD-%D0%B8%D0%BD%D1%82%D0%B5%D1%80%D0%BD%D0%B5%D1%82-%D0%BF%D1%80%D0%B8-%D0%BF%D0%BE%D0%B2%D0%B5%D1%87%D0%B5-%D0%BE%D1%82-2-%D0%BA%D0%BE%D0%BC%D0%BF%D1%8E%D1%82%D1%8A%D1%80%D 0%B0).

The installation process remains the same, except of the code:


<vb:if condition="$post['isfirstshown'] AND $show['guest']">
<ul>
<li class="postbitlegacy postbitim postcontainer" id="post_{vb:raw post.postid}">
<!-- see bottom of postbit.css for .userinfo .popupmenu styles -->

<div class="posthead">
<span class="postdate old"><span class="date"><a href="register.php" style="color:#FFFFFF; text-decoration:underline;">(No Advertising after the first post? Register now for free!)</a></span></span><span class="nodecontrols">#0</span>
</div>

<div class="postdetails">
<div class="userinfo">
<div class="username_container">

<div class="popupmenu memberaction">
<a class="username online popupctrl" href="register.php" title="Register now and stop seeing ads!"><strong>Google AdSense</strong>&nbsp;</a>
</div>

<img class="inlineimg onlinestatus" src="images/statusicon_custom/user-online.png" alt="Google is online" border="0" title="Google is online">
</div>

<span class="usertitle">Advertising from Google</span>

<a class="postuseravatar" title="Google is online"><img src="images/google.png" alt="Advertising from Google" title="Advertising from Google" /></a>

<hr>
<dl class="userinfo_extra">
<dt>Joined in</dt>
<dd>Dec 2007</dd>
<dt>Address</dt>
<dd>Google.com</dd>
</dl>

</div>
<div class="postbody">
<br />
&nbsp;&nbsp;<!- Your Google Adsense Code with any size -->
<div class="cleardiv"></div>
</div>
</div>
<div class="postfoot">
<div class="textcontrols floatcontainer">
<span class="postcontrols">&nbsp;</span>
</div>
</div>
<hr />
</li>
</ul>
</vb:if>


The code in red you may change/adapt to your needs.


Good luck!

HellRZR
04-18-2012, 10:14 PM
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 (http://www.bgaudioclub.org/showthread.php?14735-%D0%91%D0%B0%D0%B2%D0%B5%D0%BD-%D0%B8%D0%BD%D1%82%D0%B5%D1%80%D0%BD%D0%B5%D1%82-%D0%BF%D1%80%D0%B8-%D0%BF%D0%BE%D0%B2%D0%B5%D1%87%D0%B5-%D0%BE%D1%82-2-%D0%BA%D0%BE%D0%BC%D0%BF%D1%8E%D1%82%D1%8A%D1%80%D 0%B0).

The installation process remains the same, except of the code:


<vb:if condition="$post['isfirstshown'] AND $show['guest']">
<ul>
<li class="postbitlegacy postbitim postcontainer" id="post_{vb:raw post.postid}">
<!-- see bottom of postbit.css for .userinfo .popupmenu styles -->

<div class="posthead">
<span class="postdate old"><span class="date"><a href="register.php" style="color:#FFFFFF; text-decoration:underline;">(No Advertising after the first post? Register now for free!)</a></span></span><span class="nodecontrols">#0</span>
</div>

<div class="postdetails">
<div class="userinfo">
<div class="username_container">

<div class="popupmenu memberaction">
<a class="username online popupctrl" href="register.php" title="Register now and stop seeing ads!"><strong>Google AdSense</strong>&nbsp;</a>
</div>

<img class="inlineimg onlinestatus" src="images/statusicon_custom/user-online.png" alt="Google is online" border="0" title="Google is online">
</div>

<span class="usertitle">Advertising from Google</span>

<a class="postuseravatar" title="Google is online"><img src="images/google.png" alt="Advertising from Google" title="Advertising from Google" /></a>

<hr>
<dl class="userinfo_extra">
<dt>Joined in</dt>
<dd>Dec 2007</dd>
<dt>Address</dt>
<dd>Google.com</dd>
</dl>

</div>
<div class="postbody">
<br />
&nbsp;&nbsp;<!- Your Google Adsense Code with any size -->
<div class="cleardiv"></div>
</div>
</div>
<div class="postfoot">
<div class="textcontrols floatcontainer">
<span class="postcontrols">&nbsp;</span>
</div>
</div>
<hr />
</li>
</ul>
</vb:if>


The code in red you may change/adapt to your needs.


Good luck!

Very Nice!!! Thanks

J.kay
12-22-2012, 04:51 PM
and if i chose to esclude for certain forum id?

AND !in_array($foruminfo['forumid'], array(714,12,14,18))

this not working