Getting Your Visitors To Download FireFox

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
KillerLinks

Getting Your Visitors To Download FireFox

Post by KillerLinks »

I hate when I've got CSS that works perfectly in FireFox but looks like crap in Internet Explorer so I made a simple user defined tag to  give my non-FireFox users a link to download FireFox

The User Defined Tag: InfoBarFireFox

Code: Select all

if (stristr($_SERVER['HTTP_USER_AGENT'], "firefox")==FALSE)
{
echo '<div id="infobar"><a href="http://getfirefox.killerlinks.net"
title="FireFox is the Fastest and Most Secure Web Browser." target="_blank">It Is Highly Reccomended That You View This Website In FireFox. Click Here To Download FireFox.</a></div>';
}
Just save that as a user defined tag called "InfoBarFireFox


At the bottom of your style sheet, add the following:

Code: Select all


/* information bar */
#infobar {
font: .9em normal "Verdana", "Geneva", sans-serif;
}

#infobar a, #infobar a:link, #infobar a:visited, #infobar a:active {
display: block;
float: left;
clear: both;
width: 100%;
height:17px;
color: black;
background: #ffffe6 url('http://getfirefox.killerlinks.net/images/warning.gif') no-repeat fixed .3em .3em;
padding: .7em .3em .3em 2em;
border-bottom: .16em outset;
margin-bottom: 1em;
text-decoration: none;
cursor: default;
}

#infobar a:hover {
color: white;
background-color: #08246a;
}

#infobar a img {
border: none;
}


And in your template right after the tag add:

Code: Select all

{FireFoxInfoBar}

It's pretty simple but it works :)
Pierre M.

Re: Getting Your Visitors To Download FireFox

Post by Pierre M. »

If IE is your problem, you should rather target only IE. No need to blame users of Safari, Konqueror, Opera, Dillo, Links and pocket devices.

BTW, the link to mozilla is http://www.getfirefox.com/ not KL advertising.

Pierre M. (firefox user)
KillerLinks

Re: Getting Your Visitors To Download FireFox

Post by KillerLinks »

Pierre M. wrote: If IE is your problem, you should rather target only IE. No need to blame users of Safari, Konqueror, Opera, Dillo, Links and pocket devices.

BTW, the link to mozilla is http://www.getfirefox.com/ not KL advertising.

Pierre M. (firefox user)

Yeah, I use the KL site as part of the google adsense program. You could put your own adsense URL in there or a direct link to DL firefox. And agreed, It could be easily modified to target only IE users but in my case its beneficial to target all non firefox users. With google paying $1-2 for each download, it take a good chunk out of my hosting costs :)
Post Reply

Return to “Tips and Tricks”