Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Earnmoneyworld.com Adsense Optimization | Get More Clicks With Google AdSense Details »»
Earnmoneyworld.com Adsense Optimization | Get More Clicks With Google AdSense
Version: 2.00, by DxSEO DxSEO is offline
Developer Last Online: Feb 2017 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.0.6 Rating:
Released: 09-05-2010 Last Update: 09-05-2010 Installs: 22
Template Edits
Re-useable Code  
No support by the author.

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

Download Now

File Type: txt kattz.com.txt (1.1 KB, 74 views)

Screenshots

File Type: jpg kattz.jpg (52.8 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
SaN-DeeP

Comments
  #22  
Old 09-15-2010, 06:36 AM
DxSEO's Avatar
DxSEO DxSEO is offline
 
Join Date: Nov 2009
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ah sorry i forget to add postcount command

Code:
<vb:if condition="$post[postcount] == 1">
adsense code
</vb:if>
Reply With Quote
  #23  
Old 09-15-2010, 10:15 AM
bandare bandare is offline
 
Join Date: Nov 2004
Location: Derby, UK
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

that didn't work for me. I still got the advert on every post.
Reply With Quote
  #24  
Old 09-15-2010, 11:25 AM
DxSEO's Avatar
DxSEO DxSEO is offline
 
Join Date: Nov 2009
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bandare View Post
that didn't work for me. I still got the advert on every post.
working fine for me

post your code here
Reply With Quote
  #25  
Old 09-15-2010, 11:45 AM
bandare bandare is offline
 
Join Date: Nov 2004
Location: Derby, UK
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh good god... I'm a muppet... I see where I went wrong... sorry Mr Hiuuf....
Reply With Quote
  #26  
Old 09-19-2010, 08:43 AM
DxSEO's Avatar
DxSEO DxSEO is offline
 
Join Date: Nov 2009
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bandare View Post
oh good god... I'm a muppet... I see where I went wrong... sorry Mr Hiuuf....
no problem enjoy the more clicks
Reply With Quote
  #27  
Old 11-11-2010, 02:16 PM
keyness keyness is offline
 
Join Date: Oct 2006
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #28  
Old 12-01-2010, 08:57 AM
DxSEO's Avatar
DxSEO DxSEO is offline
 
Join Date: Nov 2009
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by keyness View Post
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>
Reply With Quote
  #29  
Old 03-25-2011, 02:51 PM
mayank8789's Avatar
mayank8789 mayank8789 is offline
 
Join Date: Jul 2010
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

dear member what do work in versions 4.0.3
Reply With Quote
  #30  
Old 05-10-2011, 07:27 PM
cloferba cloferba is offline
 
Join Date: Apr 2009
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #31  
Old 05-14-2011, 10:57 PM
TundraSoul TundraSoul is offline
 
Join Date: Mar 2002
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:44 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09383 seconds
  • Memory Usage 2,350KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (12)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete