Linux 软件免费装

Visitor Country

开发者 Izhaki
更新时间 2013年5月27日 20:07
PHP版本: 3.2 及以上
WordPress版本: 3.5.1
版权: GPLv2 or later
版权网址: 版权信息

标签

analysis visitor location country geo

下载

1.0 0.8 1.0.1 1.1

详情介绍:

This plugin adds support for displaying (using shortcodes) or enquiring (using PHP or JS) the visitor's country. See it working here. It uses MaxMind's GeoIP data file, which is around 1.4 MB in size and is included with the plugin. The file is free, updated every month, and has the claimed accuracy of 99.5%; GitHub Repository is here. The plugin retrieves: The shortcodes are: The javascript variables are: And the PHP functions: global $VisitorCountry; if ( isset($VisitorCountry) ) { echo $VisitorCountry->GetIP(); echo $VisitorCountry->GetCode(); echo $VisitorCountry->GetName(); } Please leave suggestions, comments and bug report at the plugin's website. Also, please let it be known if the plugin works on versions older than 3.2 - I simply didn't have a way to check. This product includes GeoLite data created by MaxMind, available from http://www.maxmind.com/app/geolitecountry

安装:

  1. Upload the visitor-country folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress

常见问题:

Is there any database to install?

No.

Does the plugin access an external site?

No. It uses local database (dat file).

Can the plugin retrieve the city of the visitor, what about latitude and longtitude information?

No. The accuracy of MaxMind's GeoLite City database is far from perfect; combined with a much bigger database, there's no much point supporting it in this plugin. Shall there be such a demand, a separate city plugin will be written.

Does the plugin support IP6 addresses?

Not at the moment, but this will be implemented shall there be a demand.

How do I update the database?

The plugin will go up in version periodically to reflect MaxMind's new database. You can always update it manually by downloading it from here, uncompress, and upload to the plugin directory.

更新日志:

1.1 Fixed Proxy issue GeoIP DB updated to May 2013 1.0 0.8