Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Adsense Revenue Sharing for 3.5.x and 3.6.x Details »»
Adsense Revenue Sharing for 3.5.x and 3.6.x
Version: 1.00, by kenji4861 kenji4861 is offline
Developer Last Online: Jul 2016 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.6.4 Rating:
Released: 12-29-2006 Last Update: Never Installs: 197
 
No support by the author.

Overview
This hack will allow you to offer Google Adsense revenue sharing to your vBulletin board users. Basic idea generated by AlexanderT, who developed the hack for previous version.

* Revenue is split between board administrator and thread starters.

* User needs to enter their Adsense Publisher ID and Channel ID (optional) in the edit profile.

* The percentage of probability is customizable by the administrator

* Number of min. post in order to show the ads is customizable by administrator.

* Works on 3.5.x and 3.6.x



Demo
http://www.spoofee.com/forums/



Background
Thanks to webmastershome for creating this and rob30uk for making it easier by creating a plugin and I suppose myself for small tweak


Instructions ( literally takes 5 minutes to install )

1. Download zip file and extract ( 3 files : adsense_admin.php, adsense_revenue_sharing.xml, cpnav_adsensesharing.xml )


2. Add Adsense Client ID and Channel ID to your user profile fields
1. Add the following following new user profile field in AdminCP:
Type: Single-Line Text Box
Title: Google AdSense Client ID
Description: If you have an AdSense account, you can enter your client ID here. You then have a 50% chance that the AdSense ads displayed are credited to your account on threads you participate in. It should be in the form of <b>pub-xxxxxxxxxxxxxxxx</b>
Max length of allowed user input: 20
Display Size: 25
Field Required: No
Field Editable by User: Yes
Private Field: No
Field Searchable on Members List: No
Show on Members List: No

2. Add the following following new user profile field in AdminCP:
Type: Single-Line Text Box
Title: Google AdSense Channel ID
Description: If you choose to enter your AdSense client ID, you can specify a channel ID as well.<br /><br />It would be a good idea to have a unique channel ID for this forum (then you can track stats specifically for the forum).<br />
Max length of allowed user input: 10
Display Size: 25
Field Required: No
Field Editable by User: Yes
Private Field: No
Field Searchable on Members List: No
Show on Members List: No


3. Go back to userfield manager and get the field# of the two new fields you created. (ex : field5, field6)


4. Open adsense_revenue_sharing.xml and change the field5 to whatever your adsense field# is and field6 to whatever your channel field# is


5. Add Adsense snippet in your style
- Go to Admincp->Styles & Templates->Style Manager->Edit Templates->Post Bit (if you are using legacy style, choose to edit "Post Bit Legacy"

Add the following to the bottom of your postbit.
Code:
<if condition="$post[postcount] == 1">
<if condition="THIS_SCRIPT == 'showthread' AND ($post[postid] == $GLOBALS['qrfirstpostid'])">
<if condition="$show['spacer']">$spacer_open<div style="padding:0px 0px $stylevar[cellpadding]px 0px"></if>

<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" bordercolor=white width="100%" align="center">
<tr><td class="alt1" style="padding:0px">
<div class="smallfont" align="center">
                <script type="text/javascript"><!--
                google_ad_client = "$post[ad_client_id]";
                google_ad_width = 728;
                google_ad_height = 90;
                google_ad_format = "728x90_as";
                google_ad_channel ="$post[ad_channel]";
                google_color_border = "FFFFFF";
                google_color_bg = "FFFFFF";
                google_color_link = "000000";
                google_color_url = "666666";
                google_color_text = "333333";
                //--></script>
                <script type="text/javascript"
               src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                </script>
</div></td></tr></table>

<if condition="$show['spacer']"></div>$spacer_close</if>
</if>
</if>

6. Import adsense_revenue_sharing.xml plugin


7. Upload cpnav_adsensesharing.xml to forums/includes/xml/


8. Upload adsense_admin.php to forums/admincp/


9. Configure
- Go to admincp, now you will see "Adsense Share Settings" where you can configure how much revenue you want to share!

10. Click here to mark it as INSTALLED!

Show Your Support

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

Comments
  #182  
Old 05-16-2008, 04:39 PM
toucan42 toucan42 is offline
 
Join Date: Sep 2006
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I never got this working on 3.6.8 now I am on 3.7 Gold and hoping this or another mod doing the same becomes available. Can anyone verify this works for 3.7?
Reply With Quote
  #183  
Old 06-09-2008, 11:47 AM
turbosatan turbosatan is offline
 
Join Date: Jul 2007
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how do i remove the adsense share settings option in admincp

i have removed the product and deleted the uploaded files but it still shows the optin in the admincp menu~(obviously the page doesnt load as i have removed it)

Can anyone please advise me how to remove this option now as i want to tidy everything up
Reply With Quote
  #184  
Old 06-09-2008, 02:20 PM
karim004's Avatar
karim004 karim004 is offline
 
Join Date: Aug 2007
Location: Connecticut
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by turbosatan View Post
how do i remove the adsense share settings option in admincp

i have removed the product and deleted the uploaded files but it still shows the optin in the admincp menu~(obviously the page doesnt load as i have removed it)

Can anyone please advise me how to remove this option now as i want to tidy everything up
ok i just download the zip to check the files i can see you didnt delete 2 files :

admincp/adsense_admin.php
this file build the menu
include/xml/cpnav_adsensesharing.xml
this one include the menu in your admincp
Reply With Quote
  #185  
Old 06-09-2008, 04:20 PM
turbosatan turbosatan is offline
 
Join Date: Jul 2007
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by karim004 View Post
ok i just download the zip to check the files i can see you didnt delete 2 files
Quote:
admincp/adsense_admin.php
this file build the menu
include/cpnav_adsensesharing.xml
this one include the menu in your admincp
i had deleted the first already but the removing the second xml file did get rid of the menu item.

Just as a side note the correct path to it is admincp/includes/xml/cpnav_adsensesharing.xml in case anyone else needs to remove ti

thanks fro your help karim004
Reply With Quote
  #186  
Old 06-10-2008, 12:37 AM
karim004's Avatar
karim004 karim004 is offline
 
Join Date: Aug 2007
Location: Connecticut
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by turbosatan View Post
i had deleted the first already but the removing the second xml file did get rid of the menu item.

Just as a side note the correct path to it is admincp/includes/xml/cpnav_adsensesharing.xml in case anyone else needs to remove ti

thanks fro your help karim004
you welcome
Reply With Quote
  #187  
Old 06-18-2008, 04:35 PM
darklumina darklumina is offline
 
Join Date: May 2005
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this even legal? this seems a bit like incentivization which is against the adsense TOS.
Reply With Quote
  #188  
Old 06-24-2008, 03:23 PM
massizero massizero is offline
 
Join Date: Apr 2008
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i've seen a few forums based on vbulletin's > 3.7.0 version, that are running an adsense revenue share program like this hack.
I was wondering if there is anyone who can tell us if he is using this hack on a 3.7.x and if there are any problems.
thanks
Reply With Quote
  #189  
Old 07-05-2008, 10:58 PM
blogcrash blogcrash is offline
 
Join Date: Jun 2008
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by massizero View Post
i've seen a few forums based on vbulletin's > 3.7.0 version, that are running an adsense revenue share program like this hack.
I was wondering if there is anyone who can tell us if he is using this hack on a 3.7.x and if there are any problems.
thanks
I have exactly the same question.
Anyone can tell the community if this hack works in vb 3.7.2 please???
Reply With Quote
  #190  
Old 07-08-2008, 12:28 AM
blogcrash blogcrash is offline
 
Join Date: Jun 2008
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think this Mod doens't work with vb 3.7.2

Bad luck!!!

I really need something like this
Reply With Quote
  #191  
Old 07-19-2008, 01:57 AM
massizero massizero is offline
 
Join Date: Apr 2008
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any news for 3.7.2?
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 AM.


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.04917 seconds
  • Memory Usage 2,322KB
  • Queries Executed 25 (?)
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
  • (1)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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_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