News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Google Member Map

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

Previous topic - Next topic

Redeye

#160
Got this mod working straight out of the box.

I would like to link it into Google Earth and have used http://www.example.com/forums/index.php?action=.kml as in the first post but get parse errors in GE.

"File has missing or bad root element at line 2"

Is it just ?action=.kml or something more specific as a file name etc.

EDIT: If I put that URL in the browser and download the file I can then double click it and it loads GE with all the member pins in place. Only thing strange that happens is that the member usernames are shown twicw for each pin.

darian

Oh-no...

Google Member Map 47 was working fine on my SMF1.0.5. board (version 50 didn't).

Last night I upgraded SMF 1.0.5. to 1.1.RC2  (uninstalled Google Member Map first), and now when I reinstall it I'm getting a pop-up message that "The Google Maps API key used on this website was registered for a different website.  Generate a new key at... blah blah blah):'(

I've checked the API key - and it is the same as the one I've been using the whole time.  Goes without saying that I've installed the new SMF 1.1RC2 over the old SMF 105 - so the location and website settings are all the same...

Tried the new Google Member Map 51 and I'm getting the same message.

Any ideas?

damacguy

Are you sure the URL for your website is the same?

Something like http://yourhost.com/smf/ vs. http://yourhost.com/forum/ or http://yourhost.com/community/ etc.

Prasad007

what does this mod do exactly??

Redeye


Prasad007


TLM

#166
Quote from: Redeye on January 02, 2006, 04:21:44 AM
Got this mod working straight out of the box.

I would like to link it into Google Earth and have used http://www.example.com/forums/index.php?action=.kml as in the first post but get parse errors in GE.

"File has missing or bad root element at line 2"

Is it just ?action=.kml or something more specific as a file name etc.

EDIT: If I put that URL in the browser and download the file I can then double click it and it loads GE with all the member pins in place. Only thing strange that happens is that the member usernames are shown twicw for each pin.

Making an assumption here... http://www.honda-varadero-uk.org/forum/ is your forum, and
http://www.honda-varadero-uk.org/forum/?action=.kml is for the google earth kml...

If you would like to see why GE errors, logout of the forum and try to aquire the data... "Sorry, you're not allowed to view the Member Map."  It works if you dload the data and then load it in for it checks your permissions, although I dont remember putting any permissions in that part of MemberMap.php.

Also the ?action=.kml is just a way to call the GE part of my code, I just figured I would call it due to thats one way GE stores the data in .kml files.

Prasad007

but why is this map named after google ??

TLM


Prasad007


TLM

#170
Quote from: darian on January 02, 2006, 07:56:44 AM
Oh-no...

Google Member Map 47 was working fine on my SMF1.0.5. board (version 50 didn't).

Last night I upgraded SMF 1.0.5. to 1.1.RC2  (uninstalled Google Member Map first), and now when I reinstall it I'm getting a pop-up message that "The Google Maps API key used on this website was registered for a different website.  Generate a new key at... blah blah blah):'(

I've checked the API key - and it is the same as the one I've been using the whole time.  Goes without saying that I've installed the new SMF 1.1RC2 over the old SMF 105 - so the location and website settings are all the same...

Tried the new Google Member Map 51 and I'm getting the same message.

Any ideas?
Quote from: damacguy on January 02, 2006, 10:34:15 AM
Are you sure the URL for your website is the same?

Something like http://yourhost.com/smf/ vs. http://yourhost.com/forum/ or http://yourhost.com/community/ etc.
What damacguy said... and if worse comes to worse, just go get a new API key.
Sorry just woke up, make sure that there is not a tiny bit of the key missing.  Also simply aquiring a new key works just as well.

Redeye

Quote from: TLM on January 02, 2006, 11:11:56 AM
Quote from: Redeye on January 02, 2006, 04:21:44 AM
Got this mod working straight out of the box.

I would like to link it into Google Earth and have used http://www.example.com/forums/index.php?action=.kml as in the first post but get parse errors in GE.

"File has missing or bad root element at line 2"

Is it just ?action=.kml or something more specific as a file name etc.

EDIT: If I put that URL in the browser and download the file I can then double click it and it loads GE with all the member pins in place. Only thing strange that happens is that the member usernames are shown twicw for each pin.

Making an assumption here... http://www.honda-varadero-uk.org/forum/ is your forum, and
http://www.honda-varadero-uk.org/forum/?action=.kml is for the google earth kml...

If you would like to see why GE errors, logout of the forum and try to aquire the data... "Sorry, you're not allowed to view the Member Map."  It works if you dload the data and then load it in for it checks your permissions, although I dont remember putting any permissions in that part of MemberMap.php.

Also the ?action=.kml is just a way to call the GE part of my code, I just figured I would call it due to thats one way GE stores the data in .kml files.
I understand now. It's using the forum permissions. I set it to allow guests to view and it worked OK!
Thanks.

darian

Quote from: TLM on January 02, 2006, 11:18:41 AM
Quote from: darian on January 02, 2006, 07:56:44 AM
Oh-no...

Google Member Map 47 was working fine on my SMF1.0.5. board (version 50 didn't).

Last night I upgraded SMF 1.0.5. to 1.1.RC2  (uninstalled Google Member Map first), and now when I reinstall it I'm getting a pop-up message that "The Google Maps API key used on this website was registered for a different website.  Generate a new key at... blah blah blah):'(

I've checked the API key - and it is the same as the one I've been using the whole time.  Goes without saying that I've installed the new SMF 1.1RC2 over the old SMF 105 - so the location and website settings are all the same...

Tried the new Google Member Map 51 and I'm getting the same message.

Any ideas?
Quote from: damacguy on January 02, 2006, 10:34:15 AM
Are you sure the URL for your website is the same?

Something like hxxp:yourhost.com/smf/ [nonactive] vs. hxxp:yourhost.com/forum/ [nonactive] or hxxp:yourhost.com/community/ [nonactive] etc.
What damacguy said... and if worse comes to worse, just go get a new API key.
Sorry just woke up, make sure that there is not a tiny bit of the key missing.  Also simply aquiring a new key works just as well.


- website name is the same - no variations of the subdomain (and this never made a difference before anyway)
- no portion of the API key is missing - I've checked several times - and in fact, the API key was already "loaded" from the previous working install (though I have repasted the original key to be sure)

Of course one can say "just get a new key", I'm aware that this will be my last resort.  But how nice is that - to lose all the listings that were already posted?  That's like saying: "If your forum crashes, just reinstall it and start again...".  It's nice to try and recover what you have already first.

And most importantly, if there is a bug somewhere that shows it's nasty little head when updating the forum, it's nice to be aware of it ;-)  Sure, it's "just me" right now - but if 50 other users all lose their Map data it's going to be a lot less fun than my own little problem.  Besides - there might be a simple cause that can be quickly adjusted, so it's worth posting these problems in the forum in the hope of a solution  :)



TLM

Quote from: darian on January 02, 2006, 12:25:04 PM
- website name is the same - no variations of the subdomain (and this never made a difference before anyway)
Yeah saw that the second time I read your post.

Quote from: darian on January 02, 2006, 12:25:04 PM
- no portion of the API key is missing - I've checked several times - and in fact, the API key was already "loaded" from the previous working install (though I have repasted the original key to be sure)
Only idea is that the db corrupted it maybe?  You said 1.0.5 to 1.1 RC2 right?  Guess I will have to test this to see what happens.

Quote from: darian on January 02, 2006, 12:25:04 PM
Of course one can say "just get a new key", I'm aware that this will be my last resort.  But how nice is that - to lose all the listings that were already posted?  That's like saying: "If your forum crashes, just reinstall it and start again...".  It's nice to try and recover what you have already first.
Not nessarly, as long as the member table does not get erased which is not what getting a new API key does.

Quote from: darian on January 02, 2006, 12:25:04 PM
And most importantly, if there is a bug somewhere that shows it's nasty little head when updating the forum, it's nice to be aware of it ;-)  Sure, it's "just me" right now - but if 50 other users all lose their Map data it's going to be a lot less fun than my own little problem.  Besides - there might be a simple cause that can be quickly adjusted, so it's worth posting these problems in the forum in the hope of a solution  :)
I think you may be on to something about the 1.0.5 to 1.1 RC2 but will have to test this.  But as long as the members table in the forums DB does no get altered then the users of that forum should not loose there lat/long points.

darian

Thanx TLM

Sure enough, a new key did the job - didn't realise that you used lat/long data stored in the profile to do the trick, and that the map itself is actually no more than a background ;-)  ...smart!

Anyway, all's up and running again - thanks  8)

damacguy

Here's a suggested add-on for this mod - Plazes compatibility.

Plazes tracks hotspots and can show where your friends are at if they're on-line.

Check it out at http://beta.plazes.com.

It'd be cool to have the pins move to wherever the member is currently at while logged on (and maybe default to a home location when off-line with a different colored pin - but I think we're limited to three colors for pins).

TLM

Quote from: damacguy on January 05, 2006, 12:10:13 AM
Here's a suggested add-on for this mod - Plazes compatibility.

Plazes tracks hotspots and can show where your friends are at if they're on-line.

Check it out at http://beta.plazes.com.

It'd be cool to have the pins move to wherever the member is currently at while logged on (and maybe default to a home location when off-line with a different colored pin - but I think we're limited to three colors for pins).
Unfortantly I dont think so on this idea.  Granted its a nifty idea but just would be a bit harder than you think it is.  Just gonna keep the mod simple.

Roger

Awesome mod, thanks so much!  8)

Roger

PhatTyres

Quote from: TLM on January 05, 2006, 09:36:19 PM
Quote from: damacguy on January 05, 2006, 12:10:13 AM
Here's a suggested add-on for this mod - Plazes compatibility.

Plazes tracks hotspots and can show where your friends are at if they're on-line.

Check it out at http://beta.plazes.com.

It'd be cool to have the pins move to wherever the member is currently at while logged on (and maybe default to a home location when off-line with a different colored pin - but I think we're limited to three colors for pins).
Unfortantly I dont think so on this idea.  Granted its a nifty idea but just would be a bit harder than you think it is.  Just gonna keep the mod simple.

Yeah, I agree keep it simple.  I think the plazes would require each member to register for plazes also.
Cool Idea but I think general info is best as far as locations go.
OTB and Runnin Down The Hill

SMF 1.0.5  MKp1.0                                Clip'd In Cycling Community

Rv5

really like this mod, but getting a funny error.  only admins of the forum get the map button and options.  regular members cant see any of it.  also when i log into the admin panel and go to the map options, the title of tab still says "karma" and not member map.  but more importantly, what do i have to do to get regular members able to use this awesome mod?

Advertisement: