Benjamin Pick
Forum Replies Created
-
Forum: Plugins
In reply to: [Geolocation IP Detection] Display by County?Yes that’s possible. It’s called
mostSpecificSubdivision(because the name of the subdivisions are different in each country.)
This is before plugins_loaded then. Try to wrap it in
add_action(‘plugins_loaded’, function() { … });
(What do you want to add in the header.php? Maybe body class is a possibility for you?)
- This reply was modified 2 years, 4 months ago by Benjamin Pick.
It should work.
Are you using shortcodes or PHP syntax? What does the function return?
Forum: Plugins
In reply to: [Geolocation IP Detection] Updating GeoIP2 API?Yes I am aware of this problem but it’s complicated. Here is the meta-ticket:
https://ww.wp.xz.cn/support/topic/maxmind-lib-incompabilities-meta-ticket/
My way forward is prefixing my composer packages, thus being independent of other plugins’ versions. However there is no timeline when this will be implemented.
https://github.com/yellowtree/geoip-detect/issues/191
- This reply was modified 2 years, 5 months ago by Benjamin Pick.
Forum: Reviews
In reply to: [Geolocation IP Detection] Works as AdvertisedThanks 🙂
Forum: Plugins
In reply to: [Geolocation IP Detection] [geoip_detect2_show_if two countriesYes Syntax 1+2 are correct.
Forum: Plugins
In reply to: [Geolocation IP Detection] Search results based on IP?If you use the location as filter, it is important that users can override the automatically detected location (because it might be incorrect.)
You could also use it as a way to change the ranking of the results.
Forum: Plugins
In reply to: [Geolocation IP Detection] Search results based on IP?Of course, this would be possible, but no I haven’t tried it yet. Will need custom PHP and/or JS coding.
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