AskApache Firefox Adsense WordPress PluginJanuary 17th, 2008
« Come On and Sprite for your WebsiteIs Your Password Crackable? »
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!
AskApache 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.
aa-firefox-adsense.zip to the /wp-content/plugins/ directory/wp-content/plugins/aa-firefox-adsense/aa-firefox-adsense.php/wp-admin/options-general.php?page=aa-firefox-adsense.php<?php if(function_exists('aa_firefox_ad'))aa_firefox_ad();?> in your templates (1 per page, 1 ad per page).Do I need an AdSense Account?
« Come On and Sprite for your WebsiteIs Your Password Crackable? »
The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect. Tim Berners-Lee
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 | WAI | DISA | ICSI | GIAC | SANS RR | GHOST
Authority: 110 ↑ 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 according to these terms. "Apache" is a trademark of The ASF.
Too bad Google AdSense referral has been retired.. this would have been a great tool for me
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.
I LOVE this idea…thanks!!!
cool plugin and as explained its intelligent , thanks for making it
This plugin is fantastic. Thank you for doing!
I have actually been meaning to add some referrals for a while now, thanks for the reminder that I need to go do that.
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.
AskApache, please look at my problem too above.
AskApache, would you try again and see if it’s shown? I’ve disabled WP-Cache for now.
@ 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; } }@ 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>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.
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
Excellent plugin, thanks! I just replaced the “Get Firefox” code on my site with this and it’s working great.
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.