+ Reply to Thread
Results 1 to 5 of 5

Thread: turn off popup "is xyz, United States your location?"

  1. #1
    Senior Member
    Join Date
    Dec 2023
    Posts
    161

    turn off popup "is xyz, United States your location?"

    Is there a way to turn off the popup window alert "Is xyz-town, United States your location? Yes No"?

    Or else (unable to detect location, would you like to select from list.)

    I'm not using geolocation to filter ads right now, and would prefer not to interrupt visitor's browsing with that popup. I'm only using it to pre-fill search and location form for them when submitting, so if detection is wrong, they can either adjust in form or click the icon in the menu bar to update - with light use of geo on my site, I'd rather not interrupt visitor's browsing with the alert to double check.)

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,174
    You need to disable this setting in Basic Settings > Geo Filter > Auto detection of user location

    and clear your browser cookies to check

  3. #3
    Senior Member
    Join Date
    Dec 2023
    Posts
    161
    Under Basic Settings -> Geo Filter I have:
    Auto detection of user location ( ) enable (x) disable
    and saved it.

    Then to test, I open a new windows sandbox instance so there are no cookies.
    Open edge browser and go to site.

    Navigation bar says "Select Location" and I get a popup:

    We were unable to detect your location, do you want to select your city from the list? Yes No




    If I go to Basic Settings -> Geo Filter, and change set it
    Auto detection of user location (x) enable ( ) disable
    and save

    Start new windows sandbox instance so there are no cookies, open edge browser and go to site, Navigation Bar says Illinois, but I get a popup:

    Is Illinois my location? Yes No


    I think it is probably slightly more useful for my use for it to detect Illinois than no detection so it can autofill on post form, but either way I get a popup that I'd like to eliminate, either to say it can't detect location (if I have it set to disable) or to ask if what it detected is correct (if I have it set to enable).
    Last edited by Horizon; February 2, 2024 at 02:13 AM.

  4. #4
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,174
    You can manage this popup via plugins/multiField/location_selector.tpl

    if you need to remove it completely, delete a code block below:

    if (!readCookie('mf_usernavbar_popup_showed')) {
    ...
    }

    and leave only this code:
    Code:
    Only registered members can view the code.

  5. #5
    Senior Member
    Join Date
    Dec 2023
    Posts
    161
    Works perfectly -- Thank You Rudi!

+ Reply to Thread