Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > PC Technology Zone > Windows Operating Systems and Software > Tips, Tricks & Tutorials » How To Display Firefox Referral Ads Only To Non-Firefox Users
Closed Thread
Old 07-16-2007, 08:01 AM   #1 (permalink)
Osiris's Avatar
 

Join Date: Jan 2005

Location: Kentucky

Posts: 32,058

Osiris is a jewel in the roughOsiris is a jewel in the roughOsiris is a jewel in the rough

Send a message via ICQ to Osiris Send a message via AIM to Osiris Send a message via MSN to Osiris Send a message via Yahoo to Osiris Send a message via Skype™ to Osiris
Default How To Display Firefox Referral Ads Only To Non-Firefox Users

I’ve been running this site for around 9 months now, and although I didn’t start running it to make money it is actually generating enough money now to pay for a few nights out a month. I decided today to see if I could find ways to improve the revenue generation, without ruining the user experience.
I noted that around 60% of my readers are still using Internet Explorer and not Firefox, so I decided to look for a way to promote Google Adsesne Firefox Referrals to non-Firefox readers only, so that they can benefit from the best browser out there, whilst I make up to $1 per user that I convert and educate.
Eventually I found a very simple way to do this. To only show a Firefox referral ad to non-Firefox users just add this code to your site where you want you Firefox referral ad to be displayed:
<?php if ( !strpos($_SERVER['HTTP_USER_AGENT'], 'Gecko') ) { ?>
<!-- Put the code you want to display to non-firefox users here -->
<?php } ?>
Once you’ve done this, your Firefox referral ad will be displayed to ALL users visiting your site who are not using Firefox.

How To Display Firefox Referral Ads Only To Non-Firefox Users | One Tip A Day
__________________
Osiris is online now  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Triple monitors sans Xinerama? Greg Linux, BSD, other *nixes & Open Source Software 3 07-06-2007 01:55 PM
Firefox vs. Opera b1gapl Browser & General Internet Questions 31 06-23-2007 06:46 AM
Firefox 2.0 users brrymnvette Computer Networking & Internet Access 9 06-07-2007 03:46 PM
Firefox 3 Alpha 4 has been released Osiris Windows Operating Systems and Software 4 04-29-2007 10:57 AM