The Arcive of vBulletin Modifications Site. |
|
Geotargeting by GeoIP integration Details »»
|
|||||||||||||||||||||||||
This plugin uses Maxmind's GeoIP database 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 GeoIP PHP API 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 code from Maxmind. Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Thanks.. Installed
|
|
#4
|
||||
|
||||
|
sounds nice...will it be a reason of heavy server load?
|
|
#5
|
||||
|
||||
|
Quote:
It's a non-intrusive plugin, so just give it a try. The Maxmind guys basically included an option to use shared memory on Un*x machines (requires PHP with --enable-shmop), so that file i/o can be reduced and the db is kept in memory only once. While this is a good idea in principle, its implementation is not unproblematic (e.g. because there's only a fixed shm key). So I did not use it in this plugin - but feel free to extend it. If you need high-performance geotargeting, you'd be better off with using a different approach like GeoIP Apache module. |
|
#6
|
||||
|
||||
|
<font color="#15a018">* Aftermath installs</font>
|
|
#7
|
|||
|
|||
|
Nice one
but i could be a complete modification that shows Country code or flag is postbit(legacy) and member profile area... |
|
#8
|
|||
|
|||
|
where is the best place to have this on? in what template?
|
|
#9
|
|||
|
|||
|
Quote:
|
|
#10
|
||||
|
||||
|
Quote:
The perfect use is to display banner ads depending on the geographic location of a visitor or to show location-specific content. |
![]() |
|
|