View Full Version : Show Thread Enhancements - Earnmoneyworld.com Adsense Optimization | Get More Clicks With Google AdSense
DxSEO
09-05-2010, 10:00 PM
This is only adsense placement i am using in my forum and this is working great
i am getting more clicks and more revenue with this simple optimization.
Demo Earn Money world (http://www.earnmoneyworld.com)
Installation instructions:
In Default Templates
In the template postbit templates > postbit find:
<vb:if condition="$show['attachments']">
Just Above Post google add
<vb:if condition="$post[postcount] == 1">
<script type="text/javascript"><!--
google_ad_client = "pub-";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_ad_channel = "forum";
google_color_border = "E1E1E1";
google_color_bg = "E1E1E1";
google_color_link = "FFFFFF";
google_color_text = "FFFFFF";
google_color_url = "FFFFFF";
google_ui_features = "rc:0";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</vb:if>
Code is different in My Template
In the template postbit templates > postbit find:
</div><vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')">
<div class="body">
<div style="width: 100%">
Add Below
<script type="text/javascript"><!--
google_ad_client = "pub-";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_ad_channel = "forum";
google_color_border = "E1E1E1";
google_color_bg = "E1E1E1";
google_color_link = "FFFFFF";
google_color_text = "FFFFFF";
google_color_url = "FFFFFF";
google_ui_features = "rc:0";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
match the color with ur forum theme
you can also use this condition before google adsense code (adsense only for guest)
<vb:if condition="$show['guest']">Show this to guest only</vb:if>
Enjoy more Earnings with adsense
</div><vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')">
<div class="body">
<div style="width: 100%">
Postbit ?????
YankForum
09-06-2010, 03:39 PM
could u share your CTR of this ad unit ?
Are you sure its not against Google Adsense terms and conditions?
And I don't see these ad codes anywhere in my Adsense account.
DxSEO
09-07-2010, 08:03 AM
Postbit ?????
postbit templates > Postbit
could u share your CTR of this ad unit ?
My CTR is very high with this ad unit.
Are you sure its not against Google Adsense terms and conditions?
And I don't see these ad codes anywhere in my Adsense account.
Yes this is not against terms and condition.
That is simple 728x90 add. Since CTR is high then google is serving premium design :p
snakedevil
09-07-2010, 11:46 AM
Not allowed by adsense!
http://www.google.com/support/forum/p/adsense/thread?tid=24236ccea38939a2&hl=fr
;)
DxSEO
09-07-2010, 01:10 PM
thaivisa forum using the same
http://www.thaivisa.com/forum/topic/396116-despite-thai-buddhist-holiday-ban-alcohol-sales-continue-fueling-road-deaths/page__pid__3865345#entry3865345
and also digital point forum using the same (with random strings)
check here deep integration have also same ad placement
https://vborg.vbsupport.ru/showthread.php?t=107965
at last a support forum thread
http://www.google.com/support/forum/p/AdSense/thread?fid=40c060530c24857800048fd668908d30&hl=en
plz feel free to discuss about this ad placement
digobguerreiro
09-10-2010, 11:29 PM
My Postbit no have the code :S
</div><vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')">
<div class="body">
<div style="width: 100%">
darsalles
09-11-2010, 03:42 AM
Im editing the postbit legacy, but the code you post to find on postbit i cant found it or anyone similar.
digobguerreiro
09-11-2010, 01:51 PM
I've done several test and so far has gone nowhere, I'm experiencing difficulties with this tutorial.
proxx
09-11-2010, 03:14 PM
what to search for in postbit_legacy ?
bandare
09-11-2010, 04:56 PM
I just wondered, what are you using on your site to only allow an unregistered user a certain number of views before it makes you register?
indyonline
09-12-2010, 03:07 AM
Ya, I can't find the that code to paste after either.
DxSEO
09-14-2010, 05:53 AM
Im editing the postbit legacy, but the code you post to find on postbit i cant found it or anyone similar.
I've done several test and so far has gone nowhere, I'm experiencing difficulties with this tutorial.
what to search for in postbit_legacy ?
Supported ???????
default templates have different code
find in postbit
<vb:if condition="$show['attachments']">
Just Above Post google add
<vb:if condition="$post[postcount] == 1">
<script type="text/javascript"><!--
google_ad_client = "pub-";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_ad_channel = "forum";
google_color_border = "E1E1E1";
google_color_bg = "E1E1E1";
google_color_link = "FFFFFF";
google_color_text = "FFFFFF";
google_color_url = "FFFFFF";
google_ui_features = "rc:0";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</vb:if>
I just wondered, what are you using on your site to only allow an unregistered user a certain number of views before it makes you register?
you can use this condition before google adsense code
<vb:if condition="$show['guest']">Show this to guest only</vb:if>
bandare
09-14-2010, 09:33 AM
Thanks for that......... Two questions I have:
1 - by posting the code just above the attachments, how will that know to only post on the first post (or am I not understanding the way this works!)???
2 - <vb:if condition="$show['guest']">Show this to guest only</vb:if>
How does this make sure you only get a certain number of posts like on kattz before you can't see posts?
Thanks in advance....
CBNeter
09-14-2010, 10:10 AM
I agree with bandare, whether this can be seen only on the first post? or if you have any ideas so that adsense can be seen in the posting number two not first post?
Thank You
bandare
09-14-2010, 10:31 AM
I got it working on my forum but it doesn't just do the first post, it has added it to every post.
CBNeter
09-14-2010, 10:40 AM
maybe this code you can use, because I use on my forum and can work well.
bellow :
<blockquote class="postcontent restore ">
{vb:raw post.message}
</blockquote>
</div>
add this code :
<vb:if condition="$post[postcount] % $vboptions[maxposts] == 1">
<script type="text/javascript"><!--
google_ad_client = "pub-XXXXXXXXXX";
/* forum */
google_ad_slot = "0149128395";
google_ad_width = 665;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
Demo Forum (http://forum.cbneter.com/announcements/1.htm)
bandare
09-14-2010, 11:26 AM
Thanks, I'll go try that.. I clicked an add to say thanks on your demo site too ;)
Okay, I tried that and got the following error. If I take out your top line the error goes away. The error is:
The following error occurred when attempting to evaluate this template:
Unclosed Tag
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
This is for the line of code: <vb:if condition="$post[postcount] % $vboptions[maxposts] == 1">
Ok, fixed it..... it needed a / at the end so should read:
<vb:if condition="$post[postcount] % $vboptions[maxposts] == 1"/>
However, it still ads an ad on the 2nd, 3rd posts too....
DxSEO
09-15-2010, 06:36 AM
ah sorry i forget to add postcount command
<vb:if condition="$post[postcount] == 1">
adsense code
</vb:if>
bandare
09-15-2010, 10:15 AM
that didn't work for me. I still got the advert on every post.
DxSEO
09-15-2010, 11:25 AM
that didn't work for me. I still got the advert on every post.
working fine for me
post your code here
bandare
09-15-2010, 11:45 AM
oh good god... I'm a muppet... I see where I went wrong... sorry Mr Hiuuf....
DxSEO
09-19-2010, 08:43 AM
oh good god... I'm a muppet... I see where I went wrong... sorry Mr Hiuuf....
no problem enjoy the more clicks :D
keyness
11-11-2010, 02:16 PM
I can't make this mod work :( What's wrong with my code?
I put this code to above of <vb:if condition="$show['attachments']"> in postbit:
<vb:if condition="$post[postcount] == 1">
<vb:if condition="$show['guest']">Show this to guest only</vb:if>
<script type="text/javascript"><!--
google_ad_client = "pub";
/* 728x90, 11.11.2010 */
google_ad_slot = "XXXXXXXXX";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></vb:if>
But nothing is shown. What's wrong?
DxSEO
12-01-2010, 08:57 AM
I can't make this mod work :( What's wrong with my code?
I put this code to above of <vb:if condition="$show['attachments']"> in postbit:
<vb:if condition="$post[postcount] == 1">
<vb:if condition="$show['guest']">Show this to guest only</vb:if>
<script type="text/javascript"><!--
google_ad_client = "pub";
/* 728x90, 11.11.2010 */
google_ad_slot = "XXXXXXXXX";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></vb:if>
But nothing is shown. What's wrong?
try this
<vb:if condition="$post[postcount] == 1">
<vb:if condition="$show['guest']">
<script type="text/javascript"><!--
google_ad_client = "pub";
/* 728x90, 11.11.2010 */
google_ad_slot = "XXXXXXXXX";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></vb:if></vb:if>
mayank8789
03-25-2011, 02:51 PM
dear member what do work in versions 4.0.3
cloferba
05-10-2011, 07:27 PM
cant get this work on 4.1.2
the code is simple, after
<div id="post_message_{vb:raw post.postid}">
<blockquote class="postcontent restore">
{vb:raw post.message}
</blockquote>
</div>
i insert my adsense code
<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxx";
/* 728x90, creado xxxx */
google_ad_slot = "4xxxx";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
but it isnt showed :S
TundraSoul
05-14-2011, 10:57 PM
Here's my code, which works very well.
<vb:if condition="$post[postcount] == 1">
<vb:if condition="is_member_of($bbuserinfo, 1)">
<script type="text/javascript"><!--
google_ad_client = "your pub ID here";
/* 468x60, created 5/14/11 */
google_ad_slot = "my ad channel";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
<p><small>Register Now! Members do not see advertisements.</small></p></vb:if></vb:if>
I even added a little note at the bottom of the ad to encourage users to register. The code works perfectly on 4.13 and I use postbit_legacy.
Enjoy!
Eslob
01-29-2012, 10:27 AM
good method..
thank you
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.