Linux 软件免费装

Region Detect

开发者 joebrewer
更新时间 2013年10月18日 06:23
捐献地址: 去捐款
PHP版本: 3.1.2 及以上
WordPress版本: 3.6.1

标签

localisation localization geolocation country detection

下载

1.00.00 1.01.00 1.02.00 1.02.01 1.02.02 1.02.03 1.02.04 1.02.05

详情介绍:

Region detect is a plugin for Wordpress that detects the country that the current visitor is browsing from. It can display the country to the user; something like: Hello visitor from Spain! or display a flag of the country. The plugin also makes the ISO 3166-1 country code and country name avaliable to other plugins.

安装:

  1. Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation.
  2. Activate the plugin through the 'Plugins' page.
  3. Copy the MaxMind country database to the plugin folder, or add your MaxMind license key to the plugin admin panel.
  4. If you are using the web service enable caching and select the cache length that you need.
  5. Use %%COUNTRYCODE%% or %%COUNTRYNAME%% in your posts to display the two character country code or country name respectively.

升级注意事项:

1.00.00 This is the initial version. 1.01.00 This version adds the ability to set the country from the url. Deactivate and reactivate the plugin to upgrade. 1.02.00 Fixes a bug with the cache and added all country codes from the ISO 3166-1 set. Deactivate and reactive the plugin to upgrade. 1.02.05
  • Made plugin multisite compliant

常见问题:

Do I have to pay for the MaxMind database?

No, MaxMind offer a free version of the database. However the paid for version is more accurate.

I am a wordpress developer and want to access the country code or name in my code. How do I do that?

Easy :-) Just declare the global variables $rdISO3166_1 or $rdCountryName in your code and away you go.

更新日志:

1.00.00 1.01.00 1.02.00 1.02.01 1.02.02 1.02.04 1.02.05