AdSense revenue sharing widget for WordPress-MU

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).

adsense-share-1.PNG

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 27

  1. adm wrote:

    Is there any way this can be called outside the widget area (sidebar)?

    Posted 28 Jul 2007 at 8:20 pm
  2. Elad wrote:

    adm, where would you like to place it?

    Posted 28 Jul 2007 at 8:24 pm
  3. adm wrote:

    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
  4. Lostcoder wrote:

    + 1
    Elad, I hope this helps http://rapidshare.com/files/45763489/adsense.rar.html

    Posted 29 Jul 2007 at 4:11 pm
  5. Lostcoder wrote:

    But I do not use Widgets, that is the problem.

    Posted 30 Jul 2007 at 12:21 am
  6. Le lapin blanc wrote:

    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
  7. cal wrote:

    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
  8. jamesb wrote:

    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
  9. Elad wrote:

    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
  10. Becky wrote:

    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
  11. bloglipi wrote:

    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
  12. mark k. wrote:

    Elad, unless I made a mistake, the download link is pointing to the old version.

    Posted 01 Oct 2007 at 8:47 pm
  13. Elad wrote:

    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
  14. mark k. wrote:

    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
  15. Elad wrote:

    Mark,
    I did not place ads on the admin panel. I just have an Adsense sign up referral link on the widget.

    Posted 02 Oct 2007 at 12:18 pm
  16. indeepdark wrote:

    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
  17. Elad wrote:

    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
  18. dan wrote:

    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
  19. Gert wrote:

    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
  20. Elad wrote:

    Gret – the widget is available for new blogs.

    Posted 07 Jun 2008 at 9:00 pm
  21. OtakuPahp wrote:

    So what about the option to place the add anywhere?

    Posted 23 Jun 2008 at 8:57 pm
  22. morgan wrote:

    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
  23. Vygantas wrote:

    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
  24. OSITA wrote:

    hi, hw can i put the adsense widget as a defualt for my wordpress mu.

    Posted 29 Jun 2009 at 5:20 pm
  25. Rechnonow wrote:

    Hi,

    these posts are quite old and many visitors will be asking if this plugin stiill works for the current WPMU 2.9.2

    I’ve downloaded the plugin but not installed it yet because it was last changed 3 years ago in 2007 and it’s also not apparently in any list when I search for plugins from my site.

    Is this plugin still current for WPMU 2.9.2 and does it work?

    Posted 13 Mar 2010 at 5:48 pm
  26. Rechnonow wrote:

    OK. Got tired of waiting.

    Plugin does NOT appear to work with WPMU 2.9.2 and BuddyPress.

    Plugin activated OK, was able to take Adsense code, and appears in the list of widgets.

    However, when you try to drag this widget to the sidebar the whole screen goes blank.

    I’ve tried it a few times and it happens every time but only to this particular widget. In between I dragged other widgets to sidebar with no problem, so the problem is definately this plugin.

    Posted 13 Mar 2010 at 6:49 pm
  27. Rechnonow wrote:

    OK I deleted this Plugin because it doesn’t appear to work with the most recent setup.

    I then uploaded the Plugin from http://blog.hoofoo.net/index.php/category/wordpress-mu/ This is the same Plugin with changes to make it work with the latest setup, and it appears to be working fine on my setup of WPMU 2.9.2 and BuddyPress

    Posted 13 Mar 2010 at 7:16 pm

Trackbacks & Pingbacks 1

  1. From List of Adsense Revenue Sharing Sites – Earn Extra Money! | IT Pak | Dot Net | on 11 May 2010 at 11:38 am

    [...] WordPress plugin [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *