The Geo Location module provides 2 new Smarty functions for your use in templates:
{jrGeo_location} - get location information for an IP Address {jrGeo_distance} - get the physical distance between 2 Ip Addresses
Important! This module requires you to properly upload a Free GeoLite City Database file before it can be used! See Geo Location - Global Config for more information.
{jrGeo_location}
Function
{jrGeo_location}
parameter
type
default
required
description
ip
string
-
on
the ip address of the location you are trying to locate
template
string
-
off
the output format of the returned information
assign
string
-
off
if you want the output assigned to a variable, put the name of the variable.
Example Usage:
Get Location for viewing user (using defaults):
{jrGeo_location}
Get Location for viewing user (using inline template):
In your System Check tool in the ACP you might have noticed a warning "Install the free Geo Location module from the marketplace" and are wondering why you are being requested to install it.
screenshot of the System Check warning in the ACP
The Geo Location module gets a user's physical location based on their IP Address. This is used by the Mail Core when generating statistics for the Newsletter module (and other modules that can request campaign support).
If you plan on using the Newsletter module installing this module will help you gather more interesting stats about the locations your newsletters are going out to.
screenshot of the View Stats button in the Newsletter Browser
screenshot of the location data displayed on the newsletter stats map