{"id":47493,"date":"2012-03-20T23:23:50","date_gmt":"2012-03-20T23:23:50","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/visitor-country\/"},"modified":"2013-05-27T12:07:28","modified_gmt":"2013-05-27T12:07:28","slug":"visitor-country","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/visitor-country\/","author":9144426,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1","stable_tag":"1.1","tested":"3.5.2","requires":"3.2","requires_php":"","requires_plugins":"","header_name":"Visitor Country","header_author":"Izhaki","header_description":"","assets_banners_color":"","last_updated":"2013-05-27 12:07:28","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/gefri.org\/misc\/wordpress\/visitor-country","header_author_uri":"","rating":5,"author_block_rating":0,"active_installs":70,"downloads":5363,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"3"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.8","1.0","1.0.1","1.1"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[1108,3751,2591,2215,1502],"plugin_category":[49],"plugin_contributors":[84546],"plugin_business_model":[],"class_list":["post-47493","plugin","type-plugin","status-closed","hentry","plugin_tags-analysis","plugin_tags-country","plugin_tags-geo","plugin_tags-location","plugin_tags-visitor","plugin_category-maps-and-location","plugin_contributors-izhaki","plugin_committers-izhaki"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/visitor-country.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin adds support for displaying (using shortcodes) or enquiring (using PHP or JS) the visitor's country. See it working <a href=\"http:\/\/gefri.org\/misc\/wordpress\/visitor-country\">here<\/a>.<\/p>\n\n<p>It uses <a href=\"http:\/\/www.maxmind.com\/app\/geolitecountry\">MaxMind's GeoIP data file<\/a>, 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%;<\/p>\n\n<p>GitHub Repository is <a href=\"https:\/\/github.com\/Izhaki\/Visitor-Country\">here<\/a>.<\/p>\n\n<p>The plugin retrieves:<\/p>\n\n<ul>\n<li>The visitor's IP<\/li>\n<li>The visitor's country name<\/li>\n<li>The visitor's country code (2 letter ISO 3166)<\/li>\n<\/ul>\n\n<p>The shortcodes are:<\/p>\n\n<ul>\n<li><code>[VisitorCountry-IP]<\/code><\/li>\n<li><code>[VisitorCountry-Code]<\/code><\/li>\n<li><code>[VisitorCountry-Name]<\/code><\/li>\n<\/ul>\n\n<p>The javascript variables are:<\/p>\n\n<ul>\n<li><code>VisitorCountry.ip<\/code><\/li>\n<li><code>VisitorCountry.code<\/code><\/li>\n<li><code>VisitorCountry.name<\/code><\/li>\n<\/ul>\n\n<p>And the PHP functions:<\/p>\n\n<pre><code>global $VisitorCountry;\nif ( isset($VisitorCountry) )\n{\n    echo $VisitorCountry-&gt;GetIP();    \n    echo $VisitorCountry-&gt;GetCode();\n    echo $VisitorCountry-&gt;GetName();        \n}\n<\/code><\/pre>\n\n<p>Please leave suggestions, comments and bug report at <a href=\"http:\/\/gefri.org\/misc\/wordpress\/visitor-country\">the plugin's website<\/a>.<\/p>\n\n<p>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.<\/p>\n\n\n\n<p>This product includes GeoLite data created by MaxMind, available from http:\/\/www.maxmind.com\/app\/geolitecountry<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>visitor-country<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Is there any database to install?<\/dt>\n<dd><p>No.<\/p><\/dd>\n<dt>Does the plugin access an external site?<\/dt>\n<dd><p>No. It uses local database (dat file).<\/p><\/dd>\n<dt>Can the plugin retrieve the city of the visitor, what about latitude and longtitude information?<\/dt>\n<dd><p>No. The accuracy of <a href=\"http:\/\/www.maxmind.com\/app\/geolitecity\">MaxMind's GeoLite City database<\/a> 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.<\/p><\/dd>\n<dt>Does the plugin support IP6 addresses?<\/dt>\n<dd><p>Not at the moment, but this will be implemented shall there be a demand.<\/p><\/dd>\n<dt>How do I update the database?<\/dt>\n<dd><p>The plugin will go up in version periodically to reflect MaxMind's new database. You can always update it manually by <a href=\"http:\/\/geolite.maxmind.com\/download\/geoip\/database\/GeoLiteCountry\/GeoIP.dat.gz\">downloading it from here<\/a>, uncompress, and upload to the plugin directory.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1<\/h4>\n\n<p>Fixed Proxy issue\nGeoIP DB updated to May 2013<\/p>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>MaxMind database update<\/li>\n<li>Improvement to ip detection to include intranet and proxy (Thanks Ade!)<\/li>\n<\/ul>\n\n<h4>0.8<\/h4>\n\n<ul>\n<li>Original release<\/li>\n<\/ul>","raw_excerpt":"A plugin that retrieves the visitor&#039;s country information (using MaxMind&#039;s GeoIP local dat file)","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/47493","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=47493"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/izhaki"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=47493"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=47493"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=47493"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=47493"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=47493"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=47493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}