Firefox Adsense WordPress Plugin

FREE THOUGHT · FREE SOFTWARE · FREE WORLD

Firefox Adsense WordPress Plugin

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

Updated version now works with WP-Cache!

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



«
»

Skip to Comments

Add Your Opinion

Reader Comments

  1. maria ~

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

  2. Nikolai ~

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

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

  4. Susan ~

    I LOVE this idea…thanks!!!

  5. srikanth ~

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

  6. Jens ~

    This plugin is fantastic. Thank you for doing!

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

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

  9. NSpeaks ~

    AskApache, please look at my problem too above.

  10. Wayne ~

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

  11. 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;
      }
    }
  12. 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>  
  13. 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.

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

  15. Jason Litka ~

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

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


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

HTML | DCMI | GRDDL | XOXO | XDMP | XFN | DOM | XML | XHTML 1.1 Strict | CSS 2.1 | W3C | TLDP | WAI | DISA | ICSI | GIAC | SANS RR | GHOST | DEFCON | NIST | DHS CYBER | NIST | .:: Phrack Magazine ::.

↑ TOPExcept 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. HTTPD based on NCSA HTTPd

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