Firefox PHP

Module: Google Maps

Posted by Maurice Makaay 
Re: Module: Google Maps
October 08, 2011 06:21AM
From the README

3.6 Linking to the user map
 ---------------------------

  For linking to the user map, the template variable
  {URL->MOD_GOOGLE_MAPS_USERMAP} can be used. So a basic link could
  be put in your templates like this:

  <a href="{URL->MOD_GOOGLE_MAPS_USERMAP}">View user locations</a>

Please explain what you do not understand here. All you need to do is update for example the header.tpl in your template to add the link to the page header.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Google Maps
October 08, 2011 09:55AM
Hello,

It's a language mistake. I don't understand your sentence. I thought "View userS location" and no "View user locationS"...

Thanks for your help. It works.
Re: Module: Google Maps
October 09, 2011 07:49AM
Quote
declencher
Hello,

It's a language mistake. I don't understand your sentence. I thought "View userS location" and no "View user locationS"...

Thanks for your help. It works.

Using this module, each users profile has a map with their personal location.

And then there is a community map page with all user locations on one world map.

It's really cool.


Robert Angle
Phorum lover, nothing more.
Ruminations
Re: Module: Google Maps
October 14, 2012 10:07PM
I have just upgraded from version 1.1.7 to 2.0.5 and my "View User Locations" screen showed: "Sorry, no user locations available yet"
I then read the readme(!) and disabled the mod, deleted it and uploaded the latest version again but it didn't fix the issue.
I've just set my own location in my profile and now my user map shows my location only.
Have I inadvertently wiped hundreds of user locations by upgrading without disabling the module first :(.

EDIT:
OK, I have searched for all custom profiles with a type of 17 which seems to be the map module type in my install.

My new location looks like this:
P_SER:a:13:{s:13:"map_longitude";d:-0.271521500000080351355791208334267139434814453125;s:12:"map_latitude";d:52.22809449999999031888364697806537151336669921875;s:8:"map_zoom";d:12;s:8:"map_type";s:9:"satellite";s:16:"marker_longitude";d:-0.271521500000062587787397205829620361328125;s:15:"marker_latitude";d:52.228094499999997424311004579067230224609375;s:20:"streetview_longitude";N;s:19:"streetview_latitude";N;s:18:"streetview_heading";N;s:16:"streetview_pitch";N;s:15:"streetview_zoom";N;s:14:"geoloc_country";s:14:"United Kingdom";s:11:"geoloc_city";s:8:"St Neots";}

My old user's locations look more like this:
P_SER:a:4:{s:6:"center";s:41:"(21.286295344637022, -157.69383788108826)";s:6:"marker";s:41:"(21.285935456000253, -157.69434213638306)";s:4:"zoom";s:2:"15";s:4:"type";s:6:"hybrid";}

I'm already predicting that it is possible but tiresomely difficult to batch-convert the old format to the new...

Any advice appreciated.

/\dam

--
My notable Phorum sites:
Movie Deaths Database - "review comments" system mostly powered by Phorum
Learn Chinese! - integrated forum quiz




Edited 1 time(s). Last edit at 10/14/2012 10:18PM by sheik.
Re: Module: Google Maps
October 23, 2012 01:31PM
Yes, it would be very tiresome, but the api.php script file has a conversion function on board that can be used for converting the old data format to the new format: mod_google_maps_upgrade_userdata

The module does not provide a conversion tool for converting all existing users. There is on the fly conversion on a per-user basis in there. The function could be used to implement a total user base conversion.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Google Maps
October 24, 2012 02:05PM
Quote
Maurice Makaay
Yes, it would be very tiresome, but the api.php script file has a conversion function on board that can be used for converting the old data format to the new format: mod_google_maps_upgrade_userdata

Thanks Maurice, it's good to know there is conversion code I can access.

Quote

The module does not provide a conversion tool for converting all existing users. There is on the fly conversion on a per-user basis in there. The function could be used to implement a total user base conversion.

That's interesting, as this doesn't seem to be working for me. Any idea why that may be the case? Is my data structure too old possibly? (example data above).

/\dam

--
My notable Phorum sites:
Movie Deaths Database - "review comments" system mostly powered by Phorum
Learn Chinese! - integrated forum quiz
Re: Module: Google Maps
October 31, 2013 09:48PM
Hello Maurice,

we have Phorum 5.2.19 with googlemaps 2.0.5 installed. Using custom templates, we created new directories named after the custom templates in \mods\google_maps\templates\ournewtemplate and copied the original template files from the supplied emerald directory into those new created directories.

"Display automatically in the user's profile" is activated. Unfortunately, there is no link shown under the "Options" menue, like here at phorum.org, nor any google map or form to enter the users location is shown.

Looking through the phorum event logger we found the following entries.

Additional details:

Message:

PHP notice: Undefined index: CCMenuItem

PHP notice generated at \forum\cache\tpl-ModernBlau2-google_maps__cc_menu_item-aa5503ad7c853fddc750a21c91705808.php-stage2:16

Back trace:

Function include called at
{path to Phorum}\cache\tpl-ModernBlau2-google_maps__cc_menu_item-aa5503ad7c853fddc750a21c91705808.php:7
----
Function include called at
{path to Phorum}\mods\google_maps\google_maps.php:41
----
Function phorum_mod_google_maps_cc_menu_options_hook called
----
Function call_user_func called at
{path to Phorum}\common.php:1887
----
Function phorum_hook called at
{path to Phorum}\cache\tpl-ModernBlau2-cc_index-eba8f9202580c9a68bd82c0ffe85818f.php-stage2:61
----
Function include called at
{path to Phorum}\cache\tpl-ModernBlau2-cc_index-eba8f9202580c9a68bd82c0ffe85818f.php:7
----
Function include called at
{path to Phorum}\common.php:1599
----
Function phorum_output called at
{path to Phorum}\control.php:278
----

Purging the cache didn't help. Where should we look at ?
What kind of additional information do you need ?

Thank you for any help to get this working.

Johannes
Re: Module: Google Maps, german language file missing variable
November 01, 2013 04:59PM
the above mentioned problem is fixed.
When using the german language file "german.utf-8.php the following variable is missing and therefore the module doesn't work as expected and is not showing the link in the user's profile.

One has to add

'CCMenuItem'          => 'Standort',

and all is working fine.

Find attached the corrected german.utf-8.php
Maurice, maybe you will find time to put a corrected german.utf-8.php in the downlaod.

Johannes

[File removed. German language files are now included. Oliver Riesen]



Edited 1 time(s). Last edit at 08/13/2015 07:36AM by Oliver Riesen.
Re: Module: Google Maps
August 04, 2015 09:59AM
Hi Maurice,

I'm using Phorum 5.2.20 and try to update your module from 1.1.7 to 2.0.5.

The module doesn't work for me.

If I go to the control center no map is shown and search gives me only a grey background with a moving circle...

Any idea?

Regards
Oliver


Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
Re: Module: Google Maps
August 04, 2015 10:24AM
Hi Oliver, I believe Maurice is not involved anymore. Have you been asked by your browser whether you give permission to reveal your current location? Just a thought..
Sorry, only registered users may post in this forum.

Click here to login