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.

Member Map

Discussion in 'Add-on Releases [Archive]' started by Martin Aronsen, May 28, 2011.

  1. Martin Aronsen

    Martin Aronsen Active Member

    Member Map is an add-on that lets your member add their locations to a Google Map.

    This may look similar to User Map by digitalpoint, the difference being that your member will have to personally add them selves to the map.

    • Members can add their location to the map
    • Members can, when allowed, delete their location
    • Clicking on a map pointer, or a username in the sidebar opens a neat infobar at the bottom of the map
    • You can choose if you want to have this in its own tab, or as a sub-item in the members tab
    • Members can choose whether to use MarkerClusterer or not
    • Admin can turn off MarkerClusterer
    • HTML5 geolocation for auto-detecting the users location in the form
    • Upload the entire content of the "upload" folder inside the zip file to the root folder of your XenForo installation.
    • Import "addon-memberMap.xml" by going to ACP -> Install Add-Ons.
    • Alter the permissions for the user groups.
    Redo the first two steps in the installation block above.

    memberMap01.png memberMap02.png

    • 1.0.5
      • Compatibility fix for Xenforo 1.1 (Thanks to SheepCow for the fix)
    • 1.0.4
      • Height calculations did not change the height of the sidebar
      • And it also added anything added to the footer into the calculation, which wasn't necessary
    • 1.0.3
      • Calculating the height of the map using Javascript instead of fixed CSS values
      • Fixing missing location search results by changing to the geocoder built into Google Maps API
      • Hitting the enter key in the marker form now searches for the location, instead of automatically submitting the form (which in some cases caused you to delete your location, or throw a PHP error)
    • 1.0.2
      • Re-visited previously fixed bug
      • Added HTML5 geolocation
      • Added option for defining default zoom level
      • Added two missing phrases in the options page
      • Added a "Can view map" permission (Remember to set this if your upgrading!)
      • Changed colors in the CSS file to use existing style properties
      • If a user is using the map, it now shows in their online status.
    • 1.0.1
      • Map did not show if there were no markers to show.
    As this is my first official XenForo add-on, I appreciate all sort of feedback.

    Attached Files:

  2. Marc

    Marc Well-Known Member

    Martin Aronsen likes this.
  3. ragtek

    ragtek Guest

    3 people working on the same add-on idea^^

    As i saw what marc is doing, i started a similar project:D
    Marc and Martin Aronsen like this.
  4. Marc

    Marc Well-Known Member

    LMFAO!!! Does that mean I'll have 2 addons to look at to see what I coded extremely badly? LMAO
    Fuhrmann likes this.
  5. Martin Aronsen

    Martin Aronsen Active Member

    Not sure what to say.. Sorry? :p Glad you like it, though!

    Making this has been a great learning experience for me, and I'm sure it's been same same for you, which will come in good use in our next add-ons :)
    Marc likes this.
  6. ragtek

    ragtek Guest

    No, i'll don't finish mine.

    This one is great:)
    Marc likes this.
  7. Marc

    Marc Well-Known Member

    Dont need to say anythin m8 LOL ... Done a good job of it, and yeah I'll learnt a hell of a lot just through doing it. :) Gonna continue with mine because of the way markers are added through the location (ragtek that was def an excellent idea!).

    I'm actually quite glad you have released it when I've got to a point I want to finish mine to be honest, because I dont think I would have continued with it and learnt so much had this already existed. I would have simply added yours to my site :)
  8. Martin Aronsen

    Martin Aronsen Active Member

    Automatically adding the members to the map using the location set in their profile? I did think about that myself, but I didn't like the idea of "stealing" it from the members without their consent.
    And I don't trust Google's Geocode API, if you for example have a Canadian forum, and a member there have "London" as their location, the API will return London, UK, not London, Ontario, CA.
    Instead of doing that, I set the default value of the search field to their location.
    Anthony Parsons likes this.
  9. Marc

    Marc Well-Known Member

    Im of the opinion if they have put their location on the forum in the first place, then all I am doing is representing that location in another way. I have however noticed the same problem as yourself with regards to locating places using the Geocode API.
  10. principia

    principia Well-Known Member

    Nice one. (y)

    A permissions for guests would be fine.
    Ranger375 and Martin Aronsen like this.
  11. ragtek

    ragtek Guest

    Hm, it's not working for me if there are no entries.

    There's no map on the membermap page.

    Martin Aronsen likes this.
  12. Martin Aronsen

    Martin Aronsen Active Member

    Thanks for reporting it! It has now been fixed.
  13. mcatze

    mcatze Well-Known Member

    Interest in a german translation .. ;)

    Attached Files:

  14. Martin Aronsen

    Martin Aronsen Active Member

    I will add that in the next version :)
  15. ragtek

    ragtek Guest

    A permission for guests?:D

    Do you mean "can see membermap"?*g*
  16. ragtek

    ragtek Guest

    Some Feature Requests*g*

    1. (AS already requested) View Permissions for the map
    2. On click of the username, you show this window:
    IMHO it would be better to show the membercard

    3. Show on the userprofile also a small card in the sidebar with the distance viewing user - profile user

    4. allow users to create "extra entries".
    Make it possible to use this map for "everything" and not only user locations. (for example restaurant guide, doctors guide, etc...)
    erich37, ArnyVee and Marc like this.
  17. ragtek

    ragtek Guest

    last but not least: you' using in all templates phrases, but you've forgotten to create a phrase for the sessionactivity in the controller;)
        public static function getSessionActivityDetailsForList(array $activities)
    "Viewing Member Map";
  18. Martin Aronsen

    Martin Aronsen Active Member

    2. Is it possible to show the member card without the faded background, and have it attached to an element, like I can in IP.Board?
    3. I'll look into that :) You mean like a polyline between locations, and the distance (trough air) between?
    4. That'll be known as "custom markers". Will have to learn how to deal with ACP first before I attack that :)

    Ahhh, yeah! I never really got that to work. No matter how I did it, it always showed that I was viewing the forum list. Think it has something to do with my route, but I can't see what's different between this, and other add-ons.
    Or does the session class work on a per IP basis?
  19. ragtek

    ragtek Guest

    Create a phrase and it should work;)
    I'm not sure why, but if you use a string, it's not working, the method needs to return a phrase
  20. Mikey

    Mikey Well-Known Member

    Congratulations on releasing your first XenForo Add on, Martin! We're all proud of you :p Looking forward to more great things :D
    Martin Aronsen likes this.

Share This Page