There is an updated version of this plugin here.
The AdSense revenue sharing widget for WordPress-MU will allow you, the owner of a WPMU site, to share Adsense revenue with your users. You can set the percentage of your share (default is 20%) and enter your AdSense publisher code via the ‘Site Admin‘ backend panel (no files to edit).
Download: adsense-share-mu.zip
Current version: 1.1 (see change log below)
Installation: extract the adsense-share-mu.php file and upload it to the mu-plugins directory.
How to use? Goto ‘Site Admin‘ -> ‘Adsense share‘ and set your Adsense share and your Adsense publisher code – that is it!
All your users will have to do is drag the ‘Google Adsense‘ widget to the sidebar, click the configuration icon and enter their google_ad_client ID.
Todo for version 1.2:
add a function that could be called from the themes to place ads on pages.add an option for the user to enter his Adsense code when not using a widget.
Change log:
Ver 1.1
- If the user did not enter his Adsense code the site admin’s code will be used.
- A small “Sign up for Adsense” link is placed on the widget in the backend. Site admin’s code is used.
Did you find this post interesting? Please subscribe to my feed.
Comments 24
Is there any way this can be called outside the widget area (sidebar)?
Posted 28 Jul 2007 at 8:20 pm ¶adm, where would you like to place it?
Posted 28 Jul 2007 at 8:24 pm ¶I would like to place more than one… ie.) at top of page and one other. Yes, I understand Google only allows you 3 places for adsense.
I just want to make it automatic for members. So they login and simply enter in an adsense ID and their done.
Thanks for your help.
Posted 29 Jul 2007 at 3:48 am ¶+ 1
Posted 29 Jul 2007 at 4:11 pm ¶Elad, I hope this helps http://rapidshare.com/files/45763489/adsense.rar.html
But I do not use Widgets, that is the problem.
Posted 30 Jul 2007 at 12:21 am ¶Actually, this is absolutly great! Though I can see the point of the people above… That plugin does exactly what I’d like it to do, except for the location. I mean, the sidebar isn’t the best place to put ads in every single theme out there, now isn’t it?
The only things that miss on this feature would be some line of code to insert ads anywhere on templates, and the option for the user to insert their adsens code (let’s say in their profile) so we can still share revenues!
Posted 31 Jul 2007 at 9:11 pm ¶I think that would be cool too, ads anywhere on the page. Looks like a cool mod, Thanks Guys.
Posted 01 Aug 2007 at 12:24 pm ¶Could someone explain how this works? I am a little confused as to how my blog writers can “drag the google adsense widget to the sidebar”. Where is the widget? What are they dragging it into?
Thanks in advance for your replies!
Posted 07 Aug 2007 at 11:52 pm ¶Once you place the plugin in the mu-plugins directory users can use the widget like any other widget. They have to use the Presentation -> widgets menu.
Posted 08 Aug 2007 at 4:42 am ¶Is there some way to just directly call the widget? I mean, it’s just a function, so what code would you use to hard code it?
Posted 09 Aug 2007 at 8:08 am ¶We failed to run revenue sharing blog because we didn’t find a proper adsense sharing mod. We got it for SMF. We have started Revenue sharing forum at http://forum.bloglipi.com
Author, do you have any plan of writing a mod which will help us to display 3 ad unit, 3 link unit and 3 referrals in every blog participated in revenue sharing.
One widget is not enough for a revenue sharing program. there are few mods available for WP we just need to make them compatible with wpmu!!
Posted 29 Aug 2007 at 11:21 am ¶Elad, unless I made a mistake, the download link is pointing to the old version.
Posted 01 Oct 2007 at 8:47 pm ¶Mark, just checked and it seems to be fine. The file is labeled version 1.1 dated 1-Oct-2007.
Any chance it is cached on your side?
Posted 01 Oct 2007 at 9:02 pm ¶No, I probabaly misunderstood your post at the forum. My impression was that you have found a way to add a referral button to the WPMU admin panel, something that I have failed to do, and after thinking about it I decided that it is probably against the adsense TOS to place ads at pages to which access is restricted, so I was curious to find out how you have done it and could not find it at the code, therefor I assumed its outdated.
Posted 02 Oct 2007 at 11:47 am ¶Mark,
Posted 02 Oct 2007 at 12:18 pm ¶I did not place ads on the admin panel. I just have an Adsense sign up referral link on the widget.
When you’ll be done with teh todo list, this will be the best mu-plugin ever !
(And that’s not only my opinion, my users may enjoy it as well !)
PS : For the function that display ads in the template, don’t forget to give the admin the possibility to hardcore ads format and color, in order that user just need to fill in his account id to make money… Maybe this could be done with the actual version, but I don’t know how to call the function (and its parameters) outside the widget.
Maybe you should use a function like this (or at least give the possibility) : wich seems very easy to hardcore as there is no possibility to modify it outside the .php page…
Posted 03 Oct 2007 at 5:27 am ¶indeepdark, sure I will try to give control on all ad parameters.
btw, the option for the user to enter his Adsense publisher code via the option menu is done
Posted 03 Oct 2007 at 9:14 pm ¶Note to author:
Don’t use ‘<?’ (that is <? in html) use ‘<?php’ (that is <?php in html) to start the PHP code section, this is causing the plugin not to work at all.
Posted 09 Jan 2008 at 12:49 am ¶I want to setup a wordpress mu site and would like to have the users’ blogs automatically have the widget activated? Is that possible?
Posted 05 Jun 2008 at 5:24 pm ¶Gret – the widget is available for new blogs.
Posted 07 Jun 2008 at 9:00 pm ¶So what about the option to place the add anywhere?
Posted 23 Jun 2008 at 8:57 pm ¶Hi!
i installed your plugin but i´m having a problem… i copyed the file to mu-plugin folder and set the adsense share… when a author try to add the widget it start loading:
http://my website]/[author blog]/wp-admin/widgets.php
and don´t stop loading anymore?
any help?
thanks,
morgan
Posted 04 Sep 2008 at 3:55 pm ¶Fatal error: Call to undefined function get_site_option() in /home/../public_html/wp-content/plugins/adsense-share-mu.php on line 92
$default_your_adsense_share = get_site_option(‘your_adsense_share’);
Posted 31 Dec 2008 at 7:55 pm ¶hi, hw can i put the adsense widget as a defualt for my wordpress mu.
Posted 29 Jun 2009 at 5:20 pm ¶Post a Comment