Back to vBulletin 3.5 Add-ons

Geotargeting by GeoIP integration
Mod Version: 1.0.2, by The M.I.P.

This modification is in the archives.
vB Version: 3.5.x Rating: (0 vote - 0 average) Installs: 19
Released: 03 Feb 2006 Last Update: 03 Feb 2006 Downloads: 124
Not Supported Uses Plugins Additional Files  

This plugin uses https://www.maxmind.com/app/geoip_country to look up a visitor's country depending on his IP-address.
You may use this e.g. to display specific content or advertisements depending on the geographical location of your visitors.

Installation:
  1. Download https://www.maxmind.com/download/geoip/api/php/geoip.inc PHP module and save it in your forum's includes/ directory.
  2. Download the latest https://www.maxmind.com/app/geoip_country GeoIP.dat.gz, uncompress it (gunzip or evil ones like WinRAR) and save the uncompressed file under includes/GeoIP.dat (you can change the location of this file in your vBulletin Options).
    You should update this file once in a while.
  3. Make sure to have plugin system enabled.
  4. Install product mip-geoiptracker-1.0.xml
Usage:
Use $bbuserinfo[country] (or $vbulletin->userinfo[country]) in your code, your templates, etc.
Have a look on the plugin sources and on https://www.maxmind.com/app/php if you're interested in getting infos other than the country code.

Changes:
  • 1.0.1 --> 1.0.2
    Fixed bug with geoipdatfile setting not being included in product.
  • 1.0 --> 1.0.1
    Basic caching is done using cookies.

This plugin is likely to work also with commercial versions of Maxmind GeoIP databases, which would - with minor tweaks - allow resolving a user's location down to region and even city levels.

On high-traffic sites, I recommend using GeoIP PHP extension or Apache module instead of this plain PHP code.

Please note that I don't give free support for this plugin, as the vBulletin part is too simple and the rest is https://www.maxmind.com/download/geoip/api/php/geoip.inc.

Download

This modification is archived and cannot be downloaded.


vblts.ru supports vBulletin®, 2022-2024