1 (edited by PhaxeNor 2007-09-09 12:55)

Topic: Show message if user isn't from that country

I need to some with getting a message to be shown if a user isn't from Norway, Sweden or Denmark

Something like this:

<header>
<navlinks>
<if user isn't nor, swe or dk show this message>
<announcement>


That way I can tell the other users that isn't from those countries that this forum only support Norwegian, Swedish and Danish.

I know that I have to use HTTP_ACCEPT_LANGUAGE but I have NO idea on how I can get this to work or even if it work..

Any help would be great!

Oh, I have also looked on [Punres Wiki] but I don't understand much of it tongue


Thank You,
PhaxeNor

2

Re: Show message if user isn't from that country

You may be able to adapt this to cater to your requirements. It'll at least give you a starting point for rolling your own if not. smile

http://techpatterns.com/downloads/scrip … ection.txt