Posts Tagged ‘firefox ad ie only’
Make bank recommending firefox - but don’t waste ad space!
It basically tells anyone who has IE to get a better browser aka firefox.
For each of those who download firefox I receive a buck. But why waste the space if a viewer already has firefox? Obviously they’re not going to download it again, right?
You can do this easily if you follow these steps:
1. Download and install “Who Sees Ads”
2. Add this code to your header file for your theme:
<?php function ae_detect_ie() { if (isset($_SERVER['HTTP_USER_AGENT']) && (strpos($_SERVER
['HTTP_USER_AGENT'], ‘MSIE’) !== false)) return true; else return false; } ?>
</head>
3. Next you will need to configure an ad context in Who See’s Ads. Go to the admin panel for the Who Sees Ads plugin.
   - Choose a name for your ad context. I chose ‘firefox’.
   - Now go down to second option from the bottom it should say:
                   X if (<scroll box>) {<display>}
   - You will want it to look like: Â
                   X if (<(ae_detect_ie())>) {<display>}
   - Now drag and drop that row below where it says Active Rules.
   - Put your ad for firefox in the form that says: Ad code.
   - Click Save Context.
   - Now go back and create another context and call it - ifhasfirefox.
   - Find the rule: if Any condition then
   - Move this to Active Rules and Put your adsense code in the Ad code area and save.
   - Now go back to the first context you made and put the following rule under the previous rule in active rules.                  if Previous conditions fail, try context  Â
Â
Â
Basically this will tell the script that if the first condition is not met which would show the firefox ad, then show the second ad which is the ‘ifhasfirefox’ ad.
You can see this script in action on my site - just load my page in firefox and internet explorer. Let me know if you have any questions or need help with this.
 Please note in order to promote firefox and earn money you will need to be a member of adsense you can sign up here:
Â
Â
Â
Â
Â
Popularity: 13% [?]












br>"I'm Patrick Curl, and I approve this blog."
