This extension provide support for geolocation per IP address. It does not contain IP data within the installer, but rather a link to install them from the author - MaxMind.com. If you decide to use the GeoIP lite database, you must comply with MaxMind license.
All files in this extension are licensed under GPL license and are free to include in your extensions.
GeoLocator for Joomla is compatible with Joomla 1.5, Joomla 1.6, Joomla 1.7 and Joomla 2.5 and Joomla 3.x
We recommend to use this extension together with our flagship components One Page Checkout for Virtuemart 1 or 2 in case you do international shipping.
Direct download: com_geolocator.zip (Joomla 1.5 to 2.5)
New Version avaialable for Joomla 2.5 and Joomla 3.x
Download com_geolocator_istraxx_rupostel_for_25_35.zip (Joomla 2.5 to 3.5)
Version for Joomla 3.x was prepared with Istraxx - Max Milbers (Virtuemart Core Team Leader)
This extension is an installer for MaxMind GeoIP Light Country database. It is focused on 3rd party extensions which require Geo Data by IP address.
This extension does not bring any functionality to the web administrator and it's only function is to provide programatical and database interface for Geo Data.
It creates a table #__geodata with IP ranges and country codes. It is optimized to install with ajax and with compatibility in mind.
USAGE from your extensions:
include_once(JPATH_SITE.DS.'administrator'.DS.'components'.DS.'com_geolocator'.DS.'assets'.DS.'helper.php');
if (class_exists('geoHelper'))
echo 'You are from: '.geoHelper::getCountry();
Updated installer and a bug in the helper file for ip2long (30.3.2012)
We recommend to use this plugin together with our One Page Checkout and Default currency selector plugin for VirtueMart 1.1.x.
- it adds a default country according to IP address to One Page Checkout
Updated a bug and installer on 12.May 2013 - added support when used within Joomla! installed in a subdirectory. Thank to Sean.
Comments
We are also using this component to block specific coutries from accessing certains sites due to spam protection directly from index.php of the Joomla site.
It worked for me in earlier versions of joomla but....i have no idea why doesnt it work.
I made a simple module, in it, i put the code:
include_once(JPATH_SITE.DS.'administrator'.DS.'components'.DS.'com_geolocator'.DS.'assets'.DS.'helper.php');
if (class_exists(' geoHelper'))
echo 'You are from: '.geoHelper::getCountry();
and it just writes "You are from: "
thanks for advices
RSS feed for comments to this post