I am using Spuds's mod Google Member Map on SMF, I did not tryed this addon, but I would like to know if it is possible to import the data from SMF
thnks in advance
I'd have to write a quick import script to grab the data, but its the same db scheme so its doable.
I just installed this addon on a fresh 1.0.1 elkarte, I activate the addon but I don't see any link in my menu. I tried index.php?action=googlemap but I see the index of my forum. Am I missing something? thank you
p.s. no errors in error log
I have "Member map" button under Community
Don't know if this is bug in action name, but mod is adding ?action=
Google
Map :)
:-[ my fault, I didn't see it under comunity, I expected to find it near Community, and yes the correct link is the one you posted.It's working
Sorry :-[
this would be nice to have for those who use the Smf mod ;)
I had a look inside the tables of database and I sow there are 3 columns added to member table (longitude, latitude and pindate). The same columns are also in smf.
Assuming that both tables are on the same database which will be the sql command to insert the content of those three columns from smf_members to elkarte_members?
Thanks in advance
First you must
promise to backup your member tables. Then assuming you have both databases on your server:
UPDATE newforum.elkarte_members
INNER JOIN oldforum.smf_members
ON oldforum.smf_members.email_address = newforum.elkarte_members.email_address
SET
newforum.elkarte_members.pindate = oldforum.smf_members.pindate,
newforum.elkarte_members.longitude = oldforum.smf_members.longitude,
newforum.elkarte_members.latitude = oldforum.smf_members.latitude
newforum = database name of the new forum, like elkarte_forum
oldforum = database name of the old forum, like smf_forum
smf_members = table name to copy from, as in old forum db_prefix_members
elkarte_members = table name to copy to, as in new forum db_prefix_members
I joined on email address since you can't depend on the member ID being the same across the two and email address should be unique.
Thats going to take a few seconds to run since its not optimal but should work.
That worked like a charm, thank you very much!
137 users were imported correctly ;)
Great, glad it worked for you :D
in GoogleMap.english.php on second to last row
$txt['whoall_googlemap'] = 'Viewing the <a href="' . $scripturl . '?action=googlemap">Member Map</a>.';
should be
$txt['whoall_googlemap'] = 'Viewing the <a href="' . $scripturl . '?action=GoogleMap">Member Map</a>.';
Google
Map
;)
:D .... thanks will fix !
ETA: done and pushed, thanks again
Installed the addon right now, but I am having three small problems:
1. $txt['googleMap_ButtonLocation'] is in language file but not in the settings.
2. The text from $txt['googleMap_DefaultZoom_Info'] is not shown when clicking on the question mark in the settings.
3. Why are there scroll lines? Because of my avatar?
I've had the same problem, I don't remember which css file I changed, but try with Chrome inspector/ Firebug to change the size of that box
Thanks! :)
Btw: Whats the point of the legend? It seems there are no different pins described?
Oh, and the text of these two strings is not shown when clicking on the little help icon on the permission settings page:
permissionhelp_googleMap_place
permissionhelp_googleMap_view
With my code, I'd call that a victory !
No longer used. You used to be able to locate the button in different menu locations but now it just places it in community
Where did you get the file from, the link in this thread or the addon site? It works fine for me but I may have an old version in one of those download locations.
Yes. You will have to tweak the css to a size you like. There are some oddities with how those infobox's are generated with the map API.
I think it will only be useful when you are using gender pins
Thats a bug, I'll push a fix for that today
I used the download link in the first post:
https://bitbucket.org/spuds_/elk_membermap
Do you know which CSS file I have to edit to change the infobox in size? I tried some values in GoogleMap.css, but it didn't work. I think maybe .gmm_poster should be the right point, but there are no size values. :o
And what is the difference between large 3D pan/zoom control, small 3D zoom control and best fit for viewport? I can't see any difference at my tests. :-X
I updated the package file to fix a couple of the issues your reported:
1) missing text in the permissions help
2) who's online action hook was missing
3) tried to clean up the infobox avatar sizing code / css
So give that new package a try and see if it fixes the issues you were seeing.
The css for the popup box is a bit of a fight as the map API adds div's with inline styles to the base markup, so you kind of have to let it do its thing, can only fight it so much. The update I just did seems to allow those boxes to behave better now.
Did not look at the zoom controls .. I think those will change based on the viewport size, but its could be that Google simply removed the option at some point, they really like to do things like that :P
Thank you very much! Can I use the link above and then simply overwrite the files on the server?
Since I added a hook, you need to uninstall and reinstall ... so uninstall, download the new package and install again.
Thanks for the fix! :)
1) and 3) are fixed. I can confirm that. Because of 2)... I saw yesterday that one of my users was listed at "looking at the KML export" (I use the german language so I don't know exactly what it's called right now) but these option is disabled in my board. Did you mean this?
Edit: I often saw this in the online list. Maybe this is when users edit their profile to set the pin in the map?
Another small optical bug...
Thanks, tracked it ... looks like you are not using the legend so I'm going to guess I have a small layout issue in that area.
No legend and no "last edited or new entries are bold", right.
Here's the german translation.
I don't see any pins anymore (using IE 11). Is it a bug? Can someone please have a look?
Here's the link to the map:
http://forum-alternative-antriebe.de/index.php?action=GoogleMap
Looks like only the cluster icons are showing up in IE11 ... I'll have a look and see whats needed to fix this.
Well the issue is ie11 blocks access to http://chart.apis.google.com/chart for some reason ... So we need to change all occurrences of that to http://chart.googleapis.com/chart
That involves editing two files ... GoogleMap.controller.php (in Controllers) and GoogleMap.template.php (in themes/default) ... do a search on 'apis.google' and replace it with 'googleapis'
I'll update the package later today as well
Thanks! :)
I can confirm these changes are working!
I just installed the new version 1.0.2 and all seems to work fine ;)
I have some errors in Elkarte log, I use the 1.0.3 version of this addon
(Link-4928) EDIT: forgot to insert the API key into ACP > Configuration > Add-on Settings > Member Map. No more errors now ;)
I should make it log a more useful error ... but yeah Google began to require a key to use their map API. Old sites received a no API grandfather for some period of time as well but I'd guess that is all past by now. Anyway glad you got it sorted.
This addons installs and seems to work fine on 1.1 RC2, but generates errors in elkarte log:
Type of error: Undefined
Notice: Undefined index: gender
http: ... /index.php?action=GoogleMap;sa=xml
File: ... /sources/controllers/GoogleMap.controller.php
Line: 657
Type of error: Undefined
Undefined index: image_href
http: ... /index.php?action=GoogleMap;sa=xml
File: ... /sources/controllers/GoogleMap.controller.php
Line: 556
Replace GoogleMap.controller.php with the version attached ... it should clean up those 1.1 issues but want to make sure there are no more before I update the package.
Thank you Spuds, no more errors in Elk log ;)
Updated package to support ElkArte 1.1
Thanks for updating. FYI, uninstalling for purposes of upgrading removed all previous map settings, including the API key. This happened on both sites. If you upgrade, be sure to copy your map settings for reeentry. ;)
Aw, thanks!
using elkarte 1.1.3 on php 7.2.5 I get some errors in elkarte log:
Unknown Error: Function create_function() is deprecated
index.php?action=profile;area=theme;u=1
File: sources/GoogleMapIntegration.php
Line 92
Yeah ... create function notices :P
Here is an
(Link-5787) updated file that should fix those errors ....
Thank you Spuds, no more errors from this addon ;)
Well I have not updated this in some time, which is good since it still works with a couple of small issues. The primary issue is that Google depreciated their chart API and that is what the addon utilized to create the map pins, specifically the icon and text pins, so what most often is shown is simply the default Google Maps pin regardless of what you have selected.
I did find an API call to a different address that works, for how long who knows, so if you want that style pin get the V1.0.5 release
Google Member Map V1.0.5 Release- Update the chart pin generator endpoint. That service is depreciated so don't depend on this to work forever
- Update for 1.1 profile
- Updates for better use of php 7.x
Since we can't depend on that to work forever I also release a V1.0.6
Google Member Map V1.0.6 Release- Updates to support latest changes in Gmaps API
- Use Google clustermarkerplus script instead of (now unsupported) 3rd party one
- Drop support for chart API (depreciated) which removes icon, text and shadow support for the pins
- Uses an SVG icon for member and cluster pins, faster, no http calls needed
- Use flexbox markup for map layout instead of floats
- Removes support for gender icons
- If support of icon/text/gender/shadow/etc are needed, use 1.0.5 which as of that release still uses/works with the chart API (but who knows for how long?)
- Use latest jscolor script for color picker for standard pins
- Improvements to infobox layout and navigation
https://addons.elkarte.net/feature/Member-Map.html
https://github.com/Spuds/Elk-Google-Member-Map/releases
just a small typo to correct:
The Google JavaScript Maps API V3 is a free service, available for any web site that is free to consumers. By enabling and using this SMF modification you are acknowledging and agreeing to the Google terms of use
LOL ... shows how long ago I wrote version 1.0! Actually I'm not seeing that, is that possibly in your translation file?
Sorry, my mistake, my translation is very old and not fully translated
Google Member Map V1.0.7 Release. This is a maintenance release intended to address a few issues as noted below:
- Fix for missing pin icons in the cluster infoWindow
- Improve infoWindow code by using a single window object
- Move a few events to standard event listeners
- Expose the reset map icon
- Make clear that both the map and places APIs' are required to be active
- Ensure it installs and runs on Elk 1.1.9 and PHP 8.1
- Update to latest jscolor script for color picker
To get the addon you can do one of two things:
Google Member Map V1.0.8 Release. This is a maintenance release intended to address a few issues and improve performance:
- Fix for cluster pin icon not following settings option. It always showed the standard cluster pin.
- Fix for pin date updating when the user profile was changed, even when the pin was not moved/updated
- Fix installation (as for an upgrade) where the addon settings were reset to default
- Improve loading by using Google Maps async functions and then using it to initialize the map
- Move JS from dynamic creation the source files to its own gmm.js file (seed with template vars)
- Remove one hook as it was not needed.