1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Digital Point User Map

Discussion in 'Add-on Releases [Archive]' started by digitalpoint, Feb 7, 2011.

Thread Status:
Not open for further replies.
  1. digitalpoint

    digitalpoint Well-Known Member

    I ported one of my long-time vBulletin addons from 5 1/2 years ago to XenForo, so here it is...

    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 5 1/2 years ago, and decided to port it to XenForo yesterday.

    • Put the contents of the js directory into your XenForo js directory.
    • Put the contents of the library directory into your XenForo library directory.
    • Install the addon_digitalpointUserMap.xml file in your Admin Control Panel -> Install Add-on option.
    • Important! - this uses the free GeoIP PHP extension, so you must have it installed on your server in order for it to work.
    • Uses the XenForo data_registry so it does not repeat GeoIP queries unnecessarily.
    You can see a live version (although it's the vBulletin version) in action here:

    usermap.jpg usermap_europe.jpg

    Attached Files:

    Tim, superfalter, tigapoin and 32 others like this.
  2. Anthony Parsons

    Anthony Parsons Well-Known Member

    Well welcome to xenforo DP... nice mod.
  3. steven s

    steven s Well-Known Member

    You did that! I loved that mod.
  4. ragtek

    ragtek Guest

    Twitter sucks for this, so here we go^^

    Change the router to:

    Then you don't need
    digitalpoint likes this.
  5. yavuz

    yavuz Well-Known Member

    Looks like an awesome add-on. Will give it a try, thanks digitalpoint.
  6. digitalpoint

    digitalpoint Well-Known Member

    Ah... that was the magic I was missing. I figured there *had* to be a better way to do it, I was just too tired to go digging deeper. :) Thx
  7. Cory Booth

    Cory Booth Well-Known Member

    Thanks for the add-on... Looks awesome! Might I ask, there was a mapping addon on VB with the ability for users to submit points on the map and comments.
    I think it was "graveyarded" back in VB3.5 or so....
    I could REALLY use something like that!
    Any plans for this mapping utility going forward?
  8. Wuebit

    Wuebit Well-Known Member

    Thanks DP will check it out :)
  9. digitalpoint

    digitalpoint Well-Known Member

    Nah... no plans to make a system where users can input their own location. I'm a minimalist, so making something always work without any interaction from the end users is preferable in my opinion.

    There are a couple reasons:
    • Users can enter fake (or just accidentally wrong) locations.
    • It kind of becomes a privacy issue. Even though the user entered their location and opted into it, do you really want to show people exactly where users are attached to their username?
    • If you only show online users it would be pretty bare since the majority of users wouldn't bother to enter their location.
    • If you showed all users, it would be overloaded and kind of pointless.
    • I like things that just "work magically" and don't require end users to do anything for it to work (oh yeah, I said that... hehe)
    Jeremy likes this.
  10. bogus

    bogus Guest

    Nice Addon i really would like to use. Unfortunately i am using a webspace where i cant install any extras.
  11. RobParker

    RobParker Well-Known Member

    What sort of load would this put on the server? It looks very cool but worried it might be quite intensive.
  12. digitalpoint

    digitalpoint Well-Known Member

    Load is minimal... GeoIP does not hit the database or make external calls to do the location query and a normal server should be able to do 20,000 lookups a second. You can find a benchmarking table from years ago (it would be faster now if you use a server made in the last 5 years since those numbers are from a 1.7Ghz Celeron haha) here: http://www.maxmind.com/app/benchmark We are using the C API (the first section of the table).

    It also internally caches all lookups so when a user goes to the page, it only needs to lookup user locations that are new since the last time someone visited the page.

    So worst case scenario would be if you had like 10,000 users online and a crappy server, it might take 0.5 seconds to lookup everyone if no one had visited the page in the last hour. For anyone else (or a reload), it would probably take 0.1 seconds since it's just pulling everything from the cache other than new users that came online in your site since the last time someone looked.
    RobParker likes this.
  13. RobParker

    RobParker Well-Known Member

    In that case I'll get in touch with our server admin and ask them to install GeoIP :)
  14. Xarcell

    Xarcell Well-Known Member

    I'v e been waiting for something like this, although I have a feature request. Any chance the user can have the option "not to show" their location on the map?
  15. digitalpoint

    digitalpoint Well-Known Member

    Not really sure how useful that would be since it intentionally does not expose what user is represented by which marker.
  16. Xarcell

    Xarcell Well-Known Member

    ahhhhh, I didn't realize. I seen a version that actually shows where a user lives. Yours is perfect as is. Thanks.
  17. fattony69

    fattony69 Well-Known Member

    Sorry I didn't get back to you. Been very busy, but it worked phenomenally. Didn't expect issues and didn't find anything wrong.
  18. Edrondol

    Edrondol Well-Known Member

    Neither of my servers have the PHP extension. Figures.
  19. Andy.N

    Andy.N Well-Known Member

    Can you make the tab under Member instead of on its own tab?
    faeronsayn likes this.
  20. dieketzer

    dieketzer Well-Known Member

    anyway to not highlight the admin red?
Thread Status:
Not open for further replies.

Share This Page