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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 08-24-2006, 12:33 PM   #1
polle54
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
polle54 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2006, 12:46 PM   #2
polle54
Confirmed User
 
Join Date: Jul 2004
Location: The Beach
Posts: 4,626
I of course mean Browser Language.
__________________
ICQ# 143561781
polle54 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2006, 02:22 PM   #3
polle54
Confirmed User
 
Join Date: Jul 2004
Location: The Beach
Posts: 4,626
nobody knows how to do this?
__________________
ICQ# 143561781
polle54 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2006, 02:50 PM   #4
JOKER
Facit Omnia Voluntas
 
JOKER's Avatar
 
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>
Take the spaces out of the s c r i p t tags of course and enter CountryCode and URL
__________________
Facilitation - BizDev - Traffic - Consulting - Marketing
Skype: jokerempire | Silent Circle: joker


Last edited by JOKER; 08-24-2006 at 02:52 PM..
JOKER is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2006, 03:07 PM   #5
polle54
Confirmed User
 
Join Date: Jul 2004
Location: The Beach
Posts: 4,626
Quote:
Originally Posted by JOKER | JOKEREMPIRE Inc.
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>
Take the spaces out of the s c r i p t tags of course and enter CountryCode and URL
thanks man

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
polle54 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2006, 03:14 PM   #6
JOKER
Facit Omnia Voluntas
 
JOKER's Avatar
 
Industry Role:
Join Date: Apr 2003
Location: Offshore
Posts: 2,105
Yes, just replace
Code:
window.location.href=targetURL
with whatever code you want to use if the country is XY
__________________
Facilitation - BizDev - Traffic - Consulting - Marketing
Skype: jokerempire | Silent Circle: joker

JOKER is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2006, 03:19 PM   #7
polle54
Confirmed User
 
Join Date: Jul 2004
Location: The Beach
Posts: 4,626
Quote:
Originally Posted by JOKER | JOKEREMPIRE Inc.
Yes, just replace
Code:
window.location.href=targetURL
with whatever code you want to use if the country is XY
thanks for your help

Let me know if I can do anything for ya in return
__________________
ICQ# 143561781
polle54 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2006, 03:23 PM   #8
JOKER
Facit Omnia Voluntas
 
JOKER's Avatar
 
Industry Role:
Join Date: Apr 2003
Location: Offshore
Posts: 2,105
Quote:
Originally Posted by polle54
thanks for your help

Let me know if I can do anything for ya in return
Welcome, I've added you to ICQ and keep you in mind

If you have german-speaking traffic, let me know
__________________
Facilitation - BizDev - Traffic - Consulting - Marketing
Skype: jokerempire | Silent Circle: joker

JOKER is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2006, 04:13 PM   #9
polle54
Confirmed User
 
Join Date: Jul 2004
Location: The Beach
Posts: 4,626
Quote:
Originally Posted by JOKER | JOKEREMPIRE Inc.
Welcome, I've added you to ICQ and keep you in mind

If you have german-speaking traffic, let me know

I have really much german traffic!!
__________________
ICQ# 143561781
polle54 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-24-2006, 05:17 PM   #10
E$_manager
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
E$_manager is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.