Google Member Map

Started by TLM, December 18, 2005, 08:43:52 PM

Previous topic - Next topic

TLM

Link to Mod

This mod is a spin on Gobalopper's Location Mod, in that its a member map.  Except it uses Google Maps API to make the map and put pins on the map.  Before installing it is recommended to make a backup of member and settings tables for your forum as due to it modifys them.  Once installed you will want to go to Features and Options and enable it, along with put in a key for use on the forum.  The key is required by the Google Maps API, and can be aquired at, http://www.google.com/apis/maps/signup.html  Upon sign up there you will need to put in your sites URL,
example,
Your Forum is at http://www.example.com/forums/
In there sign up box put exactly that, do not include any file name just the directory path in the url.

Be warned lots of pins on the map will result in your browser locking up, and currently there is no/little limiting on how many pins are shown at any given time.

Also seeing how Google has Google Earth that uses the same data, this mod also ports the user pins into a .kml for those that want to use Google Earth to see where there users are.  Simply add a network link in Google Earth to point at http://www.example.com/forums/index.php?action=.kml to get the data for Google Earth.

This by no means is a finshed mod and I can not garuntee if it will work for you, and no I will not adopt it to your theme for you!  Otherwise if you have a problem, feel free to message me on one of my instant messengers, or email me at the_lost_minded at yahoo dot com, or leave questions in this thread.

IE FIX.



CHECK PERMISSIONS FIRST, SECOND WHEN POSTING A LINK MAKE SURE GUESTS CAN SEE IT OR CREATE A TEST USER THAT CAN SEE IT!


Comming soon! (Keep asking for features!)

  • Other data as to be combined with user map - In 0.65 (Coming soon)
  • Pin color based on status
  • Direct input of lat/long
  • Better limiting on the pins when theres to many - Need to test with clustering to see..
  • Avatar to the popup - In 0.50
  • Permissions to allow only certain groups access to view and place pins - In 0.50
  • Permissions set to on at install - In 0.52
  • Customize where initial map viewing starts - In 0.52
  • Option to choose what is default map type - In 0.52
  • Moved text to language files for translations - In 0.52
  • Add a small disclaimer upon adding pin - In 0.52
  • Add a link to the google earth data on map - In 0.52
  • Clustering of pins - In 0.55
  • Add a legend - In 0.55
  • Add a sidebar - In 0.55

JayBachatero

Great MOD.  I BETA tested it and it woks great.  With a few changes it will run in RC2 w/o a proble.
http://www.kevmundial.com/board/index.php?action=membermap

-JayBachatero
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

TLM

Well seeing how his map is lacking pins ATM, I might as well show where I developed this thing at...
http://www.teamplayfirst.com/forums/index.php?action=membermap

TLM

#3
Found a bug/feature, no pins = bad for your member map, errors show up in the error log.  Working on the fix now, not to mention cleaning up the code some too.

This has been fixed, will call new version 0.47 due to I am going to enable some pin number control, its the worst way but just to tide people over till I can get the bounding part from the javascript to work.  Look for 0.47 sometime tommarow.

L.G.S

Just to make sure, the pins aren't there because of YOUR coding yes?
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


TLM

Quote from: The Outsider on December 19, 2005, 01:19:01 PM
Just to make sure, the pins aren't there because of YOUR coding yes?
Huh?  If no one has set any pins, dont expect any pins.  If someone has set a pin, then please do tell whats going on for you.

ExistenZ

I have a problem, how do I set a pin? i cant figure out how...
Regards,
Andre

TLM

Go to Profile->Forum Profile Information

I noted that there are layze people that dont think about there profiles so I will be making a link that will take you to your profile and drop you off there to place a pin.

L.G.S

Go into Forum Profile Information and it's there.


Please help, why do I not see the text?

http://www.wwepassion.com/board/index.php?action=membermap

(Text is white as I can highlight it)

Can't I have it black?
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


TLM

Ooo... Was not expecting that one, my answer will be, to the style sheets!

I will have to add something to the style sheet and in the code for you.  I honastly was not expecting that one.

ExistenZ

Regards,
Andre

L.G.S

ok thanks,

any chance you'd know how long it'd take?
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


TLM

Quote from: The Outsider on December 19, 2005, 02:19:29 PM
ok thanks,

any chance you'd know how long it'd take?

Working on it now for you.  I am also gonna put in that link, and put in a slightly better ./Sources/MemberMap.php for everyone, found that some servers dont exactly send XML headers right, eg mine, that caused IE to barf and say no, this is not xml yet it looks like it but I still wont process it.

L.G.S

FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


TLM

#14
Pushing it out now for you guys, should have those small fixes and a little pin number limiting that works as well.  Its not great limiting due to its just if over max setting, it just picks the max number of random pins.

0.47 is the version, I did not do as much testing as I did on previous versions.  You might need to go in to ./Sources and delete the MemberMap.php, same with ./Themes/default/MemberMap.template.php, if they do not get removed when you remove the previous version you guys have installed.

Quote from: The Outsider on December 19, 2005, 02:26:37 PM
ok thanks a lot
I do hope you under stand style sheet for here is what I added just for you.


/* Google Maps */
.googleMaps
{
        color: #000000;
        font-size: small;
        font-family: tahoma, sans-serif;
}
/* Google Maps Links */
a.googleMapsLink:link, a.googleMapsLink:visited, a.googleMapsLink:hover
{
        color: #000000;
        font-size: small;
        font-family: tahoma, sans-serif;
}

L.G.S

Thanks for helping.

But unfortunatly I do not understand style sheets.

Any chance you could tell me where to put it please?
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


ExistenZ

I just want to say: Maybe it would be wise to put underneith the map in the profile something like: "Use at your own risk" or something.
Regards,
Andre

L.G.S

How is using the map by a normal user a risk?
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


TLM


TLM

Quote from: The Outsider on December 19, 2005, 03:24:45 PM
Thanks for helping.

But unfortunatly I do not understand style sheets.

Any chance you could tell me where to put it please?
Uninstall 0.45, dload 0.47, install 0.47, then go edit your style sheet as you like.

Advertisement: