SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    Kitty Lizard reptilianfeline's Avatar
    Join Date
    Aug 2002
    Location
    Somewhere in Cyberspace
    Posts
    385
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Detecting Lynx and Links with PHP???

    If I understand it correctly, Lynx and Links browsers don't support frames at all. Is there other browsers as well, and what are their names? I have found a number of examples on how to distinguish between Netscape, IE, and Opera, but no reference to Lynx or Links that helps me.

    I want to put in a special textbased menu on my pages IF the browser is one of the "noframes" browsers. As an added bonus, the textbased browsers get a menu that isn't an image map.

    So... what are the variables I have to look for when dealing with Lynx, Links, or any other noframes browser?
    Reptilian Feline
    | www.reptilian-feline.net | Art | Tutorials | Pets | Music |
    Webdesign the hard way...

  2. #2
    blonde.... Sarah's Avatar
    Join Date
    Jul 2001
    Location
    Berkshire, UK
    Posts
    7,442
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I did a search on google and came up with the following links.

    This one http://webmasterlynx.com/javascript/...formation.html gives loads of links to browser detect type scripts and much more - like whether java is enabled etc - take a look and they might be able to help.

    The rest of these are all pretty much JS but they might be able to point you in the right direction

    http://www.danenright.com/browser-detect.html

    http://www.xs4all.nl/~ppk/js/detect.html

    Otherwise try another search on google with no frames browser detect script and PHP you might get something their.

    Sarah
    Regular user

  3. #3
    Kitty Lizard reptilianfeline's Avatar
    Join Date
    Aug 2002
    Location
    Somewhere in Cyberspace
    Posts
    385
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you for the links, and I appologise for not being more specific.

    I would like to use something like the script I found at PHPBuilder, but use it to recognize Lynx, Links, and any other browser that falls into the "noframes" category. Most examples only use IE, Netscape and Opera, so I can't find the specific code for Lynx and Links and so on.

    PHP Code:
    function getbrowser() 

        global 
    $HTTP_USER_AGENT


        if (
    ereg("MSIE"$HTTP_USER_AGENT) or ereg("Mozilla/5"
    $HTTP_USER_AGENT)) 
        { 
            
    $browser "IE";} 
        else 
        { 
          
    $browser "NS";} 
    return 
    $browser

    Reptilian Feline
    | www.reptilian-feline.net | Art | Tutorials | Pets | Music |
    Webdesign the hard way...

  4. #4
    blonde.... Sarah's Avatar
    Join Date
    Jul 2001
    Location
    Berkshire, UK
    Posts
    7,442
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    oops okay try some of these then, don't know if they are frame browser or not but certainly a few more to add to your list...

    http://www.scriptygoddess.com/archives/003290.php

    and

    PHP Code:
    if ((stristr($_SERVER['HTTP_USER_AGENT'],"[b]palmos[/b]")) or 
    (
    stristr($_SERVER['HTTP_USER_AGENT'],"[b]blazer[/b]")) or 
    (
    stristr($_SERVER['HTTP_USER_AGENT'],"[b]wap[/b]")) or 
    (
    stristr($_SERVER['HTTP_USER_AGENT'],"[b]avantgo[/b]"))) $skin "13"; if (stristr($_SERVER['HTTP_USER_AGENT'],"[b]lynx[/b]")) $skin "3"
    and check out this http://www.flora.org/lynx-dev/lynx-dev/9408/0107.html discussion on yoru topic

    Sarah
    Regular user

  5. #5
    Kitty Lizard reptilianfeline's Avatar
    Join Date
    Aug 2002
    Location
    Somewhere in Cyberspace
    Posts
    385
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you I'll check it out.
    Reptilian Feline
    | www.reptilian-feline.net | Art | Tutorials | Pets | Music |
    Webdesign the hard way...


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •