Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Serving different pages depending on IP
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Serving different pages depending on IP

 Post Reply Post Reply Page  <12
Author
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 05 May 2004 at 9:07am

in stead of using the IP,

why not use a link to set the language in a cookie so if they click greek then a cookie/session verable is set and that is then read in to site

and ise some code like below to set the language of the site

' read in the language setting from a cookie/session
strLanguage = request("Language")

if strLanuage = "Greek" then

code for the language

Else

code for english

END IF

Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 05 May 2004 at 11:49am

Sounds like the best solution is to have an entry page that has 2 little flags on it - one Greek, and one English. Caption under each flag should say something like "View this site in xxxx".

If they click on the Greek flag, set a language cookie and then redirect them them to the Greek transaltion. Do the same thing for the English.

You'll want the fist thing on the entry page to be a check for the cookie and route them accordingly. so the next time they come there, they go directly to the right translation.

On the home page for each translation, you should also have the flag that allows them to go to the other translation,


Lead me not into temptation... I know the short cut, follow me.
Back to Top
Bluefrog View Drop Down
Senior Member
Senior Member


Joined: 23 October 2002
Location: Korea, South
Status: Offline
Points: 1701
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bluefrog Quote  Post ReplyReply Direct Link To This Post Posted: 11 May 2004 at 11:51am

When it comes to language, you should only ever HELP the user - don't ever decide for them. The best way is to use the language indicator in the HTTP headers (most reliable) first and country second (embassy personelle, expats, countries with more than 1 language, etc.). Make sure to have a language link on every page for users to change. I hate entry pages, but a http-equiv redirector is ok... (yuck) Users should not have to click through the entry page - i.e. help them out there with redirection.

The important thing is to always leave it in the user's hands ultimately. Some major sites really screw this up and it is horribly annoying. I could list a million reasons why, but... I'm lazy  

Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.