Redirect based on IP, detection of the country of the user origin

I have a company from one situation to Puerto Rico and elsewhere in New Jersey.  The two markets are very different in the way in which services are provided and apply.  Can you share a code sample to detect the origin of the customer?  For example, I'd like all mainland users based on a page with relevant elements to the United States and in English.  In the other hand, I'd like the users of Puerto Rico to land on a page with products to their needs.  The content will be different for the two countries, and both will be available in English and Spanish.

Take a look at this How - to - redirect clients according to their location

Thanksm

Mihai

Tags: Business Catalyst

Similar Questions

  • which detects that the user has changed the clock of the device?

    Hi all my application dependent on the clock time in the device settings. who can my application to detect if the user has replaced the unit time? Thank you

    Salvation;

    It's the Question2:

    and I found the solution:

    bps_initialize();
    Subscribe (clock_get_domain ());
    clock_request_events (0);

    void ApplicationUI::event(bps_event_t *event) {}
    unsigned int dcode = bps_event_get_domain (event);
    If (dcode is {clock_get_domain()})
    unsigned int code = bps_event_get_code (event);
    if(code == CLOCK_INFO) {}
    Q_EMIT dateorclockuserChanged(); signal function qml
    }

    }
    }

    Thanks a lot for your help

  • message from Firefox: "page isn't redirecting properly" Firefox has detected that the server redirects the request for this address in a way that will never end. * Why this mess

    "The page isn't redirecting properly?

    i receive this warning on a daily basis. it seems to occur whenever i open a message  in gmail or try to send a message. anybody have a clue about this? thanks!
    

    Firefox has detected that the server redirects the request for this address in a way that will never end.

       *   This problem can sometimes be caused by disabling or refusing to accept
             cookies.
    

    See http://kb.mozillazine.org/The_page_is_not_redirecting_properly

  • Order results based on year entered by the user

    I have an APEX page where the user can enter a start date and an end date and get a graph of the data for this date range. My problem is that I don't know how/sort order of the results according to the dates entered. For example:
    Start_Dt    End_Dt
    01-Jan-09   31-Dec-09
    
    sort results:
    jan
    feb
    Mar
    apr
    May
    etc...
    
    Start_Dt    End_Dt
    01-Nov-08   31-Oct-09
    
    Sort Results:
    Nov (2008)
    Dec (2008)
    Jan (2009)
    Feb (2009)
    Mar (2009)
    etc...
    
    Start_Dt    End_Dt
    01-Mar-08   28-Feb-09
    
    Sort Results:
    Mar (2008)
    Apr (2008)
    May (2008)
    ... (2008)
    Jan (2009)
    feb (2009)
    
    Start_Dt    End_Dt
    01-dec-08   31-mar-09
    
    Sort Results:
    Dec (2008)
    Jan (2009)
    Feb (2009)
    mar (2009)
    I need a way to always sort the results since the beginning of the year of the entries by the user, at the end of the year of the entries by the user, any "year" (or part of a year), they enter. Sorting based on year and month seems to be the most obvious way to do it, but I don't have a complete list of months/years, just the dates of beginning and end I tried to work with months_between and add_months, but I can't get consistent results.

    Hello

    If you post CREATE TABLE and INSERT to your sample data statements and instructions CREATE FUNCTION for the functions defined by the user you are using (for example, issue_open_date), then all anyone can do is guess.

    I guess Issue_Open_Date (Issueid) returns a DATE, and the date you need sort.
    Since the main query is a query GROUP BY and GROUP BY clause does not include issueid, then you cannot "ORDER BY Issue_Open_Date (issueid)"; but you can use an aggregate function, such as:

    ...
    Group By  Months.Month_Desc, Months.Ordinal, Months.Month_Id
    ORDER BY  MIN (Issue_Open_Date (Issueid))
    ;
    

    Let's say a row of output represents December, 2009, and another line of January 2010. As long as issue_open_date always returns DATEs in recent months, it won't matter what exactly are the dates: a DATE of 2009 will be earlier than any DATE in January, 2010.

  • How to detect when the user clicked 2 video clips?

    Hello:

    I would like to know how can I detect when 2 video clips were clicked (order irregardles).

    What I have is this:

    In my main script, I have 2 independent clips (mc_him and mc_her) each in its own layer which, when clicked, playing an internal animation without moving my head of main reading anywhere. What I do is, once both a click (like I said, it doesen't matter in what order), a button that sends me into another section of my film should appear. He really doesen't matter if the button activated with alpha or sending me to a specific framework where all my button. What I detect is two clicks for the button.

    How can I achieve this?

    Thank you very much.

    {btn1.onRelease = Function ()}

    No matter what

    This.Clicked = true;

    checkBothClickedF();

    }

    {btn2.onRelease = Function ()}

    No matter what

    This.Clicked = true;

    checkBothClickedF();

    }

    function checkBothClickedF (): Void {}

    {if (btn1. Clicked & btn2. Clicked)}

    do something. the two clicked

    reset the two clicked on properties?

    }

    }

  • How to detect if the user is on a CDMA network?

    A simple way to determine the connection programmatically, GPRS/EDGE/CDMA method?

    See net.rim.device.api.system.RadioInfo.

  • Detect when the user has clicked on the Reset setting

    I'll put the PF_ParamFlag_SUPERVISE indicator for my slider like this:

    PF_ADD_FLOAT_SLIDERX ("MySlider", 0, 0, 256, 256, 123, PF_Precision_INTEGER, PF_ValueDisplayFlag_NONE, PF_ParamFlag_SUPERVISE, MY_SLIDER_DISK_ID);


    I get the PF_Cmd_USER_CHANGED_PARAM command when I change the value of the slider (1 case). I also get the command when I hit the "Reset settings" button on the right (case 2) in the effect controls panel.

    Is there a way I can distinguish 2 cases 1 case? I need to take additional steps to 2 cases, but PF_UserChangedParamExtra contains only the param_index.


    Thank you very much

    Hi tashi.maya,

    Unfortunately, there is no specific API that distinguishes a reset a parameter change.

  • Redirect when press button ok on the dialog box

    Hello

    How can I redirect the user when you press the button on a dialog box?

    Thank you

    adrianeireyahoo wrote:

    OK, but how to get to the ok button.

    Dialog.Alert ("cannot send results, check the connection, please try again");

    Why do you need to access the OK button of the alert? Just do what you want to do after the display of the dialog box - the statement after Dialog.alert will be reached only after the user presses the OK button (in general). If you want to detect if the user rejected the dialogue this or any other way, create your own one, doModal on it and analyze the returned result:

    Dialog myWarning = new Dialog(Dialog.D_OK, "Unable to send results, check connection, please try again", Dialog.OK, Bitmap.getPredefinedBitmap(Bitmap.EXCLAMATION), 0L);
    if (myWarning.doModal() == Dialog.OK) {
      // OK button was pressed - do what you need here
      ...
    }
    
  • How to detect an interaction of the user with a VerticalFieldManager object?

    Hello

    It is a question for those who have more experience with gui on BB things.  I use the eclipse with Simulator pack 6 and 9800 component plugin.

    I have a VerticalFieldManager (VFM) object that contains a few fields menu. I would like to detect when the user attempts to modify one of these fields, to load a file and update the menus. The thing is that these menus are usually not changed by a user, perhaps only once for the time up-front, something like the choice of your country and city and other, then you will not change that the next time around. So I want to avoid loading the file and simply use the settings saved in the place. Here is what I tried and the solutions I've had but NOT as aestatically

    (1) I can not load the file as a response to one of the modification of fields (using setChangeListener) because it is already too late and the present menu is outdated.

    (2) I can add a checkbox to the optimization of resources and take care to load the file and update the menus there. It works, but I DON'T want. It's ugly and not easy to flow!

    (3) I tried to setChangeListener for the optimization of resources, but it receives no change! Here is the code for my VFM:

    the final private class OkVerticalFieldManager extends VerticalFieldManager implements FieldChangeListener
    {
    ----------------------------

    ----------------------------

    ' Public Sub fieldChanged (field field, int context)
    {
    If ((contexte & FieldChangeListener.PROGRAMMATIC) == 0)
    {

    ----------------------------------------------

    -------------------------------------------

    }

    }

    }

    (4) I tried to listen to reminder to focus on the optimization of resources, but it is called by display from the beginning and it seems that I can't control it. I mean I don't want to be called until the user actually click on the object.

    So I hope that there is a better way to detect a user of ANY click or an interaction with the optimization of resources and I catch and do my thing, before the opening of the menus in there.

    Hope that this clear enough.

    Thank you.

    A few possibilities:

    1. you can check the field with emphasis (to use VOR getLeafFieldWithFocus()) in your makeMenu() and branch accordingly.

    2. you can define listener focus on each field change and bake menu items when its focusChanged() method is called with equal to FOCUS_GAINED eventType. There you can check the setting of field and prepare the relevant menu items.

    You can use the same setCookie/getCookie approach I have proposed before in both scenarios if you wish.

  • Detect if the time information dialog box controls user has been activated

    Hello

    I have to make a few changes to my project. I can't edit existing program blocks, so I have to find a way to detect if the user has pressed icon for user dialog box to set up (control type is Time Stamp). I have now, I can compare the current values with the values from the previous loop pass, but this isn't an option.

    I'm looking for some kind of property as active control node or something similar.

    It does not exist.  You can create your own time stamp control (like an XControl), or you can simply watch to see if the window is displayed. You can do the last using VI server functions or you can use the API of the operating system. For Windows, you can use the LabVIEW Windows utilities library.

  • Security level CSA 4.5 setting based on the State of the user

    It is of course possible to toggle the guardrail on the graphical interface through a rule (in the operating system - based permissions policy).

    But, it is possible to define or allow the service to be stopped is based on a State of the user? I can't see how allow/disable it in all areas...

    I have a Local Administrator and a State of NO Local Admin user who work very well with the Modules, but I can't find a way to attach it to the level of safety...

    In the end, I want to be able to affect security low switch, but only if connected as a LocalAdmin...

    See you soon

    As far as I know, you would do this by creating different strategies for each different user state and then using user status option in each strategy to differentiate the rules applied

  • Detect when the native player of iOS is closed using StageWebView

    Currently I'm building an application that uses StageWebView to launch a live stream. I wonder if there is a way to detect if the user clicks done, so I can eliminate the WebView.

    I don't think it's too much of a big deal because it is currently 0.0 to Dim but wise resource, I wonder if it is the best thing to have running waiting for a video link.

    So it doesn't look like this is really possible. We found that the LocationChange event is raised after the button makes hit for us are going to use it as a short term solution before build us a DONKEY in the short term.

    For someone else, read this and comes to face the question of the recovery of video if you close the native player during loading. We found LocationChange listening and calling. stop() helps prevent this from happening.

  • Get the information of the user to the users table

    Basically, what I'm trying to do is a helpdesk application.

    When a user trys to submit a ticket. It will prompt you with a user authentication screen, this authentication is based on a DATABASE of the USERS (which has all the details about the users, including the password). Once the authentication of the user is posted it will be redirected to the form of recording the show. This form was username, userid, useremail text field. All these form of text fields be pre-filled with the detaiils user appropriate to the user who is logged.

    Please can someone help me how to do it.

    Thank you
    Hary

    Hello

    Apex built in the variable to contain the username APP_USER
    http://download.Oracle.com/docs/CD/E14373_01/AppDev.32/e11838/concept.htm#sthref214

    Application of calculation should be something like

    SELECT user_id FROM my_user_table WHERE user_name = :APP_USER
    

    Replace the column and table names accordingly (user_id, my_user_table and user_name)

    Kind regards
    Jari

  • Need a script to alert the user to fill in another field

    Hello

    I have a drop-down list labeled certifications. In fact, I have 9 of them. called certifications1 and so on. Anyway I need something that detects if the user selects the Bill called pro forma menu item that has a small window reminding them to ensure that Receivers and e-mail name is entered. That's all I'm looking for. Thanks in advance!

    Hello

    According to your drop-down setting, there are two different ways to refer to the modified value.

    If you use only 'list items' scripts will be;

    If (xfa.event.newText == "proforma invoice") {}
    xfa.host.messageBox ("make sure that the name and email is entered");
    }

    If you use "Element to specify values" with "items in the list", the scripts will be;

    If (this.boundItem (xfa.event.newText) == '1') {}
    xfa.host.messageBox ("make sure that the name and email is entered");
    }

    both scripts will change event of falling down into javascript.

  • Firefox has detected that the server redirects the request for this address in a way that will never end.

    This week (01/10/12) I registered on youtube and now I can't log back in here or in my gmail account. I tried every fix-it/single remedy offered the FF forum but nothing works.

    Any other work, all the sites that I frequent load fine, is youtube doing something on purpose for FF users? I can get the page youtube videos and see, but I can't log on, every time I click the sign in button, I get:

    "The page is not redirecting properly".

    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
    

    This problem can sometimes be caused by disabling or refusing to accept cookies. »

    I hate to be a conspiracy theorist, I can connect to youtube without problem on IE, but I hate this browser. I use windows 7 and 15 FF. Can someone find it?

    Looks like it's a firefox issue, because that never happened on IE, Safari or Opera on me.
    You think not that a simple patch can solve this problem. I have to delete individual cookies every day.

Maybe you are looking for

  • Equium P200-1ED - have a problem with the installation of driver VGA

    Hello I have problem with installing driver vga video, every time in installion on that he stops Version: 6,14.10,4833 and it has error poping up... Help, please!

  • SD card does not work in on my Satellite A100-163 5-in-1 card reader

    Hello I recently bought a 1 GB SD card and tried to plug it into my A100-163 built-in 5-in-1 card reader. Nothing appears in my computer. I tried to go to the Device Manager and, under "drives" "Secure Digital Storage Device" with a bit of yellow! Se

  • How can I upload photos of Icloud for Windows XP

    A friend sent me some photos on a photo using Icloud stream... I clicked on 'Join this photo stream' and a new screen came saying I could use "iCloud Control Panel for Windows" to view and edit shared photo streams. I have clkd on "Control Panel for

  • Hard drives can be switched?

    I just bought a new Pavilion p6 2376PC with a card mother Pegatron AAHD2-HY (HOLLY2) and the computer itself works very well I'm not at all happy with Win8.I have also an old P6310yPC of flag running Win7 with a card mother Pegatron M2N78 - LA Violet

  • How to add a line empty

    Hello I know this is very basic, I ask, but I'm going crazy trying to find it. I want to draw a blank line between to LabelFieds. Something like: Label1 Label2. I know there is a function that does this, but I can't remember it and I am not able to f