1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Direct users only to use Firefox or Chrome - Urgent Help

Discussion in 'PHP' started by rajivv, Feb 24, 2011.

  1. #1
    HI,

    I run a website and site has got totally messed in IE this work will take some time to repair
    In the mean time we want the users who open our site to use only firefox or chrome
    how do I do this ...
    Especially if they are coming from ie if already in ff or chrome its ok ie is issue
    This is temp solution till work is complete

    Can pm sitename
    PLEASE HELP

    Rajiv
     
    rajivv, Feb 24, 2011 IP
  2. yohanip

    yohanip Well-Known Member

    Messages:
    350
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    108
    #2
    using a client side script such as javascript could acomplish your needs, try this one http://www.quirksmode.org/js/detect.html
    using a server script such as PHP allows you to detect client user agent using $_SERVER['HTTP_USER_AGENT'] from there you should be able to tell the client is using IE or other thinggie

    ==>owh yes, there is a great open source project hosted at google code, try to find a project named ie7, that piece of tiny javascript fixes many css bugs on the IE browser(ver 5 and up) maybe that should help you faster instead of telling user to use FF or Chrome
     
    Last edited: Feb 24, 2011
    yohanip, Feb 24, 2011 IP
  3. rajivv

    rajivv Peon

    Messages:
    335
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks checking ie7 on google code now any idea how to install this
    should i put in header file ?
     
    rajivv, Feb 24, 2011 IP
  4. rajivv

    rajivv Peon

    Messages:
    335
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I put this in the header file no change at all ? let me keep trying
     
    rajivv, Feb 24, 2011 IP