How to sort by brorser language??

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • polle54
    Confirmed User
    • Jul 2004
    • 4626

    #1

    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
    Confirmed User
    • Jul 2004
    • 4626

    #2
    I of course mean Browser Language.
    ICQ# 143561781

    Comment

    • polle54
      Confirmed User
      • Jul 2004
      • 4626

      #3
      nobody knows how to do this?
      ICQ# 143561781

      Comment

      • JOKER
        Facit Omnia Voluntas
        • Apr 2003
        • 2105

        #4
        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
        Last edited by JOKER; 08-24-2006, 01:52 PM.
        Facilitation - BizDev - Traffic - Consulting - Marketing
        Skype: jokerempire | Silent Circle: joker

        Comment

        • polle54
          Confirmed User
          • Jul 2004
          • 4626

          #5
          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

          Comment

          • JOKER
            Facit Omnia Voluntas
            • Apr 2003
            • 2105

            #6
            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

            Comment

            • polle54
              Confirmed User
              • Jul 2004
              • 4626

              #7
              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

              Comment

              • JOKER
                Facit Omnia Voluntas
                • Apr 2003
                • 2105

                #8
                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

                Comment

                • polle54
                  Confirmed User
                  • Jul 2004
                  • 4626

                  #9
                  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

                  Comment

                  • E$_manager
                    Too lazy to set a custom title
                    • Apr 2006
                    • 13557

                    #10
                    That was really a hard question about brorser language
                    Enjoy more sales with EnjoyBucks!
                    Homemade: Asian : Ebony : GFs : Voyeur : Nudist : Public : 3D

                    Comment

                    Working...