News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Google Member Map

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

Previous topic - Next topic

TLM

Quote from: Grodden on December 22, 2005, 12:41:41 AM
Two questions:

1. Is there a way to avoid guests having information such as webpage addresses and icq numbers from the maps?
No not yet, give me time, I just pushed it out the door to get people hooked, and the permission system is starting to bog me down alittle.

Quote from: Grodden on December 22, 2005, 12:41:41 AM
2. I am running SMF on a subdirectory and the portal on another. If I make a wrap the google maps doesn´t work because it is another directory... Do you have any idea to solve this, other than running SMF unwrapped?

Thanks  :D
I assume your talking about the google API saying, error bad key, go get a vaild one?  If so, then no I have no clue what to tell you, other than orginal intention was to run the map out of SMF itself.  Although what you could do is make a completely seperate page using some of the code in Sources/MemberMap.php and put in a diffrent key for the diffrent directory.  Only catch is you would have to... well I'll post a code snippet from 0.50 that would get you the data you want so you could use a second homemade page.  I would do it now but I just shutdown my test server on my lan.


Also for anyone that cares, 0.50 has been pushed back due to I have been doing things for friends and family for the holiday, and probally wont get a chance till after the 25th.

Owain

Finally got the map working and I am well impresse by it and so our my forum users.....good work :)

Any luck on getting it so the map automatically zooms in on a location when you first load the map up? i.e. zoom in on the UK.

O.
www.tractionkiting.co.uk
Dedicated to promoting Kiting in Scotland

JustJa

Thank you TLM, I have just decided I will run SMF unwrapped. It is less problems than :)
Merry Xmas to you and thanks for your really good job! ;)

Owain

Just noticed an error on the map page...down at the very bottom it says : "Click hear to go place your pin if you have not already." Shouldn't that be here

What page is required to be changed to make this read correctly?

O.

www.tractionkiting.co.uk
Dedicated to promoting Kiting in Scotland

TLM

Quote from: Owain on December 22, 2005, 05:45:46 AM
Finally got the map working and I am well impresse by it and so our my forum users.....good work :)

Any luck on getting it so the map automatically zooms in on a location when you first load the map up? i.e. zoom in on the UK.

O.
Working on that, that might make 0.50 due to I need something else than these permissions now, permissions are driving me up the wall at the moment.  Only due to having to figure out how to go about inserting default set values otherwise there will be stuipd people.

Quote from: TLM on December 20, 2005, 01:43:37 PM
"Klicke hier, um Deinen Pin zu setzen oder zu ändern." - is that German for, "Click here to go place your pin if you have not already."? I made a slight typo, the mod went out with hear, instead of here. Also might ask around for some translations once I get to a more complete mod.

Quote from: Owain on December 22, 2005, 11:41:46 AM
Just noticed an error on the map page...down at the very bottom it says : "Click hear to go place your pin if you have not already." Shouldn't that be here

What page is required to be changed to make this read correctly?

O.

As you can see I do know about it, Theme/<insert theme dir here>/MemberMap.template.php, should be right at the top there in <div name="message>BLAH</div>

carbonize

What decides the pin colours?
C a r b o n i z e

JayBachatero

TLM take a look at this it explains permissions Adding and checking permissions.
Follow me on Twitter

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

TLM

Quote from: carbonize on December 22, 2005, 12:31:52 PM
What decides the pin colours?
Gender, can be turned off in the features and options.

Quote from: JayBachatero on December 22, 2005, 01:12:46 PM
TLM take a look at this it explains permissions Adding and checking permissions.
That helps alot, has the code I need to add defaults, why could I not find this before. :)

carbonize

Quote from: TLM on December 22, 2005, 01:40:22 PM
Quote from: carbonize on December 22, 2005, 12:31:52 PM
What decides the pin colours?
Gender, can be turned off in the features and options.

Is there anyway it can be changed to reflect the persons status rather than their gender? ie Admins are red, moderators are blue etc ?
C a r b o n i z e

TLM

Quote from: carbonize on December 22, 2005, 01:56:08 PM
Quote from: TLM on December 22, 2005, 01:40:22 PM
Quote from: carbonize on December 22, 2005, 12:31:52 PM
What decides the pin colours?
Gender, can be turned off in the features and options.

Is there anyway it can be changed to reflect the persons status rather than their gender? ie Admins are red, moderators are blue etc ?
* TLM adds to feature request list
Only catch on that right now is that the pins I am using right now only have a limited color set so it would have to be basic colors.

carbonize

Thats OK I only have a simple forum. Only one Admin, one global mod, two specific forum mods and everyone else is just a member.
C a r b o n i z e

JayBachatero

Remember that the two forum mod will not show their color on the map since they are board specific moderators ;)  They will show up as regular members.
Follow me on Twitter

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

carbonize

Ok I found the relevant code that says which colour to use for each geneder but how do I change gender to ID_GROUP? Or rather how is ID_GROUP refered to in the markers ?

if (parseFloat(markers[i].getAttribute("gender")) == 0)
C a r b o n i z e

carbonize

It's OK I managed to mod it myself (of course I will have to mod agaiin with each update unless I get bored.

I changed gender to group in the above bit of code (and the other 2) and then I added

$mapdata[$data['ID_MEMBER']]['ID_GROUP'] = $data['ID_GROUP']; 

and

group="' . $marker['ID_GROUP'] . '"

to the relevant parts of the code.

How many colours are available ?
C a r b o n i z e

carbonize

Ok I have managed to mod the membermap to suit my needs. It now shows avatars, even uploaded ones and the pin colour indicates the persons forum rank as opposed to their gender. http://carbonize.co.uk/Lazarus/Smf/index.php?action=membermap
C a r b o n i z e

NukeWorker.com

Quote from: carbonize on December 23, 2005, 04:45:55 AM
Ok I have managed to mod the membermap to suit my needs. It now shows avatars, even uploaded ones and the pin colour indicates the persons forum rank as opposed to their gender. http://carbonize.co.uk/Lazarus/Smf/index.php?action=membermap

Looks good.  I have 2 suggestions.

1)  Make the baloon pop up 'onhover' and not on click
2)  Load the user profile on click.

Just my 2 cents worth.

carbonize

1 - Could get messy when you have a lot close together

2 - The username is a link to the profile.
C a r b o n i z e

NukeWorker.com

Quote from: carbonize on December 23, 2005, 08:45:18 AM
1 - Could get messy when you have a lot close together

2 - The username is a link to the profile.

That's what makes the world such a wonderfull place.  We can dissagree, and and still both be right.  And our users will reap the bennifits of our diversity. ;)

carbonize

Well that and the fact you have to click th epins is not something you can change as far as I am aware. You supply the data but google decides how the map works.
C a r b o n i z e

NukeWorker.com

#79
Quote from: carbonize on December 23, 2005, 11:51:48 AM
Well that and the fact you have to click th epins is not something you can change as far as I am aware. You supply the data but google decides how the map works.

My map uses onhover. (And my own icons)

http://www.nukeworker.com/maps/

I plan to integrate the two maps, the one I have with the nuclear facilities, and this one, with users.  I'll have custom markers for the users too, little nuclear people on the map will look cool, eh?

Advertisement: