Firefox PHP

Module: Google Maps

Posted by Maurice Makaay 
Re: Module: Google Maps
July 16, 2009 08:36PM
That looks interesting. It should be rather compatible, but it does require some module updates to implement it. I'll check it out. Thanks.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Google Maps
October 20, 2010 02:09PM
I released version 1.2.0 of the Google Maps module. Thomas did a nice job on retrieving the name of the city and country of the user on saving their position in the control center. This makes it possible to show the city and/or country on the profile and read pages (requires json_decode and the server must be able to do HTTP requests).


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Google Maps
October 27, 2010 11:51PM
Version 2.0.0 of this module has been released. First of all: this module version required Phorum 5.2.16-RC1 or newer. It cannot be run on older Phorum versions.

This version is almost a full rewrite of the module, in order to incorporate Google Maps API v3. Google has officially deprecated v2 of the API and urges everybody to switch to v3. A nice side-effect of switching to v3, is that no Google API key is required anymore, which makes installing the module easier than before.

New features that have been implemented, are:
  • the use of streetview
  • automatic detection of the current location of the user through geolocation features in the browser (only when supported by the browser.)
  • incorporation of the Fluster2 library, which takes care of clustering markers on the usermap, which greatly enhances usability and performance of the usermap addon

I have installed the module on this forum, so if you want to give it a try, then go to your control center's "Edit my profile" page.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce



Edited 1 time(s). Last edit at 10/28/2010 12:44AM by Maurice Makaay.
Re: Module: Google Maps
November 22, 2010 10:12PM
Thanks, it works well, except that in read.tpl, one has to add
{IF MESSAGES->user->city}
{MESSAGES->user->country},
{MESSAGES->user->city}
{/IF}
instead of
{IF MESSAGES->user->mod_google_maps->city}
{MESSAGES->user->mod_google_maps->country},
{MESSAGES->user->mod_google_maps->city}
{/IF}
as indicated in the README file.
na
December 01, 2010 04:18AM
na



Edited 1 time(s). Last edit at 12/01/2010 05:03AM by korsakov.
Re: Module: Google Maps
December 01, 2010 06:11AM
I installed the new version of Google Maps on 5.2.16 and have run into the problem that I don't see the API key entry field on the settings page. Also, the map does not show up within Phorum, {MOD_GOOGLE_MAPS} is not set. What did I miss?
Re: Module: Google Maps
December 01, 2010 10:53AM
The README file, which provides information about the recommended upgrade path and the announcement for the new version of the module from this thread?

From the announcement: "A nice side-effect of switching to v3, is that no Google API key is required anymore, which makes installing the module easier than before."

Try going to the modules section in the admin interface, then disable the Google Maps module. After that, re-enable it. Possibly that helps for your {MOD_GOOGLE_MAPS} problem. (this is part of the upgrade from the README)

I have no troubles with the module, so when it still does not work for you, then please be more specific in your problem report. That template variable can be used at various places and you did not tell us what you are looking at exactly.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Google Maps
December 01, 2010 11:05AM
And purge the cache through the admin to have updated js and css caches.


Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
Re: Module: Google Maps
December 01, 2010 03:35PM
Thanks, I followed the normal module instructions:

These are the error warnings I have received:
Language: PHP
Message 1: PHP notice: Undefined index: MOD_GOOGLE_MAPS in usersettings.tpl, etc.. Message 2: PHP notice: Undefined index: geoloc_country PHP notice generated at .../mods/google_maps/maptool/location-editor.php:99

I use: [ajax.googleapis.com]


Thanks Thomas! - I purged the cache, as well.


PS: The README still contains the following instructions for new installs:
- Register for a Google Maps API key (it's free) at
[www.google.com]
You will need this key later on in the installation;
..Enter at least the API key that you have registered in the first step of
the installation.
Re: Module: Google Maps
December 01, 2010 04:26PM
Did you do what maurice suggested?
"Try going to the modules section in the admin interface, then disable the Google Maps module. After that, re-enable it. "


Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
Sorry, only registered users may post in this forum.

Click here to login