Benjamin Pick
Forum Replies Created
-
Forum: Plugins
In reply to: [Geolocation IP Detection] How to Nest GeoIP with Other ShortcodesNesting is possible without problem:
[geoip_detect2_show_if country="US"][TheChamp-Login title=”Only visible to US users”][/geoip_detect2_show_if]
- This reply was modified 3 years, 8 months ago by Benjamin Pick.
Forum: Plugins
In reply to: [Geolocation IP Detection] Problem with correct IP GeolocationI don’t think an intermediate router is changing the result. It is more likely that either the reverse proxy detection is configured incorrectly, you are using a page cache, or the data in your data source is incorrect.
Try this troubleshooting guide:
https://github.com/yellowtree/geoip-detect/wiki/TroubleshootingYes and No.
You would still need a wordpress install for the AJAX requests, maybe a different wordpress install or so. This advanced use case is possible to set up via the wordpress filter
geoip_detect2_ajax_localize_script_data
.You might even be able to use a different domain with the filter
geoip_detect2_ajax_allowed_domains
and additional CORS headers.But yes this requires some PHP coding.
Forum: Plugins
In reply to: [Geolocation IP Detection] Country Flag in CF7Yes I will make it work for the next version of the plugin …
Forum: Plugins
In reply to: [Geolocation IP Detection] Country Flag in CF7Could you use the flag unicode string? ????
Try to copy this flag into the email body.This might be simpler as including an svg is not supported by most email clients.
Now it shows the right country, and the AJAX request has the header “cf-cache-status: bypass”, that’s correct.
When testing, it’s important to use private mode or clear all cookies, because the result of the detected country is cached in the user’s browser (by default for one week).
These two options do 2 different things. If you use AJAX mode, you only need the latter option, and it adds the body class on every page where the frontend JS is loaded. Basically the sub-options are there to fine-tune performance, checking them all should be the default (I should change that for new installs).
No it’s not correct yet …
Did you purge the APO cache after installing the new version?Forum: Plugins
In reply to: [Geolocation IP Detection] sidebar appearanceCategory as condition – you will have to find a different plugin that has this condition as a shortcode, and then wrap it around the shortcode of this plugin.
It’s released as 4.2.0-beta6 now …
https://github.com/yellowtree/geoip-detect/wiki/Beta-Testing
Oh the help says, I can add the following header to disable APO for the AJAX requests:
header( ‘cf-edge-cache: no-cache’ )
I will add it to beta and let you know.
No idea how APO works.
Would it be an option to use the cloudflare CDN as datasource?Also the sub-settings …
Forum: Plugins
In reply to: [Geolocation IP Detection] Your monthly usage limit has been reachedWhich datasource are you using? The plugin itself does not have a usage limit, so this notice is from IPstack or Maxmind or so. You should see a notice when you log in into their backend.
Forum: Plugins
In reply to: [Geolocation IP Detection] No information has been found for the IP…Try known IPs such as 8.8.8.8 …
Are you using AJAX mode? AJAX mode should be page cache safe.