News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Google Member Map

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

Previous topic - Next topic

carbonize

Nice to have the memberlist there but if you visit my membermap you will see it fits the page width perfectly. I suppose I could always redo it as a dropdown list for my site though.
C a r b o n i z e

pagination

Will it generate a horizontal scroll bar at 800x600, or will the memberlist div flow to sit below the map div?

TLM

#242
Quote from: carbonize on January 29, 2006, 01:22:13 PM
Nice to have the memberlist there but if you visit my membermap you will see it fits the page width perfectly. I suppose I could always redo it as a dropdown list for my site though.

Hrm.. Guess I'll make it an option, Side/Bottom/Off...
(You might also like the new version thats out for right now...)

Quote from: pagination on January 29, 2006, 01:54:58 PM
Will it generate a horizontal scroll bar at 800x600, or will the memberlist div flow to sit below the map div?

Scroll bar, but if your still using 800x600, to be honast, update your system. (:P)

pagination

Yes, I see the smiley.  :)

However, I have no say whatsoever over the monitors used by my forum members, and I want the map to appear to best advantage whatever their setup.  Therefore the option to have the memberlist underneath the map would be an excellent solution.

TLM

#244
Ok, well I just got a clustering system to work, I dunno if it will have any effect on the max number of pins that can be used/displayed.  Anyone wanna give me a DB of about 1000 users with random lat/longs, I am to layze to write my old script again to make that many pins for me. Oh well, onward to "basterdizing" the GoogleMap.template.php just for you 800x600 freaks. :)

http://tlm.homelinux.net/tpfrebuild/forums/index.php?action=googlemap - The live test, will break
http://www.teamplayfirst.com/forums/index.php?action=googlemap - More stable than the live test, but outdated from live test.

Just for you people that wanna poke and prod at it...

TLM

#245
0.55 is available now folks, couple new things, the side bar, the legend, the pin clustering.  Let me know of any problems anyone experinces.  Still expecting a high number of pins to cause browser issues but untested that be.  Lets see whats left...

On the external data idea, how many data sources would you require?  How many diffrent icons? Even though I see this feature as pointless, it was requested by a few so it goes in.

pagination

Quote from: TLM on January 29, 2006, 06:29:10 PM
0.55 is available now folks, couple new things, the side bar, the legend, the pin clustering.  Let me know of any problems anyone experinces.  Still expecting a high number of pins to cause browser issues but untested that be.  Lets see whats left...

Presumably it will happily install over earlier versions?  Or is it necessary to uninstall first?  (I appreciate that no pin data would be lost in the process either way, since this is in the tables, and that I would have to re-do my own tweaks, which, astonishingly for me, I have actually documented.)

Quote
On the external data idea, how many data sources would you require?  How many diffrent icons? Even though I see this feature as pointless, it was requested by a few so it goes in.

Assuming this refers to the static information, for my own purposes I would need maybe three or four different sets of data (i.e. different coloured pins), no more than that.  Nice if I could select the colours to use, not important if I can't.

FYI (and I know it's difficult to code something up unless you have an idea of what it's going to be used for), the purpose in the particular case I am planning is to indicate venues for a particular musician's tours of various countries during the year;  different pins are needed for situations where he might appear at the same venue more than once in the year, so I'd like to split then up by season.  Ideally, I would set those already booked at the beginning of the year, update them during the year as more bookings are made, and then clear the lot down and start again at the turn of the year.  OK, I could do these manually, but it would take ages, and if you can possibly provide an interface that would be great!  I would be quite content to check each point's co-ordinates elsewhere and then feed those co-ords into a form, together with information in perhaps three or four custom fields (date, venue name, venue contact details, additional info), if this is possible, but if not then just setting the pin in the map, with as a minimum just one custom field for the data - for sure, these points would not use any of the information used in the members' pins!

One further thought - perhaps a wee checkbox to switch on/off the display of the static data?  Set to off by default, to save on unnecessary queries to the table?

TLM

Quote from: pagination on January 29, 2006, 07:07:11 PM
Quote from: TLM on January 29, 2006, 06:29:10 PM
0.55 is available now folks, couple new things, the side bar, the legend, the pin clustering.  Let me know of any problems anyone experinces.  Still expecting a high number of pins to cause browser issues but untested that be.  Lets see whats left...

Presumably it will happily install over earlier versions?  Or is it necessary to uninstall first?  (I appreciate that no pin data would be lost in the process either way, since this is in the tables, and that I would have to re-do my own tweaks, which, astonishingly for me, I have actually documented.)
Yes the usual uninstall old, and install new, doing an upgrade path is still being a pain-in-the-ass.  What tweaks have you done?

Quote from: pagination on January 29, 2006, 07:07:11 PM
Quote
On the external data idea, how many data sources would you require?  How many diffrent icons? Even though I see this feature as pointless, it was requested by a few so it goes in.

Assuming this refers to the static information, for my own purposes I would need maybe three or four different sets of data (i.e. different coloured pins), no more than that.  Nice if I could select the colours to use, not important if I can't.

FYI (and I know it's difficult to code something up unless you have an idea of what it's going to be used for), the purpose in the particular case I am planning is to indicate venues for a particular musician's tours of various countries during the year;  different pins are needed for situations where he might appear at the same venue more than once in the year, so I'd like to split then up by season.  Ideally, I would set those already booked at the beginning of the year, update them during the year as more bookings are made, and then clear the lot down and start again at the turn of the year.  OK, I could do these manually, but it would take ages, and if you can possibly provide an interface that would be great!  I would be quite content to check each point's co-ordinates elsewhere and then feed those co-ords into a form, together with information in perhaps three or four custom fields (date, venue name, venue contact details, additional info), if this is possible, but if not then just setting the pin in the map, with as a minimum just one custom field for the data - for sure, these points would not use any of the information used in the members' pins!

One further thought - perhaps a wee checkbox to switch on/off the display of the static data?  Set to off by default, to save on unnecessary queries to the table?
Would almost say in your case, to make a secondary map but that gives me a few ideas to work off of...  I shall see what my over worked mind can come up with.

JayBachatero

I'm loving this new version TLM.  Great job.:)
Follow me on Twitter

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

pagination

Quote from: TLM on January 29, 2006, 07:44:57 PM

Would almost say in your case, to make a secondary map but that gives me a few ideas to work off of...  I shall see what my over worked mind can come up with.


Having all the info on the same map was a particular request from the forum members.  Also it would be useful for the musician in question to be able to see which forum members are likely to be at any particular gig (it is his forum, I just do the techie stuff for him).

Quote

What tweaks have you done?


Just minor cosmetic stuff.  Set initial view to map rather than hybrid;  changed default pin colour;  removed URL from pin info and added in one regular profile field and one custom one;  changed the link-to-profile text on main map to "Click here to place, move or delete your pin" and put it above the map rather than below; changed text in profile to "Click to place your pin, or click on your pin to remove it".  Nothing that can't be re-done in five minutes!

PhatTyres

Just a note for the settings on 0.55 the setting for "The default Longitude" needs to be a calculation of  =
360-"Your Longitude"
TLM - It might be nice if the mod could use the real Longitude and do the calculation internally.

But great work and Thanks Again.

Keeping my fingers crossed for the setting of additional PINS/HotSpots/Meeting Places/TrailHeads/Destinations
OTB and Runnin Down The Hill

SMF 1.0.5  MKp1.0                                Clip'd In Cycling Community

keltiek

#251
I'm using RC2 with the default language set to french. All buttons concerning the map like 'members map' are invisible. It works when I come back to english.
What can I do to have these buttons with french setting ? (I don't care if the name of buttons are still in english).

Edit : Ok I think I have to copy the modifications in Who.english.php, ModSettings.english.php and Modifications.english.php in the french files. Am I right ?

PhatTyres

Copy the buttons/images from  themes/default/images/english    to>  themes/default/images/french
OTB and Runnin Down The Hill

SMF 1.0.5  MKp1.0                                Clip'd In Cycling Community

TLM

Quote from: PhatTyres on January 30, 2006, 02:35:12 PM
Just a note for the settings on 0.55 the setting for "The default Longitude" needs to be a calculation of  =
360-"Your Longitude"
TLM - It might be nice if the mod could use the real Longitude and do the calculation internally.

But great work and Thanks Again.
And what standard notation of input would you say to use?  If I am not mistaken there is two ways to write DMS format (XX:YY:ZZ and XX° YY' ZZ") as where the DD format is one way.  Granted I am just complaining here about that, should be no problem to take any of the 3.  Although in question would be how should I store it in the db, due to the API wants DD format, and if its converted to DD before storing in the DB, the user might get confused.

Quote from: PhatTyres on January 30, 2006, 02:35:12 PM
Keeping my fingers crossed for the setting of additional PINS/HotSpots/Meeting Places/TrailHeads/Destinations
Need to come up with a nice way to add to the admin pages for you guys before I can go off making the rest of it.  Cause I know if I make a 3 entry page, someone will want 4!

Quote from: keltiek on January 30, 2006, 03:08:55 PM
I'm using RC2 with the default language set to french. All buttons concerning the map like 'members map' are invisible. It works when I come back to english.
What can I do to have these buttons with french setting ? (I don't care if the name of buttons are still in english).
If I am not mistaken its due to that I dont have any french translations.  Should be as simple as copying the additions I made to 2(?) lang files in english, to the french lang files.  Once I get some more features in place I will be putting out a request for translations to other languages.

Quote from: PhatTyres on January 30, 2006, 03:19:30 PM
Copy the buttons/images from  themes/default/images/english    to>  themes/default/images/french
RC2 has no need for button images, its a lang file.




What do you guys think about me including something like who flags, where little flags show up on there name in legend/map/somewhere?  I was reading the location mod and noted someone said they chose my mod over location mod but missed the who flags location mod had.

PhatTyres

TLM...I simply used the LatLong I got from googlemap site.  my location ended up in China, not USA...I remembered a post from a few pages back that referred to 360-long.  Used that and I was centered at home!!!!  Maybe just a simple notation by the entry field of what needs to be entered.   I do not know the standards but I don't believe they are that different.  My Long is 118.5xxxxx but what needs to be entered is 241.5.

RC2 my bad, I am stuck in the 1.0.5 ages!!!

On the "location additions"  I would like and unlimited # of entries (if at all possible) maybe use an add new entry link (similar to the attachments) Mind you I am no coder so it all makes sense in my mind but who knows what it means in code!!!  Maybe a locations page with permisions!?

Do what can be done and I will be thankful for anything as a mater of fact I am already happy, but we always want more isn't that just the way it is!!!
OTB and Runnin Down The Hill

SMF 1.0.5  MKp1.0                                Clip'd In Cycling Community

TLM

Oh yeah when Google pushes v2 of there API the map will break.  Found this out this weekend when I was poking at the beta API.

Furvert

A little install issue in Modsettings, I think I can do manual edit arround it.
But are you over selecting search text making it more sensitive to other mods?
In the below examples two other mods have inserted code inside your desired search text causing it to fail.

'layout' => 'ModifyLayoutSettings',
'MemberColorLinks' => 'ModifyMemberColorLinksSettings',



'karma' => array(
'title' => $txt['smf293'],
'href' => $scripturl . '?action=featuresettings;sa=karma;sesc=' . $context['session_id'],
// Start Googlebot Insert
),
'googlebot' => array(
'title' => $txt['ob_googlebot_modname'],
'href' => $scripturl . '?action=featuresettings;sa=googlebot;sesc=' . $context['session_id'],
// End Googlebot Insert
'is_last' => true,


Is that "'is_last' => true," a end of list marker? if so the install results in two of them as written.

Furvert

I think this would work better as a search

'karma' => array(
'title' => $txt['smf293'],
'href' => $scripturl . '?action=featuresettings;sa=karma;sesc=' . $context['session_id'],

and add

// Start Googlemap Insert
),
'googlemap' => array(
'title' => $txt['googleMapFO'],
'href' => $scripturl . '?action=featuresettings;sa=googlemap;sesc=' . $context['session_id'],
// End Googlemap Insert

This inserts before the

'is_last' => true,
),

So it should work even if other mods inserted nearby

Furvert

Oops forgot, search for

'karma' => 'ModifyKarmaSettings',

Add

// Insert Googlemap into Features and Options Menu
'googlemap' => 'ModifyGoogleMapSettings',


I think that works in all cases

damacguy

This isn't an issue with this Mod, per say. But it's the only place I see the problem. The ICQ icon doesn't show up correctly when I click on a member in the map. It looks like it's a simple typo in a template somewhere (http://status.icq.com/online.gif?img=5&icq= should be http://status.icq.com/online.gif?img=5&icq=13541672).

I looked in membermap (and obviously it's not there). I also looked in profile.template and it's not there either. Where's this defined?

Advertisement: