Benjamin Pick
Forum Replies Created
-
Forum: Plugins
In reply to: [Geolocation IP Detection] Can you provide a more complete example?Thank you very much for answering, dccharron!
I’ve added the shortcode into the FAQ and also removed the backticks.
Forum: Plugins
In reply to: [Geolocation IP Detection] Update cron job probably won't workFixed in 1.5. I also realised that the cron scheduling on plugin activation didn’t work, so this is now on showing the Plugin Page (under Tools).
Forum: Plugins
In reply to: [Geolocation IP Detection] Undefined index noticeFixed in Github.
Forum: Plugins
In reply to: [Geolocation IP Detection] Update cron job probably won't workYou seem to be right. I probably only checked the list of available schedules and weekly may have been provided by a different plugin. Will be fixed in the next release (see github).
Oh and I’d love if WordPress could do dependency management, i.e. that you could declare in your plugin “in order for this to work, I need that plugin” …
Benjamin
Forum: Plugins
In reply to: [Geolocation IP Detection] Can't "Activate" the pluginI can’t reproduce this and theremore need more details.
Does he give any PHP Error? Do you use at least PHP 5.3?
If there is no message whatsoever, maybe enable WP_DEBUG in wp-config.php, then try again.Forum: Plugins
In reply to: [Geolocation IP Detection] Data file detection problemActually this problem was already fixed in github, but I only released a new version today — sorry for the inconvenience.
The line you mentioned is there in order to allow other plugins (and in this case, updater.php) to modify this value. See:
http://codex.ww.wp.xz.cn/Function_Reference/apply_filtersForum: Plugins
In reply to: [Geolocation IP Detection] How do I use this?Oh BTW, currently you can find a bit more technical documentation in the comments of the plugin file
api.php.Forum: Plugins
In reply to: [Geolocation IP Detection] How do I use this?True, I should add some documentation. However right now I’m curious to the possible use casese of this plugin …
As for your case, you could write the following code in one of your template files:
$userInfo = geoip_detect_get_info_from_current_ip(); if ($userInfo && $userInfo->country_code == 'DE') echo 'Hallo!'I will add it into the FAQ, and someday write more documentation on our homepage.