Benjamin Pick
Forum Replies Created
-
Well, either using JS, yes, or rendering it in the HTML, depending on how the Form is generated.
I had to think a little longer how I want to treat requests like this. I am used to bug reports in this forum, not “help me implement my requirements”. While I acknowledge that there is a grey area in-between, your request seem to be of the second category. Thing is, I don’t get paid for maintaining this extension and even less for doing client support.
So if you are not able to implement it yourself, you should look at hiring a coder for it. There are platforms that can help you find people even for such small tasks like this.
Alternatively, I am willing to help you if you are willing to donate for the charity outlined in the FAQ. But then this is fundraising, not commercial work, so depending on the final scope and how much time I have left it may or may not be done within the next few weeks.
Thanks for your understanding.
Forum: Plugins
In reply to: [Geolocation IP Detection] Different content on page for different cityLook for the names of the attributes in the backend or/and in the Maxmind documentation (see FAQ).
To get the correct code/id you can use the geoname_id.
Forum: Plugins
In reply to: [Geolocation IP Detection] Will this work with multisite?Multisite aside: yes this scenario is possible but will require some developer working on this. In principle, you simply use the plugin to choose a website URL where to redirect to, by comparing the detected lat/lon-Values to pre-known points (or areas). You will also need to consider that the free dataset is somewhat incomplete/inaccurate so what if the IP only gives you the country and so on.
Which issue arise from using this plugin on multisite: I never tried.
Forum: Plugins
In reply to: [Geolocation IP Detection] City not detected on new version 2.5.2I still suspect that this is because of an update of the database (which happens automatically, once per month), not of the plugin. If you like to prove me wrong, please do! Go to https://www.ads-software.com/plugins/geoip-detect/developers/, download your previous version and replace the extracted folder into wp-content/plugins. Then the database is still the same but the plugin is back on the old version, so after your theory the city should be back.
My theory is that Maxmind somehow reduced the city accuracy for the free data. 20% correct compared to 73 % is a lot, in my country (Germany) it’s not as drastic but still. Of course maybe they didn’t do it on purpose, maybe this is due to hosting providers selling and swapping IP spaces a lot, because IPv4 is rather saturated.
Forum: Plugins
In reply to: [Geolocation IP Detection] City not detected on new version 2.5.2Also check the accuracy stats for your country on:
https://www.maxmind.com/en/geoip2-city-database-accuracy
You need to click on the country name to see the paid/free comparison.Forum: Plugins
In reply to: [Geolocation IP Detection] City not detected on new version 2.5.2You can use the IP “8.8.8.8” for testing – this is a google server and should show “Mountain View” as city.
Forum: Plugins
In reply to: [Geolocation IP Detection] City not detected on new version 2.5.2Which version did you use before? Which datasource are you using? The /demo uses the precision data so they might be more precise than the free data on that.
Forum: Plugins
In reply to: [Contact Form 7 Select Box Editor Button] 2 recipients in one formHm this is difficult. Even from a user perspective : it is a multi-step process where the user must know “what comes next”.
Oh no, now I see: actually only one is filled out depending from where you come? Well then there is a simple workaround: use 2 different forms on 2 different pages (that probably look similar) ??
Forum: Plugins
In reply to: [Geolocation IP Detection] How do I just display the IP address itself?I have implemented the shortcodes, could you beta-test it?
https://github.com/yellowtree/wp-geoip-detect/archive/master.zip
The new shortcode is
[geoip_detect2_get_client_ip]
Sounds interesting, as if the database file was deleted but not re-downloaded. What do the other two fields say?
Database file: wp-content/uploads/GeoLite2-Country.mmdb Last updated: (Date)
Does the specified file exist? Is it readable (file permissions)?
Then, try a manual update. Go to the options page and click “Update now” – this should fix it. But I wonder what went wrong in the first place, maybe the cron script that was supposed to update the db aborted at some point.
Forum: Plugins
In reply to: [Geolocation IP Detection] How do I just display the IP address itself?Good point – I will add one in the next version.
Forum: Plugins
In reply to: [Geolocation IP Detection] Body Class Not WorkingMy suspicion: are you using the hostinfo-Datasource? It is really incomplete. Try the Maxmind “Automatic download”.
As an example, 31.193.134.104 gives nothing in hostinfo, but ‘GB’ in Maxmind’s free database.
Forum: Plugins
In reply to: [Geolocation IP Detection] Upgrade to 2.5.0 failed to re-activate pluginYes the upgrade inadvertly changed the data source, and the hostinfo-Datasource has a lot of “empty spots” … Just released a fixed version.
However it is strange that you experience the “plugin does not reactivate” so often, if I remember correctly you’ve reported similar problems before but no one else did. Do you upgrade via FTP or the WordPress screen?
Do you use a caching plugin?
Forum: Plugins
In reply to: [Geolocation IP Detection] Country only showing part of the timeWell, I had to put hostip.info as default to comply with the guidelines of this Plugin Repository (GPL only). The Maxmind sources are more complete, yes.