![]() |
Adsense Revenue Sharing for 3.5.x and 3.6.x
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 :p 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"> 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! |
First post reserved for some reason.. everyone does it.. I suppose I should too :p
|
Lol the reserve post is for you to include what updates you have made and/or bugs known
|
nice.
|
Awesome!
Thanks for sharing :) *installed* |
if this work... i'll sure use it.
Could anyone tells me how do i import "cpnav_adsensesharing.xml"? Thanks |
Is this only for the postbit? Thanks
|
Quote:
|
Quote:
|
very nice
looks nicer then the other hack that was just released thanks, if I use this I'll give a link back to this post and will more then likely get several more admins to use it :) thanks |
[high]* projectego clicks install! ;)[/high]
|
Quote:
a screenshoot would be appreciated. |
Quote:
|
is this working fine for everyone ? I want to wait just a min b4 adding..
if this works well, I'd love to give you a strong backlink to your site :) |
confirmation:
This is NOT working with v3.6.4. |
Quote:
|
thanks ,will give it a try
|
NOT working In 3.6.4
Once installed, if a user tries to update their profile settings it REQUIRES them to enter a pub ID and channel no matter what you set the settings to in user profile fields section in AdminCP. I set it at first to Not required but show on registration then I said it to just plain NO for not required and it still says I enetered an invalid pub-id every time I update my profile. |
Quote:
Is everything else working for you like the menu in admincp? |
That fixed it, thanks.
|
may sound like a stupid question but can some explain what this actually does in simple terms lol
|
when i tried to update in admincp... the page went "page can't be found"
|
when i try to update it says there is no admin_adsense.php found????
there was no file called that in the zip only adsense_admin.php |
Quote:
am also getting the above message when i attempt to save settings in admincp. otherwise adsense is diplayed well under the first post. could be a really useful hack if you could get this to work on 3.6.2 any suggestions very welcome |
how do import a plugin, under which product I mean, vbulletin ?
|
I'm using 3.6.2 and got the same page can not be found after hitting update in admin cp > adsense share settings.
Does this work on 3.6.2 ? |
This seems to be working for me with 3.6.4. Well it's displaying ads. I don't know if it's sharing the ad revenue yet or not. (I need members first)
I got page not found when I saved the settings and had to rename the adsense_admin.php file to admin_adsense.php and it worked. |
|
ISSUE FIXED
Aww got it guys. I'm sorry about the mistake I fixed the issue in adsense_admin.php. Please upload the new file. To fix the 404 "Page Not Found" 1. Download https://vborg.vbsupport.ru/attachmen...chmentid=58862 2. Unzip 3. 8. Upload adsense_admin.php to forums/admincp/ |
I'd like the phrase "Sponsored Link" to contain the members username IF that member has placed their Client ID in their profile.
ie... If a member creates a thread and if they have not placed an Adsense Client ID in their profile, I want the phrase "Sponosored Link" to appear... BUT, if a member creates a thread and if they have placed an Adsense Client ID in their profile I want the phrase "Links Sponosored by UserName" to appear... How can I do this? I tried adding a condition to just look for the existence of a $post[ad_client_id] but that doesn't work because it always contains at least the default value... Thanks for your help! |
just installed and working fine...
may i know how to add adsense on many different places like on top or in bottom? do i need to use the same code or just the adsense code? |
Thx m8, just downloaded and will try installing now to let you know how it goes.
Update: Just FYI for everyone, I have it working on Vbulletin 3.6.4 at http://www.oksportsfan.com . Thanks for the great mod! |
Can this be usergroup controlled -- so I can only allow a particular usergroup(s) to participate?
|
|
How can I get this to work within my header and footer ad also? Is it even possible?
|
I got this working on 3.6.4. Same here, ads are showing, but I do not know if it will share or not.
|
I have installed this, I think I've installed it as described. Now how do AdSense adds get to be displayed on the forums...
Thanks, |
Hi,
Can someone offer me some assistance i am trying to get this to work on my header alongside my logo but i cannot get it right i have tried editing code as much as i can. If you know how to achieve what i need please od post or pm me. |
I want it to be placed on the header or home page.
|
I want it like www.webmaster-talk.com in the top right hand of the header.
|
All times are GMT. The time now is 05:38 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|