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 google adsense Revenue Share | 100% revenue share with members Details »»
earnmoneyworld.com google adsense Revenue Share | 100% revenue share with members
Version: 1.00, by DxSEO DxSEO is offline
Developer Last Online: Feb 2017 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.x.x Rating:
Released: 09-17-2010 Last Update: Never Installs: 11
Template Edits
Is in Beta Stage  
No support by the author.

I am using 100% revenue share with members. I am using only one adsense add placement in my forum(only in thread) and i am sharing that with my members.

Author Site : earn money

Here we go

First you need to create a extra field in user profile via admin pannel. (only no)

Code:
admincp > User Profile Fields > Add New User Profile Field 

Select Single-Line Text Box

Title - Google Adsense
Description - Put Your Adsense Code here Only Numbers.
Max length of allowed user input - 16
Field Length - 25
Field Required - No
Field Editable by User - yes
Private Field - no
Field Searchable on Members List 	- no	
Show on Members List - no
Regular Expression -  ^[0-9]{16}$

Display Page - edit Profile

In the template postbit templates > postbit find:

Code:
<vb:if condition="$show['attachments']">
Just Above Post this code

Code:
<vb:if condition="$post[postcount] == 1">
<vb:if condition="$post['fieldName']">
<script type="text/javascript"><!--
google_ad_client = "pub-{vb:raw post.fieldName}";
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><br />
<vb:else />

<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><br />
</vb:if></vb:if>
change fieldName with your User Profile Field name (adsense)

Ta Da............. Now your forum is adsense revenue share forum.

Note : Don;t use default header and footer adsense code with this hack. Google adsense terms not allowed to use different adsense code in same page. So plz careful.

you can use same code for your header and footer add or any other add. If you wana installation i can do that for you (not free).

Let's discuss more possibilities of this modification.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 09-19-2010, 03:45 PM
Bouncer222 Bouncer222 is offline
 
Join Date: Oct 2009
Posts: 705
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't get it, what is this for?? Can you elaborate more please.
Reply With Quote
  #3  
Old 09-19-2010, 11:18 PM
VonDoom's Avatar
VonDoom VonDoom is offline
 
Join Date: Dec 2008
Location: USA
Posts: 494
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This allows thread starters on your forum to collect adsense revenue from their own posts.. In theory prompting your members to post more often.

Tagged!!
Reply With Quote
  #4  
Old 09-20-2010, 02:59 AM
Jabong82 Jabong82 is offline
 
Join Date: Feb 2010
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This looks like a cool mod, thanks for sharing. One question though, could a mod like this work for other affiliate type codes besides adsense? Thanks in advance.
Reply With Quote
  #5  
Old 09-20-2010, 07:15 AM
DxSEO's Avatar
DxSEO DxSEO is offline
 
Join Date: Nov 2009
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jabong82 View Post
This looks like a cool mod, thanks for sharing. One question though, could a mod like this work for other affiliate type codes besides adsense? Thanks in advance.
yes you can use this for any affiliate.

you can use this code for clickbank

Code:
<vb:if condition="$post['fieldName']">
http://{vb:raw post.fieldName}.XXXXXX.hop.clickbank.net<br />
<vb:else />
http://yourclickbankuserid.XXXXXX.hop.clickbank.net
<br />
</vb:if>
for Amazon

Code:
<vb:if condition="$post['fieldName']">
<iframe src="http://rcm.amazon.com/e/cm?t={vb:raw post.fieldName}&o=1&p=8&l=as1&asins=B001NLKT60&fc1=000000&IS2=1&lt1=_blank&m=amazon&lc1=0000FF&bc1=000000&bg1=FFFFFF&f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
<br />
<vb:else />
<iframe src="http://rcm.amazon.com/e/cm?t=youramazonid&o=1&p=8&l=as1&asins=B001NLKT60&fc1=000000&IS2=1&lt1=_blank&m=amazon&lc1=0000FF&bc1=000000&bg1=FFFFFF&f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
<br />
</vb:if>


Sky is open.
Reply With Quote
  #6  
Old 09-20-2010, 02:46 PM
VonDoom's Avatar
VonDoom VonDoom is offline
 
Join Date: Dec 2008
Location: USA
Posts: 494
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have installed this on a stock test forum and for whatever reason i am having a couple problems.. One all its showing is Public Service Ads. and also this is showing up on the first post of every thread no matter who the thread starter is.. I could be wrong but i dont think this is the intended behavior?
Reply With Quote
  #7  
Old 09-20-2010, 06:49 PM
Jabong82 Jabong82 is offline
 
Join Date: Feb 2010
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello thank you very much for your response. I have a question though. Would there be anyway to say limit the posting of ads to say maybe only the moderator of the forum could post ads?

I say this because in the case of Google Adsense, there is a limit of how many (3 I think) banner ads that one can show per page. So what if for example 5 different users have 5 different Adsense accounts and post all on 1 topic? Thus that would violate the terms of service?

Is there any way to restrict this so that maybe only the moderator or select usergroups can place ads? Thank you.
Reply With Quote
  #8  
Old 09-20-2010, 07:20 PM
VonDoom's Avatar
VonDoom VonDoom is offline
 
Join Date: Dec 2008
Location: USA
Posts: 494
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This will only show one time as the first post meaning only the thread starter will get payed as it will be there adsense pub # showing..
Reply With Quote
  #9  
Old 09-20-2010, 07:54 PM
Jabong82 Jabong82 is offline
 
Join Date: Feb 2010
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh ok gotcha. Sounds great then.
Reply With Quote
  #10  
Old 09-21-2010, 02:40 AM
DxSEO's Avatar
DxSEO DxSEO is offline
 
Join Date: Nov 2009
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by VonDoom View Post
i have installed this on a stock test forum and for whatever reason i am having a couple problems.. One all its showing is Public Service Ads. and also this is showing up on the first post of every thread no matter who the thread starter is.. I could be wrong but i dont think this is the intended behavior?
what theme are you using ???

this is working fine on vbulletin default theme as well as my cielo theme.

double check the code
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 03:14 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.04703 seconds
  • Memory Usage 2,323KB
  • Queries Executed 24 (?)
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
  • (5)bbcode_code
  • (2)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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete