GeoIP Plugin
Download:
Download version 1.0.
If you find this plugin useful please donate to the author.
This plugin adds functionality for Maxmind.com GeoIP.
Revision History:
| version 1.0 | Original Release |
Installation:
- Copy the directory rjs-geoip and all it’s contents to the WordPress plugins directory on your server, (%WORDPRESS PATH%/wp-contents/plugins/).
- Download and copy the latest version of the GeoIP database into the rjs-geoip directory.
- You will then need to activate the plugin from the WordPress administration plugins page.
- Adjust the options as necessary.
Usage:
- The visitor_country function make GeoTargeting easy by using the following syntax:
Example:
<?php
if (is_callable('GeoIP', 'visitor_country')) {
$contry_code = GeoIP::visitor_country();
if($country_code == 'US') {
// Do Something
} else {
// Do Something Else
}
}
?>
Rodney










Dear,
I was very glad to find your plugin, as I was just wondering how to access GeoIP.dat from whithin the Wordpress. But unfortunattelly, your plugin doesn’t seem to work with my Wordpresss version (2.6.1), or at leat my pages are not loaded from you plugin invocation on.
Do you have any idea on what is happening? Is there any plans to update this great pieco of work that is your plugin?