Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Digital Point User Map Details »»
Digital Point User Map
Version: 1.0.3, by digitalpoint digitalpoint is offline
Developer Last Online: May 2016 Show Printable Version Email this Page

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.
  • Upgraded to Google Maps API v3.
You can see a live version in action here:
http://forums.digitalpoint.com/usermap.php

Download Now

File Type: zip digitalpoint_usermap-103b.zip (10.9 KB, 701 views)

Screenshots

File Type: jpg world.jpg (150.3 KB, 0 views)
File Type: jpg europe.jpg (153.5 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
3 благодарности(ей) от:
GhoHan, paulket, Trangalleiro

Comments
  #102  
Old 10-16-2010, 01:44 PM
joeldaviddc joeldaviddc is offline
 
Join Date: Oct 2006
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by digitalpoint View Post
Well, depending on the operating system you are running for your server, there probably is a pre-packaged RPM installer for it.

I just compiled mine from source...

Install the libraries by downloading and compiling as per the instructions here:
http://www.maxmind.com/app/c

Then download and compile/install the PHP module for it:
http://pecl.php.net/package/geoip

For my installation, the GeoCity .dat files go into /usr/local/share/GeoIP/ (I think that's the default... don't think I would have changed the path for them).

You can download the .dat files from:
http://geolite.maxmind.com/download/...y/GeoIP.dat.gz
http://geolite.maxmind.com/download/...iteCity.dat.gz

i have donwloaded the geolite city...



Quote:
Originally Posted by docvader View Post
Boko, that GeoLiteCity.dat file needs to be in usr/local/share/ directory, and it needs to be renamed to GeoIPCity.dat.
i have renamed it...

Quote:
Originally Posted by joeldaviddc View Post
instaled http://pecl.php.net/package/geoip

instaled http://www.maxmind.com/app/c

geoip on phpinfo.


no, errors en error.log... but no map in screen,

firebug message:

syntax error
[Break on this error] map.setCenter(new google.maps.LatLng(, ));\n

usermap.php (line 353)


firebug details:
PHP Code:
 case "india":
345 map.setCenter(new google.maps.LatLng(22.35007680.859375));
346 map.setZoom(4);
347 break;
348 case "oceania":
349 map.setCenter(new google.maps.LatLng(-23.805450144.140625));
350 map.setZoom(3);
351 break;
352 case "me":
353 map.setCenter(new google.maps.LatLng(, ));
354 map.setZoom(9);
355 break;
356 default:
357 map.setCenter(new google.maps.LatLng(24, -10));
358 map.setZoom(2);
359 break; 
then working...

solved...
Reply With Quote
  #103  
Old 10-18-2010, 03:41 PM
junaid junaid is offline
 
Join Date: Oct 2005
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My website is hosted shared host work fine
http://www.maldiviandigital.com/usermap.php

If u want ant info send PM
Reply With Quote
  #104  
Old 10-19-2010, 06:06 PM
Guest191216
Guest
 
Posts: n/a
Default

Hi,
my provider stated I do have "mod_geoip" module, not GeoIP PHP extension (.
Is there any way to get the map working ?
(I assume - NO- but still hope ...)

txs
KH
Reply With Quote
  #105  
Old 10-20-2010, 06:37 PM
tpearl5's Avatar
tpearl5 tpearl5 is offline
 
Join Date: Nov 2001
Location: PA
Posts: 1,014
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm seeing that all guests are showing as spiders. Any ideas?
Reply With Quote
  #106  
Old 12-02-2010, 11:18 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just installed this and have downloaded the files and uploaded them to there server. I am getting the following errors now and no map:

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

Any ideas what is happening?
Reply With Quote
  #107  
Old 12-02-2010, 11:21 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Figured it out. Apparently, I was not logged in when the errors were shown. Do I need to turn it off for guests then? Apparently, if there are no users and only guests on the site, is when the error occurs.
Reply With Quote
  #108  
Old 12-02-2010, 03:08 PM
digitalpoint's Avatar
digitalpoint digitalpoint is offline
 
Join Date: Mar 2004
Location: San Diego, California
Posts: 502
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It should be fine if guests can/can't view as long as at least you have a user online.
Reply With Quote
  #109  
Old 12-02-2010, 03:18 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by digitalpoint View Post
It should be fine if guests can/can't view as long as at least you have a user online.
I have the links only show to members now. Since I am still working on the site, there are times I come in as a guest and if there are no spiders or registered users online at the time, I get the error. There are quite a few smaller sites that run into that every now and then.
Reply With Quote
  #110  
Old 12-09-2010, 10:40 PM
reefland reefland is offline
 
Join Date: Jan 2002
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey digitalpoint,

I just tried to get this rolling on my new server today and am not having any luck.

GeoIP is installed and can be seen here (http://www.nationofblue.com/info.php)
Product is imported and USERMAP template is installed.
The page loads but there is no Google Map. No errors are displayed anywhere.
Tried to change $_SERVER['REMOTE_ADDR'] to IPADDRESS at the bottom of usermap.php as you mentioned previously with no different results.

http://www.nationofblue.com/usermap.php

Any thoughts?
Reply With Quote
  #111  
Old 12-09-2010, 11:38 PM
reefland reefland is offline
 
Join Date: Jan 2002
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey digitalpoint, please ignore my previous post. The problem was that the usermap.css was not getting added to my styles directory in vbulletin_css. I am not sure why but manually creating it solved my problem.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:38 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05924 seconds
  • Memory Usage 2,352KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (3)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (10)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete