Show Googlemaps in profiles and show all profiles on one map.
GoogleMaps
I have read the docs, and used {debug}, I have managed to display a map with a location below members online/offline status, in description, but using this code in /skins/jrMusicianBand/profile_footer.tpl : {ujGoogleMaps_map name="map" map=$_profile module="jrProfile" height="300"}
I was able to find this in documentation (
http://jam.ultrajam.net/googlemaps/docs#profile-maps ) . Anyway, I have hardly tried to add this line as in documentation :
" For this example we will add the following smarty function to /modules/jrProfile/templates/item_detail.tpl, just above the footer.
{ujGoogleMaps_map name="map" map=$_profile module="jrProfile" height="300"}"
I have to say that "/modules/jrProfile/templates/item_detail.tpl, just above the footer" does not exist in my skin (and this is one of the reasons I have spent half an hour writing step by step what I did )
Exists only item_list.tpl, which I have tried after debugging to edit in order to display a map with all the profiles. The variable $_profile is not to be found in that template in module, and not in profiles_row.tpl, not in the other tpl I have tried to find it.
The only thing that displayed something ( a big blue map, with only one marker in default position) was in profiles_row.tpl, where I want to display it. Code was :
{ujGoogleMaps_map name="multimap" map=$item.profile_googlemaps module="jrProfile" height="300"}
But not $_items or $_items.profile or $_items.profiles or $_items.profile_googlemaps or any other variable I have tried. I have also watched the debugging explanation from video
https://www.jamroom.net/the-jamroom-network/documentation/development/1477/debug , very good explanation, but variables could not be found.
Unfortunately I do not know how to display all the profiles on one map, site-wide. There are explanations on docs for events, blogs and galleries. But not for profiles:
"Profile Maps
Some types of profile might have a location or address, for example a site or quota where each profile is a venue. In this example we will add a map for each profile and display the address and location map above the profile footer.
Go to Create Profile.......
.......result. You now have a map for each profile stored in the database.
.........
...... /modules/jrProfile/templates/item_detail.tpl, just above the footer.
{ujGoogleMaps_map name="map" map=$_profile module="jrProfile" height="300"}
It will display a nice full width map......
We can add parameters .....
{ujGoogleMaps_map ......
Site-Wide Maps
Briefly how to have a single sitewide map (not documented yet).
(not documented yet)
(not documented yet)
http://jam.ultrajam.net/googlemaps/docs#profile-maps
"
It may be very simple, but I have spent all night testing and trying to solve this, and it is a bit frustrating. It is a very nice module, good work, congratulations, but it is frustrating for somebody who is buying it to spend so much time in order to find the proper line of code by himself, considering that not everyone understands very well the complexity behind this strong, flexible and powerful platform.
Anyway, I will try more, one day I will figure it out.
Regards