Module: Google Maps
Posted by Maurice Makaay
July 16, 2009 02:36PM |
Admin Registered: 20 years ago Posts: 8,532 |
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
Maurice Makaay
Phorum Development Team



October 20, 2010 08:09AM |
Admin Registered: 20 years ago Posts: 8,532 |
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
Maurice Makaay
Phorum Development Team



October 27, 2010 05:51PM |
Admin Registered: 20 years ago Posts: 8,532 |
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:
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/27/2010 06:44PM by Maurice Makaay.
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



Edited 1 time(s). Last edit at 10/27/2010 06:44PM by Maurice Makaay.
Re: Module: Google Maps November 22, 2010 04:12PM |
Registered: 18 years ago Posts: 17 |
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.
{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.
Re: Module: Google Maps December 01, 2010 12:11AM |
Registered: 16 years ago Posts: 753 |
December 01, 2010 04:53AM |
Admin Registered: 20 years ago Posts: 8,532 |
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
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



Re: Module: Google Maps December 01, 2010 05:05AM |
Admin Registered: 22 years ago Posts: 9,240 |
Re: Module: Google Maps December 01, 2010 09:35AM |
Registered: 16 years ago Posts: 753 |
Thanks, I followed the normal module instructions:
These are the error warnings I have received:
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.
These are the error warnings I have received:
Language: PHPMessage 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 10:26AM |
Admin Registered: 22 years ago Posts: 9,240 |
Sorry, only registered users may post in this forum.