![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Jul 2004
Location: The Beach
Posts: 4,626
|
How to sort by brorser language??
Hey can someone remind how you sort traffic by browser langauage
it's not more than a couple of lines of code as far as I recall...
__________________
ICQ# 143561781 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Jul 2004
Location: The Beach
Posts: 4,626
|
I of course mean Browser Language.
__________________
ICQ# 143561781 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Jul 2004
Location: The Beach
Posts: 4,626
|
nobody knows how to do this?
__________________
ICQ# 143561781 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Facit Omnia Voluntas
Industry Role:
Join Date: Apr 2003
Location: Offshore
Posts: 2,105
|
For reliability I'd rather go with system-language or even better GeoIP...
Anyways, this code should do it. Code:
<s c r i p t> targetLanguage = "COUNTRY-CODE HERE"; targetURL = "http://URL.HERE"; bLang = navigator.Language ? navigator.Language : navigator.userLanguage; if (bLang.indexOf(targetLanguage) >= 0) window.location.href=targetURL; </s c r i p t>
__________________
Facilitation - BizDev - Traffic - Consulting - Marketing Skype: jokerempire | Silent Circle: joker |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Confirmed User
Join Date: Jul 2004
Location: The Beach
Posts: 4,626
|
Quote:
can it be made so I can exexute a special line of for a specific country, not redirect to a new site just maybe print a line of html text
__________________
ICQ# 143561781 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Facit Omnia Voluntas
Industry Role:
Join Date: Apr 2003
Location: Offshore
Posts: 2,105
|
Yes, just replace
Code:
window.location.href=targetURL
__________________
Facilitation - BizDev - Traffic - Consulting - Marketing Skype: jokerempire | Silent Circle: joker |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Confirmed User
Join Date: Jul 2004
Location: The Beach
Posts: 4,626
|
Quote:
Let me know if I can do anything for ya in return ![]()
__________________
ICQ# 143561781 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Facit Omnia Voluntas
Industry Role:
Join Date: Apr 2003
Location: Offshore
Posts: 2,105
|
Quote:
![]() If you have german-speaking traffic, let me know ![]()
__________________
Facilitation - BizDev - Traffic - Consulting - Marketing Skype: jokerempire | Silent Circle: joker |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Confirmed User
Join Date: Jul 2004
Location: The Beach
Posts: 4,626
|
Quote:
I have really much german traffic!!
__________________
ICQ# 143561781 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Too lazy to set a custom title
Join Date: Apr 2006
Location: pink adult dreams
Posts: 13,557
|
That was really a hard question about brorser language
![]() ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |