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
  #22  
Old 02-26-2011, 10:49 PM
noahqw noahqw is offline
 
Join Date: Feb 2011
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is the name the name of the field such as field1 field2 field3 etc? Because ti's not displaying...
Reply With Quote
  #23  
Old 02-27-2011, 03:51 AM
BlueCheri's Avatar
BlueCheri BlueCheri is offline
 
Join Date: Jul 2009
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This may be very useful, tagged.
Reply With Quote
  #24  
Old 03-18-2011, 07:06 AM
amaarvell amaarvell is offline
 
Join Date: Nov 2006
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wont install for me .. when i add the code to post bit I get
invalid_tag_nesting
invalid_tag_nesting
Reply With Quote
  #25  
Old 03-20-2011, 09:23 AM
Decisionmusic Decisionmusic is offline
 
Join Date: Jun 2009
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there a way to make it so if the user DOESNT have an adsense, it STILL posts an ad but it goes to MY adsense?
Reply With Quote
  #26  
Old 06-17-2011, 10:23 PM
rjmjr69's Avatar
rjmjr69 rjmjr69 is offline
 
Join Date: Jan 2007
Location: Southie
Posts: 876
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you make this into an installable product and editable from settings?
Reply With Quote
  #27  
Old 07-16-2011, 06:46 AM
rjmjr69's Avatar
rjmjr69 rjmjr69 is offline
 
Join Date: Jan 2007
Location: Southie
Posts: 876
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any support for this mods?
Reply With Quote
  #28  
Old 07-16-2011, 10:01 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rjmjr69 View Post
Any support for this mods?
It says right at the top "Not Supported" - I wouldn't expect a response.
Reply With Quote
  #29  
Old 09-08-2011, 12:42 PM
EgyKit EgyKit is offline
 
Join Date: Apr 2011
Location: Egypt
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can't share adsense revenue like this! you must have options to ban members, determine whether member group are allowed to share adsense with you or not, add option to view ads on different page places, like navbar etc... also check if the users have pub adsense ID or not to view admin default pub ID.....All these could be done as vBulletin settings so that admin can set them via admincp..
Reply With Quote
  #30  
Old 09-29-2011, 08:36 AM
dany_danay dany_danay is offline
 
Join Date: Jul 2009
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It coould be wonderif if we can share 50% of our revenue with the members. It could be calculate with the visits on the topic... anyone can do it?
Reply With Quote
  #31  
Old 01-29-2012, 03:12 PM
Toorak Times's Avatar
Toorak Times Toorak Times is offline
 
Join Date: Jan 2011
Posts: 436
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I really like this mod, does it work with vBexperience? I must ask Phalynx. I am working with writers, musicians and other small businesses and it is exactly what I am looking for. It will encourage them to work their forum for the initial posting/editing, promotional port of call to upload to their Blog (which I call 'Contributors'), then I'll choose where in the Home (me call 'Cover') it will appear.

I had a few 'penny drop' moments last night and put in some rooly cool stuff, between 1am and 6pm, then I did something stoopid, I mean really stupid and luckily(?) my host hero, Megalai, had done a save at ...1am...doh, I have local indie Aussie host who is unreal, won't mention name probs not allowed,.

Bottom line I think 100% to contributors is a brilliant way to encourage active 'blogger', writers, videographers, musicians, local councils I mean our first threads also allow rss and podcasts...

Brilliant, I think, but I am a 'puter nuffy, old school local newspaperman, I have had my WHOLE site upside down, per se, for months, most embarrassment...but...vB allowed me to publish to Facebook and through Add This, every other SN.

Sorry for the rave guys, but new here and absolute coding novice ( although, not surprisingly, cut and paste is something that comes uber naturally, as I did with a sharp scalpel, steel rule, a waxer or rubber glue and a roller for 35 years, hands on.)

Don't mind doing the hard yards, been at this site for over 12 months, and learned everything from scratch, with help from Chandigarh for a bit, but wow what a ride, everyone thinks I'm nuts, should build my site in Joomla, Worpress, Wix...so easy man...too easy, no bones, I feel like I'm a publisher again, engaged, instead of walking away from a static development site like most.

You guys, all the Mod developers inspire me.
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 06:15 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.10422 seconds
  • Memory Usage 2,323KB
  • 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
  • (3)bbcode_code
  • (1)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
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • 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