• <p>After choose “Enable Auto Dial Code Select”, the phone field become blank.</p>
    <p>?</p>
    <p>Maybe something wrong with this plugin unable to check the visitor’s country by IP.<br /><br />Can I Use cloudflare geolocation on this plugin?</p>

    • This topic was modified 2 years ago by doufenglai.
    • This topic was modified 1 year, 10 months ago by doufenglai.
    • This topic was modified 1 year, 10 months ago by doufenglai.
Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author Narinder Singh

    (@narinderbisht)

    Hello @doufenglai

    Thank you for using my plugin. Yes, this feature will not work. Because of the free API which we are using for tracking the IP. That API is not working anymore.

    Till I didn’t find any solution or new API. I am removing this feature.

    I hope the rest of the features are working fine for you.

    Regards
    Narinder.

    Thread Starter doufenglai

    (@doufenglai)

    Thank you for your reply.

    I do love this plugin. Do you consider change another API? I google “free api ip to country” and found a free one: ipgeolocation.io.

    I am not familiar with this。 Hope would helpful.

    Thread Starter doufenglai

    (@doufenglai)

    Plugin Author Narinder Singh

    (@narinderbisht)

    Hello @doufenglai

    Thank you for using the plugin. Now Plugin has a new API. Please update the plugin.

    Thank you for your love and support.

    Regards
    Narinder.

    Thread Starter doufenglai

    (@doufenglai)

    Greetings! @narinderbisht
    Thank you so much to add this function again!

    After I updated this plugin, can’t find the button (to open or close this function) anymore. Could you tell me how to control it in this version?

    Have a good day!

    Simon

    Plugin Author Narinder Singh

    (@narinderbisht)

    Hello @doufenglai

    Please update the plugin version. For auto country detection. Please register your free API at https://ipgeolocation.io/

    I hope the new changes will work for you.

    Regards
    Narinder.

    Thread Starter doufenglai

    (@doufenglai)

    Hello @narinderbisht
    I was surprised and delighted by the speed of plugin optimization!

    I found the API limit is 1000 times per month, which is just 30 times per day. I’m sorry that I didn’t make a clear study of this API before recommending it to you

    If there was a better alternative, would you consider it? Do you think it is possible to use Cloudflare’s GEOIP API? Please understand my persistence, because I love your plug-in so much.

    Ref:
    https://tedpiotrowski.svbtle.com/free-geoip-api-with-cloudflare-workers
    https://support.cloudflare.com/hc/en-us/articles/200168236-Configuring-IP-geolocation

    • This reply was modified 2 years ago by doufenglai.
    Thread Starter doufenglai

    (@doufenglai)

    I found this code will show “US”:

    echo $country_code = $_SERVER[“HTTP_CF_IPCOUNTRY”];

    Hope this information is useful.

    Plugin Author Narinder Singh

    (@narinderbisht)

    Hello @doufenglai

    Thank you for showing so much love for this plugin.
    Please update the plugin version. Now no need for an API key. So there is no limit now.

    The plugin is using this API URL:https://api.iplocation.net
    It is working without any API key.

    https://api.ipgeolocation.io/getip This URL just picks the user browser IP address and the above API fetches the user country code.

    I hope now it will work fine for you.

    Regards
    Narinder.

    Thread Starter doufenglai

    (@doufenglai)

    I don’t know what to say. You’re my hero, man. Thank you so much!

    Simon

    @narinderbisht May I open this thread again? Currently, it does not work anymore. Did you remove the API or the API is not usable anymore for free? The field is blank when activating this feature.

    Thread Starter doufenglai

    (@doufenglai)

    Is it possible to add a option to use cloudflare geolocation on this plugin?

    It works well :

    $country_code = $_SERVER[“HTTP_CF_IPCOUNTRY”];

    Thread Starter doufenglai

    (@doufenglai)

    Plugin Author Narinder Singh

    (@narinderbisht)

    Hello @doufenglai

    Please update the plugin version. The old IP API is not working. So replaced with a new API.
    I hope it will work for you.

    Regards
    Narinder.

    Thread Starter doufenglai

    (@doufenglai)

    Thank you!

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Auto Dial Code Select is not working’ is closed to new replies.