>
Download This Plugin | |
Download Elegant Themes | |
Name | Visitor Country |
Version | 1.1 |
Author | Izhaki |
Rating | 100 |
Last updated | 2013-05-27 12:07:00 |
Downloads |
4917
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
Visitor Country plugin added 4 bytes of resources to the Home page and 6 bytes of resources to the sample Post page.
Visitor Country plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! Visitor Country plugin ads no tables to your Wordpress blog database.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:
[VisitorCountry-IP]
[VisitorCountry-Code]
[VisitorCountry-Name]
The javascript variables are:
VisitorCountry.ip
VisitorCountry.code
VisitorCountry.name
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