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:

  1. Copy the directory rjs-geoip and all it’s contents to the WordPress plugins directory on your server, (%WORDPRESS PATH%/wp-contents/plugins/).
  2. Download and copy the latest version of the GeoIP database into the rjs-geoip directory.
  3. You will then need to activate the plugin from the WordPress administration plugins page.
  4. Adjust the options as necessary.

Usage:

  1. 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
        }
    }
    ?>

1 Comment

  1. Fabricio Vasselai Comment posted Friday, June 5, 2009:

    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?

Leave a comment

 
Rodney's 404 Handler Plugin plugged in.
Rodney's Adsense-Deluxe Add ons plugged in.
Rodney's Bread Crumbs plugged in.
Rodney's Edupage Email Import plugged in.
Rodney's Hierarchy for shupe.ca plugged in.
Rodney's Meta Tags plugged in.
Rodney's Most Recent plugged in.
Rodney's Permalink Override plugged in.
Rodney's Widget for the FAlbum. plugged in.
Using Yaletown Theme for Wordpress.