Geo Controller have many globals. With globals you can easy get geo informations anywhere on your website. But first, let’s do some coding for the example:

// Check is Geo Controller active and running
if(class_exists('CF_Geoplugin')) :
    // Setup custom IP address
    $arguments = array(
         'ip' => '123.456.789.0', // Custom IP address (required)
         'base_currency' => 'EUR' // Base currency (optional)
    $geo = new CF_Geoplugin($arguments);
    // Display Geo Controller objects

On this example you will see complete object list from the Geo Controller what contain geoinformations for that specific IP address.

NOTE: If you are free user and not have unlimited license, this approach can cause fast lookup leak.

Was this page helpful?