Benjamin Pick
Forum Replies Created
-
Forum: Plugins
In reply to: [Geolocation IP Detection] False Positive Warning – Solution inside ;)Thank you for your info, I will fix it in the next minor version …
Forum: Plugins
In reply to: [Geolocation IP Detection] Multisite supportProbably this would be possible to do with wordpress filters – but I am not supporting multisite, it might or might not work.
Forum: Reviews
In reply to: [Geolocation IP Detection] USA displayed as CANADAhttps://github.com/yellowtree/geoip-detect/wiki/Troubleshooting
Possible shortcodes are shown in the backend on the “Lookup page”
https://github.com/yellowtree/geoip-detect/wiki/API%3A-Shortcodes
Forum: Plugins
In reply to: [Geolocation IP Detection] PT missing?Wow, you are right – not all countries were in that mapping. Actually I don’t need it anymore as I am getting the ISO Code 3 from GeoNames – the next version of the plugin will do this for the legacy code as well.
You can try out the beta:
https://github.com/yellowtree/geoip-detect/wiki/Beta-TestingThis version of the Maxmind database is free to use for any amount of lookups.
Forum: Plugins
In reply to: [Geolocation IP Detection] How does the plugin work with FastCGI cache?Did you make sure admin-ajax.php is excluded from the fastcgi cache?
The jQuery script seems ok (but there is a simplfied JS API if you like: https://github.com/yellowtree/geoip-detect/wiki/API:-AJAX#frontend-js-helper-functions ) . What does the admin-ajax.php call return (see network tab of the DevTools, or call manually?
Are the 2-letter country codes correct (for the hard-coded IPs)?
Which data source are you using?
Yes it sounds that there is some proxy in-between, please check https://github.com/yellowtree/geoip-detect/wiki/Troubleshooting#q1-he-says-my-ip-is-x-but-i-know-it-is-y
Forum: Plugins
In reply to: [Geolocation IP Detection] Shortcode to show content in one countryYes IP detection always has an error rate. It is good to let the user override the automatic detection (e.g. a malaysia customer happens to travel outside of malaysia, yet the content for malaysia is relevant for him.)
Try this:
Forum: Plugins
In reply to: [Geolocation IP Detection] WP-Rocket combinationAJAX mode should solve this, yes.
Forum: Plugins
In reply to: [Geolocation IP Detection] Country code in PHP snippetYes of course.
https://github.com/yellowtree/geoip-detect/wiki/API-Usage-Examples#basic-use
The lookup page of the plugin can help you to find a specific property.
Mixing the data from Geolocation with the one provided from WooCommerce doesn’t make too much sense I suppose – what if one source says it’s “Italy” and the other source says it’s “Germany, Berlin”. You’d need one “true” datasource.
So I guess what you are trying to do is replacing the geolocation mechanicsm in WooCommerce with the one from this plugin via a WooCommerce filter, is this correct? I don’t know how the shipping calculator works.Forum: Plugins
In reply to: [Geolocation IP Detection] hide/content by timeThis is an interesting use case but I guess, as it’s not related to geolocation, this is out of scope of this plugin. I could imagine generalizing the ajax mode with hooks so that you can implement this in a seperate plugin?
Forum: Plugins
In reply to: [Geolocation IP Detection] Mobile – Geolocation IP DetectionMobile Geoip detection is tricky, yes, because it all depends on how the mobile carrier is handling it.
For example:
https://nixintel.info/osint/geolocating-mobile-phones-with-an-ip/For mobile phones, it makes more sense to use the JS geolocation API (the website is asking the user to reveal their location, and then it is sending only the GPS coordinates, not a city name). I am thinking about integrating this into this plugin, would this help?
https://github.com/yellowtree/geoip-detect/issues/5Forum: Plugins
In reply to: [Geolocation IP Detection] display location in queryYou mean, in your URL? You can adapt this code to your needs:
https://github.com/yellowtree/geoip-detect/wiki/API-Usage-Examples#redirect-depending-on-country
Forum: Plugins
In reply to: [Geolocation IP Detection] Geolocation IP DetectionDid you try other data sources? HostIP.info is not very accurate.