Google Maps Module - let your users tell where they are
Posted by Maurice Makaay
|
Re: Google Maps Module - let your users tell where they are March 29, 2007 03:21AM |
Registered: 19 years ago Posts: 1 |
I have found probably next bug..
Profile updating reset my maps settings (on different panel to "user") :(
There is an bugfix:
(before saving, I check, if I have right page...)
Edited 1 time(s). Last edit at 03/29/2007 04:38AM by mmakaay.
Profile updating reset my maps settings (on different panel to "user") :(
There is an bugfix:
// Hook: cc_save_user
function phorum_mod_google_maps_cc_save_user($userdata)
{
if ($GLOBALS['panel'] != "user") return $userdata;
(before saving, I check, if I have right page...)
Edited 1 time(s). Last edit at 03/29/2007 04:38AM by mmakaay.
|
Re: Google Maps Module - let your users tell where they are March 29, 2007 04:40AM |
Admin Registered: 22 years ago Posts: 8,532 |
Ah stupid me. The previous bugfix introduced this one. I fixed the bug in release 1.0.5. A little bit different from the proposed solution, but the idea is the same. Thanks for the bug report!
Version 1.0.5 can be found in the start of this thread.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Version 1.0.5 can be found in the start of this thread.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: Google Maps Module - let your users tell where they are March 29, 2007 04:57AM |
Admin Registered: 22 years ago Posts: 8,532 |
Quote
regdos
IIf no result from searching, javascript info window show in English language and show new line char "\n".
I fixed the problem in 1.0.5.
Quote
regdos
I attach files with polish translation, please add to mod.
Thanks for the translation. I added it to the package.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: Google Maps Module - let your users tell where they are March 31, 2007 05:04AM |
Registered: 22 years ago Posts: 126 |
mapframe.php always load only english.php lang file because:
- in args from viewer.php and editor.php not language arg
- in mapframe.php is small error
In first line must be "../lang/....... not "./lang/.......
--
Tomasz Regdos :: www.regdos.com
- in args from viewer.php and editor.php not language arg
- in mapframe.php is small error
if (! file_exists("./lang/{$language}.php")) $language = "english";
include("../lang/{$language}.php");
In first line must be "../lang/....... not "./lang/.......
--
Tomasz Regdos :: www.regdos.com
|
Re: Google Maps Module - let your users tell where they are March 31, 2007 07:52AM |
Admin Registered: 22 years ago Posts: 8,532 |
Thanks for the catch. I fixed it in version 1.0.6, which can be downloaded from the start of the thread.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: Google Maps Module - let your users tell where they are March 31, 2007 08:17AM |
Registered: 22 years ago Posts: 126 |
|
Re: Google Maps Module - let your users tell where they are March 31, 2007 08:36AM |
Admin Registered: 22 years ago Posts: 8,532 |
The risk of not using the modules that you write: missing the obvious bugs. On my site, I started developing Google Map functionality and after that I ported it to Phorum. So I'm not directly using the module myself there. I'm glad that you found the bugs. I added the language parameter to the distribution. I kept the version 1.0.6.
BTW: I also added urlencode() around the language variable to make it safe for use in the URL.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
BTW: I also added urlencode() around the language variable to make it safe for use in the URL.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: Google Maps Module - let your users tell where they are April 14, 2007 11:37AM |
Registered: 20 years ago Posts: 21 |
Thanks for this very nice module!
I have made a quick translation in French in order to use it in my forum. Here it is.
Edit: one string was badly formed. I have also found that use of classical HTML code for specific characters (e.g. é for é) was not always the good idea, since it appears as is when a search is unsuccesful. I have therefore write two files, the first using iso-latin-1 coding, the second using UTF-8.
Edited 1 time(s). Last edit at 04/18/2007 11:31PM by slashbin.
I have made a quick translation in French in order to use it in my forum. Here it is.
Edit: one string was badly formed. I have also found that use of classical HTML code for specific characters (e.g. é for é) was not always the good idea, since it appears as is when a search is unsuccesful. I have therefore write two files, the first using iso-latin-1 coding, the second using UTF-8.
Edited 1 time(s). Last edit at 04/18/2007 11:31PM by slashbin.
|
Re: Google Maps Module - let your users tell where they are April 14, 2007 02:34PM |
Admin Registered: 22 years ago Posts: 8,532 |
Merci beaucoup! I will include it in the next release.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: Google Maps Module - let your users tell where they are April 15, 2007 07:35PM |
Registered: 19 years ago Posts: 9 |
Maurice,
Thanks for your great module. I successfully implemented it at [soflas.org]. I'm having a problem when trying to decrease the width of the map on the view profile page.
Im using the following code in the settings.tpl file in the folder of the template employed on the site:
Any ideas? If you need access to the site use "guest" for the user and "test" for the pass.
TIA,
Chris
Edited 1 time(s). Last edit at 04/15/2007 07:35PM by Mayday.
Thanks for your great module. I successfully implemented it at [soflas.org]. I'm having a problem when trying to decrease the width of the map on the view profile page.
Im using the following code in the settings.tpl file in the folder of the template employed on the site:
<?php
# This is implemented using pure PHP code, so the file can work for
# both Phorum 5.1 and 5.2.
# The width and height of the map in the user control center.
$PHORUM["DATA"]["mod_google_maps"]["cc_width"] = '100%';
$PHORUM["DATA"]["mod_google_maps"]["cc_height"] = '400px';
# The width and height of the map in the profiles screen.
$PHORUM["DATA"]["mod_google_maps"]["profile_width"] = '50%';
$PHORUM["DATA"]["mod_google_maps"]["profile_height"] = '400px';
# The width and height of the map in the usermap addon screen.
$PHORUM["DATA"]["mod_google_maps"]["usermap_width"] = '100%';
$PHORUM["DATA"]["mod_google_maps"]["usermap_height"] = '500px';
# A Phorum 5.1 fix through javascript.
if (! isset($PHORUM["TEMPLATE"]) || $PHORUM["TEMPLATE"] != "default2") {
ob_start(); ?>
<script type="text/javascript">
// A small hack for fixing the control center form field table width
// in the default Phorum 5.1 template, without having to change the
// control center template files.
function mod_google_maps_cc_width_hack()
{
var elt = document.getElementById('cc_width_hack');
while (elt) {
elt = elt.parentNode;
if (elt.tagName.toLowerCase() == 'table') {
elt.style.width = "95%";
break;
}
}
}
</script> <?php
$PHORUM["DATA"]["HEAD_TAGS"] .= ob_get_contents();
ob_end_clean();
$PHORUM["DATA"]["HEAD_TAGS"] .=
'<style type="text/css">' .
'#maptool_map { border: 1px solid black; }' .
'</style>';
}
?>
Any ideas? If you need access to the site use "guest" for the user and "test" for the pass.
TIA,
Chris
Edited 1 time(s). Last edit at 04/15/2007 07:35PM by Mayday.
Your IP address, domain or ISP has been blocked. Please contact the forum administrators.
Sorry, only registered users may post in this forum.

