Version: 1.0.3, by digitalpoint
Developer Last Online: May 2016
Category: Miscellaneous Hacks -
Version: 4.x.x
Rating:
Released: 06-08-2010
Last Update: 12-01-2011
Installs: 156
Uses Plugins
Additional Files
No support by the author.
About
This is a system for geo-locating your currently online users and plotting them on a world Google Map. You can click any of the pins for a link to pull up the user's location in Google Earth.
This is something I originally made almost 5 years ago. Now that I rewrote it for vBulletin 4, I wrapped it up as a product package and released it for the world to use.
Installation
Put the usermap.php file in your forum folder.
Install the product-digitalpoint_usermap.xml product under AdminCP -> Plugins & Products -> Manage Products -> Add/Import Product
Notes
Important! - this uses the free GeoIP PHP extension, so you must have it installed on your server in order for it to work.
Uses datastore cache so it does not repeat GeoIP queries unnecessarily.
Ok So I got the host to install this extension, the map thing appears now but it is a big white box and these errors are above it:
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in [path]/global.php(29) : eval()'d code on line 60
Warning: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /var/lib/GeoIP/GeoIPCity.dat. in [path]/usermap.php on line 100
Warning: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /var/lib/GeoIP/GeoIPCity.dat. in [path]/usermap.php on line 100
Warning: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /var/lib/GeoIP/GeoIPCity.dat. in [path]/usermap.php on line 100
Warning: Invalid argument supplied for foreach() in [path]/usermap.php on line 128
Warning: Invalid argument supplied for foreach() in [path]/usermap.php on line 133
Warning: Invalid argument supplied for foreach() in [path]/usermap.php on line 152
Warning: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /var/lib/GeoIP/GeoIPCity.dat. in [path]/usermap.php on line
Warning: geoip_record_by_name() [function.geoip-record-by-name]: Required database not available at /var/lib/GeoIP/GeoIPCity.dat. in [path]/usermap.php on line 100
Any ideas?
Did you by chance read the error message you posted?
Did you by chance read the error message you posted?
The hosting company said they had installed the database too, I even uploaded the database myself for them to move into the correct file. A day later they email me saying they put the DB in the wrong folder and it was working! So working fine now, I have two versions, One for when users registered and one which shows current online users.
Hi,
I did install the GeoIP extension is said to have installed in the VPS, but the map does not beep.
I wonder what could be the problem?
Link : http://www.turkiyemotosiklet.org/usermap.php
Not sure to be honest... you have so many JavaScript errors on that page (unrelated to the map) that the browser probably just stops executing all JS (which is what the map uses to run). The good news, is it looks like the GeoIP extension is installed properly because if you look at the source of the page, it has the long/lat that it *wants* to plot.
Not sure to be honest... you have so many JavaScript errors on that page (unrelated to the map) that the browser probably just stops executing all JS (which is what the map uses to run). The good news, is it looks like the GeoIP extension is installed properly because if you look at the source of the page, it has the long/lat that it *wants* to plot.
I have come a long way in my education and have revisited this mod. I was able to get it working by adding geoip.custom_directory = /var/lib/GeoIP/ to my php.ini.
One question if I may.. I would like this turned off for certain usergroups. It doesn't need to be an option for them, I would just need to know what code to add to stop the display of certain usergroups. Is that a possibility?