FREE THOUGHT · FREE SOFTWARE · FREE WORLD

Home » WordPress » Firefox Adsense WordPress Plugin

Firefox Adsense WordPress Plugin

Firefox Adsense WordPress Plugin WordPress plugin that displays a Firefox Google Referrals AdSense Ad on your blog only if the client is not running Firefox and on Windows.

Firefox Adsense WordPress Plugin

January 17th, 2008

Description | Download | Installation | FAQ | Screenshots

If your WordPress blog uses AdSense, and you love Firefox you will love this plugin. Makes you money and makes the web a better place. When a user downloads and installs Firefox through your referral, we'll credit your account with up to $1.00 (more details).

This Plugin is no longer being developed.

Description

ScreenShot of WordPress Plugin AskApache Firefox AdsenseAskApache Firefox Adsense is a simple plugin that displays a Firefox AdSense Ad (Google Referrals) on your blog.

The cool thing is that it will only show the ad to users that are not using Firefox, and only to users running Windows. Those are the requirements to getting paid by Google, and it doesn't show the Ad to the intelligent people already using Firefox (or running linux/non-windows).

Google:

Firefox plus Google Toolbar: When a user you've referred to Firefox plus Google Toolbar runs Firefox for the first time, you'll receive up to US$1 in your account, depending on the user's location. Your referral must be a Windows user, who has not previously installed Firefox, in order for you to receive credit.


Downloads

Installation

  1. Upload aa-firefox-adsense.zip to the /wp-content/plugins/ directory
  2. Unzip into its own folder /wp-content/plugins/aa-firefox-adsense/aa-firefox-adsense.php
  3. Activate the plugin through the 'Plugins' menu in WordPress by clicking "AskApache Firefox Adsense"
  4. Go to your Options Panel and open the "AskApache Firefox Adsense" submenu. /wp-admin/options-general.php?page=aa-firefox-adsense.php
  5. Enter in your google firefox adsense code and hit the "Update Values" Button.
  6. Add the code on your pages by including <?php if(function_exists('aa_firefox_ad'))aa_firefox_ad();?> in your templates (1 per page, 1 ad per page).

Frequently Asked Questions

Do I need an AdSense Account?

Screenshots

Plugin Configuration Panel
AskApache Firefox Adsense WordPress Plugin ScreenShot

Firefox + Google Toolbar
Choose Firefox plus Google Toolbar

Get The Code
Get Firefox Adsense Code



http://www.askapache.com/wordpress/firefox-adsense-plugin.html#comments

Reader Comments

  1. Daniel ~July 21, 2010 @ 12:26 pm
    I wish to ask... Is it true that google adsense has discontinued the referral program? Does this mean we can not use this plugin anymore? Thank you!
  2. maria ~July 21, 2009 @ 7:37 am
    I LOVE this idea…thanks!!! I placed the code under a given in the sidebar
  3. Nikolai ~April 23, 2009 @ 9:13 am
    Too bad Google AdSense referral has been retired.. this would have been a great tool for me
  4. Arp ~July 19, 2008 @ 9:22 am
    It seems that Google is retiring the Adsense referral program at the end of August. Here's the text at the top of the page to get the code: Note: Referrals is being retired during the last week of August 2008, so we recommend that you do not implement referral ad code on your site at this time.
  5. Susan ~July 9, 2008 @ 11:28 pm
    I LOVE this idea...thanks!!!
  6. srikanth ~June 26, 2008 @ 11:08 am
    cool plugin and as explained its intelligent , thanks for making it
  7. Jens ~December 16, 2007 @ 6:42 pm
    This plugin is fantastic. Thank you for doing!
  8. Scott ~October 7, 2007 @ 1:52 pm
    I have actually been meaning to add some referrals for a while now, thanks for the reminder that I need to go do that.
  9. mike ~September 17, 2007 @ 8:50 am
    Greetings, I am having a few problems with this plugin, I use WP 2.2.3 and the plugin displays the message for Firefox and IE users, it does not work at all since showing the ads to everyone defeats it's purpose.
  10. NSpeaks ~September 12, 2007 @ 3:43 pm
    AskApache, please look at my problem too above.
  11. Wayne ~September 11, 2007 @ 10:05 pm
    AskApache, would you try again and see if it's shown? I've disabled WP-Cache for now.
  12. AskApache ~September 11, 2007 @ 9:24 pm

    @ Wayne

    I'm pretty new to WordPress so I'm not really sure.. I also noticed I was seeing the ads from a Mac running safari, which is definately not supposed to happen. I'm thinking its either because of a plugin like WP-Cache, or my code is just bad. I'm pretty new to php too. Does this look like it should work?

    function aa_firefox_ad(){
      $aa_bad=false;
      $aa_firead_code=&#039;&#039;;
    &nbsp;
      if(!isset($_SERVER[&#039;HTTP_USER_AGENT&#039;])) $aa_bad=true;
    &nbsp;
      if(preg_match("/firefox/i", $_SERVER[&#039;HTTP_USER_AGENT&#039;])) $aa_bad=true;
    &nbsp;
      if(preg_match("/safari/i", $_SERVER[&#039;HTTP_USER_AGENT&#039;])) $aa_bad=true;
    &nbsp;
      if(preg_match("/linux/i", $_SERVER[&#039;HTTP_USER_AGENT&#039;])) $aa_bad=true;
    &nbsp;
      if(!preg_match("/windows/i", $_SERVER[&#039;HTTP_USER_AGENT&#039;])) $aa_bad=true;
    &nbsp;
      if(get_option(&#039;aa_firead_code&#039;)==&#039;&#039;){
        $aa_bad=true;
        echo &#039;<!--please setup your firefox adsense code in the admin panel-->&#039;;
      } else $aa_firead_code = get_option(&#039;aa_firead_code&#039;);
    &nbsp;
      if($aa_bad===false){
        echo $aa_firead_code;
      }
    }
  13. AskApache ~September 11, 2007 @ 9:17 pm

    @ Missy

    I like mine in the sidebar.

      <div id="sidebar">
        <h3 style="color:#280">Someone&#039;s Reading</h3>
        <ul><?php last_posts(5,35); ?></ul>
    &nbsp;
        <?php if(function_exists(&#039;aa_firefox_ad&#039;))aa_firefox_ad();?>
            </div>
  14. Missy ~September 11, 2007 @ 7:40 pm
    Where within the template would the code go? Top, bottom, where? Can you provide a screenshot of the code in a template. Sounds like a great plug-in.
  15. Wayne ~September 11, 2007 @ 5:21 pm
    Hello, I've had a user running Slackware and Firefox 2.0.0.4 complain that the advert was running on his machine, is there a known issue with this, or is it possibly a configuration issue on his side? Thanks, Wayne
  16. Jason Litka ~September 7, 2007 @ 11:45 am
    Excellent plugin, thanks! I just replaced the "Get Firefox" code on my site with this and it's working great.
  17. NSpeaks ~September 7, 2007 @ 7:28 am
    Excellent plugin. I was looking for such a thing for many days. BTW If its not firefox, it displays firefox referral ads, but how to configure so that if its firefox, it can show other ads in place of firefox referral? Can you implement such a feature into it so that we can show optional ads without wasting precious advertising space.

Add Comment!

Leave a Reply

Your email address will not be published.


Google +

It's very simple - you read the protocol and write the code. -Bill Joy

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution 3.0 License, just credit with a link.
This site is not supported or endorsed by The Apache Software Foundation (ASF). All software and documentation produced by The ASF is licensed. "Apache" is a trademark of The ASF. NCSA HTTPd.
UNIX ® is a registered Trademark of The Open Group. POSIX ® is a registered Trademark of The IEEE.

Site Map | Contact Webmaster | Glossary | License and Disclaimer | Terms of Service |

↑ TOPMain