Benjamin Pick
Forum Replies Created
-
Yes indeed I changed the admin page slugs and did not test it thouroughly enough, sorry. It is fixed now in 5.6.4 (also the issue with the automatic download).
Released in 5.6.1
Forum: Plugins
In reply to: [Geolocation IP Detection] geoip-detect domain was triggered too earlyWas released in 5.6.1
I have just released a fixed version (5.6.1).
I have received the details now. As it is a low priority vulnerability, patchstack recommends fixing it within 30 days – that should be feasible. It is rated low priority because it requires a backend user with Contributor rights in order to be exploited.
Thank you for letting me know, I have not received infos about this vulnerability yet so I will contact them.
thank you for the almost-pull-request. i have added it to the recent beta version, can you test it please?
https://github.com/yellowtree/geoip-detect/wiki/Beta-TestingForum: Plugins
In reply to: [Geolocation IP Detection] Unclosed Bracket Somewhere in your codeI don’t see where the error is, please specify or annoate the screenshot.
Forum: Plugins
In reply to: [Geolocation IP Detection] Unclosed Bracket Somewhere in your codeWhere did you see the error message, is it a HTML error or JSON error, which kind of bracket is missing?
The trouble probably is that the plugin parses the comma char as special char. As “OH” should not be part of the city property anyways, I would move it to the mostSpecificSubdivision. Can you please test this beta version? I will release a new plugin version afterwards.
https://github.com/yellowtree/geoip-detect/wiki/Beta-Testing#ftp-methodThe correct shortcode to use is now:
[geoip_detect2_show_if country="US" city="Columbus" most_specific_subdivision="OH"]Welcome to Columbus, OH[/geoip_detect2_show_if]add_filter('geoip_detect2_client_ip', function($ip) {
if (isset($_REQUEST['X-Real-IP']) && geoip_detect_is_ip($_REQUEST['X-Real-IP']) ) {
return geoip_detect_normalize_ip($_REQUEST['X-Real-IP']);
}
return $ip;
});Add this code to your theme’s function.php or similar. Does this work for you?
Caveat: other clients will be able to easily forge this header. That’s why there is a whitelist for reverse proxies – do you know the IP range of the GTranslate servers?
Forum: Plugins
In reply to: [Geolocation IP Detection] What is the best plugin for location detection?Do you mean which data source you should choose?
https://github.com/yellowtree/geoip-detect/wiki/FAQ#which-data-source-should-i-choose
Good question, probably there is, but they don’t communicate such a limit so it should be high enough that normally you won’t be able to tell. You could ask the service provider: https://hostip.info/
About you second question, incompatibilities with other plugins that use the Maxmind data – yes sometimes that poses problems, that’s true … your best bet is to test it if it works or not. If it works for your IP it will work for other IPs, too, and will continue to work at least until one of the plugins decides to upgrade the Maxmind libraries …
Forum: Plugins
In reply to: [Geolocation IP Detection] Response timeYes if you need the Geo lookup only on some pages, you can enqueue the JS file on only those pages (e.g. via shortcode).
Forum: Plugins
In reply to: [Geolocation IP Detection] Polylang Pro integrationYes this is possible. Please contact me at [email protected] as I am not allowed to give paid support on the ww.wp.xz.cn Forums.