WordPress.org

Ready to get started?Download WordPress

Forums

Excluding all browsers but FireFox 1.5 (32 posts)

  1. SomaSoma
    Member
    Posted 8 years ago #

    Could some one suggest a simple way to exclude all browsers except FireFox 1.5 (and maybe Opera if it supports CSS3 columns?) from my blog.

    Preferably I would like them to get a "This site requires a browser that supports CSS3 Columns, get FireFox" or whatnot.

    Could this be accomplished with a user-agent exclude. For example, if not FireFox link completely different CSS?

    Many thanks,

    David

  2. Mark (podz)
    Support Maven
    Posted 8 years ago #

    Do you not want visitors ?
    And why ?

  3. Mark (podz)
    Support Maven
    Posted 8 years ago #

    What I mean is why not just have a link such as "Not displaying properly ? Click here" ?

    If I designed a site that was valid in every respect but looked just as I wanted it in IE, would I be right to banish other browsers ? Or if it was spaced perfectly in Opera and I banned IE / FF ? Or maybe it was a text-based site that I had formatted especially for Lynx - ban all graphical browsers ?

    If you want people to see your work, and you want your work to inspire and encourage, let them see it (use images on an explanation page). By not doing so, you will simply not get return visitors.

  4. McShelby
    Member
    Posted 8 years ago #

    Not to mention search bots, that you may also exclude from indexing your site.

    Nevertheless it can be done. But whethter it's "simple" or not, depends on your skill in CSS and/or PHP.

  5. stopthepress
    Member
    Posted 8 years ago #

    According to all my 7 sites statistics, less than 8% of all my visitors use FireFox. It makes no sense to ignore the 92% using whatever they want, even Netscape 4 (less than 0.5%). If all those visitors not using FF click the Google's FF banner I will purchase a new top of the line computer by 1st quarter 2006 :)

  6. SomaSoma
    Member
    Posted 8 years ago #

    Podz,

    I take your advice and will have an explanation page with images. My site is more a proof of principle layout experiment and not really a blog. The site will not display or even work without CSS3 columns.

    I am disappointed that the site will not display correctly in safari but I couldn't care less about ie.

  7. Dgold
    Member
    Posted 8 years ago #

    Sometimes it sounds like there is a specific view of what WordPress should be used for, a typical public blog. I think we should keep in mind that different people have different purposes, intentions, and audiences.

    For example I have several private or family blogs. Not seeking audience for them; instead I selected WP as a utility blog on which I can control any option I wish, including limiting the audience. Let's say, for example, I made a Firefox Users Blog... that might be a reason to exclude other browsers. Or simply not wanting 92% IE bozos to read my stuff in a compromised rendering of a CSS design.

    Good alternate suggestions, but for power of options it would be interesting to see if the original question can be answered anyway.

  8. SomaSoma
    Member
    Posted 8 years ago #

    Dgold,

    In fairness I was probably looking for someone with a piece of code to post it for me. I am quite lazy. When I do create a solution I will come back here and post it.

    I agree that with your premise. People have different expectations from wordpress. Mike H. (maybe the most famous) wp blog no longer supports ie (with my full support). Advocates for the cause of not having to spend many hours "mending" your code are personally my favorites.

    If my readership does not include people that use ie (for this specific, and specialized site) so be it. I do not want them. It is for that reason that I am disappointed that safari users will not be "welcome". I use that browser quite often but it doesn't support the CSS I need, in this case.

    I know what I need can be done with php and CSS but was hoping it had already been written. I will come back with a solution in a couple of days.

    However, I agree with Podz that people who visit the site need an explanation of why they cannot view it. Perhaps they will then download firefox. Cannot wait to have this site up live. Will post the link here then (week or two).

    Many thanks.

  9. Mark (podz)
    Support Maven
    Posted 8 years ago #

    Who is Mike H ?

  10. vkaryl
    Member
    Posted 8 years ago #

    Ditto Podz. Never heard of him.... "most famous" is obviously in the eye of the beholder, ain't?

    Good point, Dgold. Better: EXCELLENT point.

  11. I think that he means Michael Heilemann.

  12. vkaryl
    Member
    Posted 8 years ago #

    Oh. Oh well.

  13. Ming
    Member
    Posted 8 years ago #

    Here's a PHP browser checker. Include the file, run the function and it'll pull the browser name and version number. Then you'll have to check that it matches or exceeds your requirements.

    http://techpatterns.com/downloads/scripts/browser_detection_php_ar2.txt

    Personally I'm not one to exclude any visitors but I sure wish I could. Columns would be tasty!

  14. computerdude33
    Member
    Posted 8 years ago #

    Instead of browser sniffing, try engine sniffing. It would give other Gecko browsers (Camino, K-Meleon, Epiphany, SeaMonkey) the right of passage.

  15. philiphotserv
    Member
    Posted 8 years ago #

    so there is no php that can do it?
    or if so, am i blind?
    but how do i exclude a browser with the help of that browser check?

  16. Ming
    Member
    Posted 8 years ago #

    The techpattern code above is only half the script. It'll return two variables for you - the browser name and browser version. You still have to write code that determines what happens when certain conditions are met. That means you need to know PHP to use this script.

    There is an example script at the bottom of the text file that delivers different code for non-IE browsers and IE 5+ browsers. It's a helpful starting point but if you don't know PHP you'd be better off searching Google for a different script.

    Maybe somebody should make a WordPress browser check plugin. It'd be pretty easy with this code.

  17. philiphotserv
    Member
    Posted 8 years ago #

    i found this, its great!
    http://www.echoecho.com/toolbrowserredirect.htm
    or you can add this:

    <?
    //if its MSIE then
    if ($name = strstr ($HTTP_USER_AGENT, "MSIE"))
    {
    //go to Othersite
    Header ("Location: http://www.othersite.com/");
    }
    else
    {
    //else go to Yoursite
    Header ("Location: http://www.yoursite.com/");
    }
    ?>

  18. Dgold
    Member
    Posted 8 years ago #

    If the above code works, this might be a better solution than the DestroyExplorer script someone recently posted in another thread here.

  19. JeffServaas
    Member
    Posted 8 years ago #

    I came here looking for an answer, not to provide one :-) I don't know what I have done to my blog, so I can't share, but it works in FF1.5 but not in IE6!

    Any suggestions appreciated!

    Edit: my site is http://www.servaas.nu

  20. Jeff, please open a new support forum thread for your issue.

  21. DianeV
    Member
    Posted 8 years ago #

    (Off topic: Can't get hold of JeffServaas through his site. Jeff, it looks like you omitted a closing script tag.)

  22. JeffServaas
    Member
    Posted 8 years ago #

    sorry Dianne, you should be able to reach me via the contact page on my website(if you can see my site) and my email address is in my WordPress profile. Anyway, you can email me at jeffatservaasdotnu if you like

    macmanx, I will open a support forum thread.

  23. WarAxe
    Member
    Posted 8 years ago #

    Umm... forgive my intrusion but is there any reason why cross-browser compatible columns are out of the question? Is it because this is going to be stricly CSS3 experimentation? I run a 3-column theme with an expandable center column (and min width) that renders correctly on all browsers of concern.

    There is great info on this here: PositionIsEverything.net

  24. petrenkocomua
    Member
    Posted 8 years ago #

    Google referrals for Firefox download make weird things with people... $-)

  25. SomaSoma
    Member
    Posted 8 years ago #

    WarAxe,

    The CSS3 Columns are going to be used for the text not the layout itself. However, the layout needs the text to be displayed in columns or it just doesn't work. I will post a link to a semi-finished site, hopefully, in the next couple of days.

  26. Sam_a
    Member
    Posted 8 years ago #

    It seems WordPress already has some sniffing functions: http://wordpress.org/support/topic/28068

    It sounds like you want something like

    if ($is_gecko):
    echo '<link rel="stylesheet"... href="css3-columns.css" />';
    endif;

    and then, maybe at the top of the page

    if !($is_gecko):
    echo '<p>You have a non-Gecko browser, so you're probably not seeing the neat multi-column effect...</p>'
    endif;

    I hope I got that code right. ;)

    The CSS3 Columns are going to be used for the text not the layout itself. However, the layout needs the text to be displayed in columns or it just doesn't work.

    But browsers that don't do CSS-3 columns would see -- at worst -- one wide "column" instead of several, right?

  27. SomaSoma
    Member
    Posted 8 years ago #

    Right I have 'finished' the site. Lots of work to do.

    http://momentlost.com/check/

    I managed to modify the techpatterns code. Happy to post it if anyone desires it.

  28. SomaSoma
    Member
    Posted 8 years ago #

    I will just post the code for the record.

    Following the techpatterns script (link above) add something like this:


    if ( (browser_detection('browser') == 'moz') and (browser_detection('number') >='1.8'))
    {
    header("Location: http://www.momentlost.com/");
    }

    else
    {
    header("Location: http://www.momentlost.com/explanation/");
    //echo browser_detection('number');
    //echo browser_detection('browser');

    }

    So... this code will open momentlost if the browser is Firefox 1.5 (in the code this is represented by the revision number for 1.5 which is 1.8). Otherwise it sends the viewer to the explanation url. I have included the commented out code for displaying the browser type and number just in case this helps.

    If you have any, easy, questions I am happy to help. But my knowledge of programming comes from the glory days of pascal so I just screw around until something works... but happy to try.

    David

  29. Mark (podz)
    Support Maven
    Posted 8 years ago #

    Nice explanation and screenshot :)

    (and just when I go back to FF 1.0.7 too ..)

  30. NyteOwl
    Member
    Posted 8 years ago #

    I'm using FF 1.0.7 at the moment, which is revision 1.7.12, so I see it in one large column (with my default background - you forgot to set yours to what I assume was intended to be white) but you script is not bouncing me to your explaination page.

    I daresay you may be without large numbers of visitors for some time as even CSS2 isn't fully supported by browsers in general let alone CSS3.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags