vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Show Thread Enhancements - Earnmoneyworld.com Adsense Optimization | Get More Clicks With Google AdSense (https://vborg.vbsupport.ru/showthread.php?t=250031)

DxSEO 09-05-2010 10:00 PM

Earnmoneyworld.com Adsense Optimization | Get More Clicks With Google AdSense
 
1 Attachment(s)
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


Installation instructions:


In Default Templates

In the template postbit templates > postbit find:

Code:

<vb:if condition="$show['attachments']">
Just Above Post google add

Code:

<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:

Code:

</div><vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')">
  <div class="body">
  <div style="width: 100%">

Add Below

Code:

<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)

Code:

<vb:if condition="$show['guest']">Show this to guest only</vb:if>
Enjoy more Earnings with adsense

iask 09-06-2010 01:54 PM

PHP Code:

</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 ?

Veer 09-07-2010 07:30 AM

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

Quote:

Originally Posted by iask (Post 2094576)

Postbit ?????

postbit templates > Postbit

Quote:

Originally Posted by YankForum (Post 2094618)
could u share your CTR of this ad unit ?

My CTR is very high with this ad unit.

Quote:

Originally Posted by Veer (Post 2094918)
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/...a38939a2&hl=fr

;)

DxSEO 09-07-2010 01:10 PM

thaivisa forum using the same

http://www.thaivisa.com/forum/topic/...5#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/...68908d30&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

PHP Code:

</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 ?

iask 09-11-2010 04:21 PM

Supported ???????

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

Quote:

Originally Posted by darsalles (Post 2096540)
Im editing the postbit legacy, but the code you post to find on postbit i cant found it or anyone similar.

Quote:

Originally Posted by digobguerreiro (Post 2096690)
I've done several test and so far has gone nowhere, I'm experiencing difficulties with this tutorial.

Quote:

Originally Posted by proxx (Post 2096752)
what to search for in postbit_legacy ?

Quote:

Originally Posted by iask (Post 2096782)
Supported ???????

default templates have different code

find in postbit

Code:

<vb:if condition="$show['attachments']">
Just Above Post google add

Code:

<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>

Quote:

Originally Posted by bandare (Post 2096804)
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

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 -
Code:

<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 :
Quote:

<blockquote class="postcontent restore ">
{vb:raw post.message}
</blockquote>
</div>
add this code :
Quote:

<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

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:

Code:

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:
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

Code:

<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

Quote:

Originally Posted by bandare (Post 2098536)
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

Quote:

Originally Posted by bandare (Post 2098567)
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:

Code:

<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

Quote:

Originally Posted by keyness (Post 2120555)
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:

Code:

<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

Code:

<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
Code:

                        <div id="post_message_{vb:raw post.postid}">
                                <blockquote class="postcontent restore">
                                        {vb:raw post.message}
                                </blockquote>
                        </div>

i insert my adsense code
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.

Code:

<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


All times are GMT. The time now is 05:57 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01347 seconds
  • Memory Usage 1,829KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (18)bbcode_code_printable
  • (2)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (31)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete