1
ukdave
Bad Browser Blues?
  • 2004/1/24 17:37

  • ukdave

  • Just popping in

  • Posts: 67

  • Since: 2003/6/27


Make a file called index.html, put the code below inside of it and then place it in your root directory.

Your web server should by default open index.html first so in this case it will open index.html and use the script to divert dodgy browsers to stop.html or stop2.html. Every other browser gets sent to index.php where it will find xoops.

Put whatever you want into the stop.html files, there are some examples below.
-------------------------------------------------

---------------------------------------------------
This is what I put in stop.html:

Your particular version of Internet Explorer does not fully support cascading
style sheets (.css) and is therefore too old to display our web pages
correctly. Click
HERE
to update your browser.
--------------------------------------
This is what I put in stop2.html

Your particular version of the Netscape browser does not fully support cascading
style sheets (.css) and is therefore is too old to display our web pages
correctly. Click
HERE
to update your browser.
----------------------------------------

2
Papillon
Re: Bad Browser Blues?
  • 2004/2/8 21:09

  • Papillon

  • Just popping in

  • Posts: 1

  • Since: 2004/2/8 2


Thank you for your very useful script.

I used the first version you made (for index.php) and it worked well.
This one however seems to have problems with Mozilla, I think the redirection doesn't work properly. Did you tested it with Mozilla or is it me who made a mistake when recopying ?
I turned back to the first version. Thank you again one time ^__^

Papillon

3
ukdave
Re: Bad Browser Blues?
  • 2004/2/8 22:22

  • ukdave

  • Just popping in

  • Posts: 67

  • Since: 2003/6/27


Mozilla and Netscape are the same thing under the hood.

Make your own redirect script online:

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

4
wf4sure
Re: Bad Browser Blues?
  • 2004/2/24 18:27

  • wf4sure

  • Friend of XOOPS

  • Posts: 29

  • Since: 2004/2/12


This is a neat trick--and not a bad idea--but I would prefer, if possible, to accomodate the older browers. Perhaps a compromise would be to redirect them to the information about upgrading their browser, and then offer them a link back into your site to view it with the crappy browser if they really want to. Anyway, for the latest on accomodating IE5.5, see this post.XOOPS Official Site - Forum

5
ukdave
Re: Bad Browser Blues?
  • 2004/2/24 22:02

  • ukdave

  • Just popping in

  • Posts: 67

  • Since: 2003/6/27


Choices are always a good thing and I do like the idea but don't think it would be easy (for me) to do.

6
brash
Re: Bad Browser Blues?
  • 2004/2/25 2:51

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


You need to be careful with this as a websites default documents, and the order they are seached for in is defined on the webserver and may vary. But in general, a very neat trick !

Also, regarding accommadating IE 5.X browser on your XOOPS site, have a look at the hacks section of this site. I have modified the functions.php file and submitted it to this site which allows you to have two entirely different CSS files for IE 5 and IE 6 and it automatically redirects the visitors browser to the correct one.

7
ukdave
Re: Bad Browser Blues?
  • 2004/2/25 10:54

  • ukdave

  • Just popping in

  • Posts: 67

  • Since: 2003/6/27


The directive "DirectoryIndex" in the apache httpd.conf configuration file controls what default files apache will search for. I had no idea that the order they are listed makes a difference.

Here is how mine are listed.

DirectoryIndex index.asp index.html index.html.var index.php index.php3 index.py

Login

Who's Online

360 user(s) are online (277 user(s) are browsing Support Forums)


Members: 0


Guests: 360


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits