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
  #12  
Old 09-11-2010, 03:14 PM
proxx proxx is offline
 
Join Date: Oct 2003
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what to search for in postbit_legacy ?
Reply With Quote
  #13  
Old 09-11-2010, 04:21 PM
iask iask is offline
 
Join Date: Jan 2010
Location: Home
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Supported ???????
Reply With Quote
  #14  
Old 09-11-2010, 04:56 PM
bandare bandare is offline
 
Join Date: Nov 2004
Location: Derby, UK
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #15  
Old 09-12-2010, 03:07 AM
indyonline indyonline is offline
 
Join Date: Aug 2010
Location: Indianapolis
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ya, I can't find the that code to paste after either.
Reply With Quote
  #16  
Old 09-14-2010, 05:53 AM
DxSEO's Avatar
DxSEO DxSEO is offline
 
Join Date: Nov 2009
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by darsalles View Post
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 View Post
I've done several test and so far has gone nowhere, I'm experiencing difficulties with this tutorial.
Quote:
Originally Posted by proxx View Post
what to search for in postbit_legacy ?
Quote:
Originally Posted by iask View Post
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 View Post
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>
Reply With Quote
  #17  
Old 09-14-2010, 09:33 AM
bandare bandare is offline
 
Join Date: Nov 2004
Location: Derby, UK
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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....
Reply With Quote
  #18  
Old 09-14-2010, 10:10 AM
CBNeter CBNeter is offline
 
Join Date: Sep 2010
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #19  
Old 09-14-2010, 10:31 AM
bandare bandare is offline
 
Join Date: Nov 2004
Location: Derby, UK
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got it working on my forum but it doesn't just do the first post, it has added it to every post.
Reply With Quote
  #20  
Old 09-14-2010, 10:40 AM
CBNeter CBNeter is offline
 
Join Date: Sep 2010
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #21  
Old 09-14-2010, 11:26 AM
bandare bandare is offline
 
Join Date: Nov 2004
Location: Derby, UK
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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....
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 04:33 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
  • Page Generation 0.05010 seconds
  • Memory Usage 2,350KB
  • Queries Executed 28 (?)
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
  • (11)bbcode_code
  • (7)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_postinfo_query
  • fetch_postinfo
  • 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