Geotargeting by GeoIP integration
This modification is in the archives.
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:
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:
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. |