Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Need Script

  1. #1
    Join Date
    Nov 2005
    Location
    Australia
    Posts
    1,086
    Tokens
    111

    Latest Awards:

    Default Need Script

    :rolleyes: I've looked on google but have found nothing yet.

    I need a javascript which checks if you are using IE, and if so displays a large box saying "You are using IE and our site is not compaitable etc".

    Anybody know how to get this? I've seen it on Tropicalhabbo.com before.

    Thanks.

    Edited by Lµke (Forum Moderator): Thread Moved From Website Designing. Please post in the correct section next time, Thanks .
    Last edited by Lµke; 17-03-2007 at 04:31 PM.


  2. #2
    Join Date
    Feb 2006
    Location
    Ontario Canada
    Posts
    4,587
    Tokens
    0

    Latest Awards:

    Default

    not exactly what you wanted but ye
    Code:
    if($browser == 'ie') {
            Header("Location: http://the.server.com/ie.html");
            } else {
            Header("Location: http://the.server.com/default.html");
        }

    .:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
    .:.: Stand up for what is right, even if you stand alone:.:.


  3. #3
    Join Date
    Nov 2005
    Location
    Australia
    Posts
    1,086
    Tokens
    111

    Latest Awards:

    Default

    Quote Originally Posted by Colin-Roberts View Post
    not exactly what you wanted but ye
    Code:
    if($browser == 'ie') {
            Header("Location: http://the.server.com/ie.html");
            } else {
            Header("Location: http://the.server.com/default.html");
        }
    What is this ment to do?


  4. #4
    Join Date
    Feb 2006
    Location
    Ontario Canada
    Posts
    4,587
    Tokens
    0

    Latest Awards:

    Default

    if the browser is internet explorer it leads to a page (have the page say its Sorry but our site doesnt work with ie or w.e) and any other browser redirects to the normal site

    .:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
    .:.: Stand up for what is right, even if you stand alone:.:.


  5. #5
    Join Date
    Jun 2006
    Posts
    4,832
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by additional View Post
    What is this ment to do?
    If you're in IE it redirects you to a page (in this case you could have saying "get ie" but if not, it redirects to the site.

    Beaten by the guy above :p

  6. #6
    Join Date
    Jan 2007
    Location
    Canada eh?
    Posts
    766
    Tokens
    75

    Default

    No results on google eh? Got this, it was link #3.....

    http://www.echoecho.com/toolbrowserredirect.htm

  7. #7
    Join Date
    Nov 2005
    Location
    Australia
    Posts
    1,086
    Tokens
    111

    Latest Awards:

    Default

    Quote Originally Posted by Scriptz View Post
    No results on google eh? Got this, it was link #3.....

    http://www.echoecho.com/toolbrowserredirect.htm
    What did you search?

    I am not wanting a redirect script, I am wanting a script which shows a footer saying "such and such" if they are using IE.
    Last edited by additional; 16-03-2007 at 01:45 PM.


  8. #8
    Join Date
    Jan 2007
    Location
    Canada eh?
    Posts
    766
    Tokens
    75

    Default

    Quote Originally Posted by additional View Post
    What did you search?
    redirect by browser type

  9. #9
    Join Date
    Nov 2005
    Location
    Australia
    Posts
    1,086
    Tokens
    111

    Latest Awards:

    Default

    I still need this. I've seen it before on Tropicalhabbo.com. It displays a footer if your not using firefox.


  10. #10
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    Did this in 10 secs in PHP.

    Not done very well, but does the job.

    Code:
    <?php
    
    $browser = $_SERVER['HTTP_USER_AGENT'];
    
    if(preg_match("/MSIE/i", $browser)) {
    echo("<script language=\"Javascript\">
    
    alert (\"Sorry, our site is not compatible with Microsoft Internet Explorer!\")
    
    </script>");
    }
    
    ?>

Page 1 of 2 12 LastLast

Posting Permissions

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