FREE THOUGHT · FREE SOFTWARE · FREE WORLD

Home  »  WordPress  »  Firefox Adsense WordPress Plugin

by 17 comments

[hide]

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


January 17th, 2008

Comments Welcome

  • NSpeaks

    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.

  • Jason Litka

    Excellent plugin, thanks! I just replaced the "Get Firefox" code on my site with this and it's working great.

  • http://www.fsckin.com Wayne

    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

  • Missy

    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.

  • http://www.askapache.com/ AskApache

    @ Missy

    I like mine in the sidebar.

      <div id="sidebar">
        <h3 style="color:#280">Someone's Reading</h3>
        <ul><?php last_posts(5,35); ?></ul>
     
        <?php if(function_exists('aa_firefox_ad'))aa_firefox_ad();?>
            </div>
  • http://www.askapache.com/ AskApache

    @ 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='';
     
      if(!isset($_SERVER['HTTP_USER_AGENT'])) $aa_bad=true;
     
      if(preg_match("/firefox/i", $_SERVER['HTTP_USER_AGENT'])) $aa_bad=true;
     
      if(preg_match("/safari/i", $_SERVER['HTTP_USER_AGENT'])) $aa_bad=true;
     
      if(preg_match("/linux/i", $_SERVER['HTTP_USER_AGENT'])) $aa_bad=true;
     
      if(!preg_match("/windows/i", $_SERVER['HTTP_USER_AGENT'])) $aa_bad=true;
     
      if(get_option('aa_firead_code')==''){
        $aa_bad=true;
        echo '<!--please setup your firefox adsense code in the admin panel-->';
      } else $aa_firead_code = get_option('aa_firead_code');
     
      if($aa_bad===false){
        echo $aa_firead_code;
      }
    }
  • http://www.fsckin.com Wayne

    AskApache, would you try again and see if it's shown? I've disabled WP-Cache for now.

  • NSpeaks

    AskApache, please look at my problem too above.

  • mike

    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.

  • http://www.chipseo.com Scott

    I have actually been meaning to add some referrals for a while now, thanks for the reminder that I need to go do that.

  • http://www.userfun.com Jens

    This plugin is fantastic. Thank you for doing!

  • http://digitracker.blogspot.com srikanth

    cool plugin and as explained its intelligent , thanks for making it

  • Susan

    I LOVE this idea...thanks!!!

  • http://echoleaf.com/ Arp

    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.

  • Nikolai

    Too bad Google AdSense referral has been retired.. this would have been a great tool for me

  • maria

    I LOVE this idea…thanks!!!
    I placed the code under a given in the sidebar

  • http://travel.costari.ca Daniel

    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!

My Online Tools
My Picks
Twitter

  • : Ratpoison, a lean mean WM for Linux (urvxt), I love it
  • : You understand, what I need to know is exactly what happens to the passengers in an elevator when it falls into emptiness - Einstein
  • : It's not process, its content. That's what makes good products. -jobs
  • : Just bought some great BOSE headphones from best buy


Related Articles
Newest Posts

WordPress Development
Hacking and Hackers

The use of "hacker" to mean "security breaker" is a confusion on the part of the mass media. We hackers refuse to recognize that meaning, and continue using the word to mean someone who loves to program, someone who enjoys playful cleverness, or the combination of the two. See my article, On Hacking.
-- Richard M. Stallman






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.

| Google+

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

↑ TOPMain