News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Google Member Map

Started by Spuds, December 12, 2007, 01:49:12 PM

Previous topic - Next topic

2Ntense

Donato: if the code you showed for your existing button works AND you did the other edit(s) as it appears, then you should not have the error.  The error message seems to complain about the line "if(($modSettings['googleMapsEnable']) && (allowedTo('googleMap_view')))" although without seeing it personally and having both your complete template file and the entire error message then I'm at a loss to explain it.   The error message usually tells which line the parse error is on, but if not the errorlog in the root of your forum WILL have the line with the parse error.

As a quick test, remove that if(($modSettings... line and see if the error goes away.  That line does two things: IF the admin CP has the Google Map Mod disabled OR the member isn't allowed to see it, then the button won't show.  If you remove that line, the button will always show.




Force73: Did you have any error messages when you installed the map mod, AND are you sure you successfully removed all of the pieces of the previous installation before upgrading to 1.1.5?  I did something similar on my test forum and it worked perfectly using the 1.1.5 upgrade.  If you had ANY error messages at all during either the upgrade or the re-install of the Google Member Map Mod, then that is the place to start looking.

The map generation code is all in the Profile.template.php file, although the latitude and longitude are both written to the database with the code inside Profile.php.  From the sound of it, you probably have a mistake in one of these two files, although it could also be one of the other modified PHP files.  If you would ATTACH a ZIP file (see Additional Options when you post) containing both of these files from your server, I will look at them.  Please DO NOT just insert the code into a post as I can not do anything with it - putting it in a post changes tabs to spaces, and my comparison will not work.

Force73

Quote from: 2Ntense on June 05, 2008, 04:52:38 PM
Force73: Did you have any error messages when you installed the map mod, (...)

Thank you for your reply. There was an error with one of the files, but I updated. After this I checked all files by hand and edited some missing stuff from the install package of the actual map-mod. Every file should be ready now, but it also doesn't save.
I've attached the two files. Thank you for your support!

2Ntense

Force73: you have code duplicated, two places each in both files, and I strongly suspect all other modified are equally mangled.  In fact, I'm amazed your forum loads at all!  If I were you, I would go back and check everything all over again. 
The files you need to verify are:
$sourcedir/Load.php
$sourcedir/ManagePermissions.php
$sourcedir/ModSettings.php
$themedir/index.template.php
$themedir/style.css
$themedir/languages/Modifications.english.php
$themedir/languages/ModSettings.english.php
$themedir/languages/Who.english.php
(the last four will not cause any problems if the code was duplicated, it's just messy)

Don't take this too harshly, but if that's your idea of "checking by hand and adding some missing stuff" then I'm glad you're not working for me!  Since you obviously need the practice, I'm not going to make life easy on you...   O:)

It looks like the mangled code in Profile.template.php was probably messing up the SAVE function, although the PLACE PIN part shouldn't have worked at all.  You SHOULD have gotten an evil TEMPLATE PARSE ERROR on it.


In Profile.php, remove ONLY the bits in red

Quote      'googleMap' => array(
         'latitude' => !isset($user_profile[$memID]['latitude']) ? '' : $user_profile[$memID]['latitude'],
         'longitude' => !isset($user_profile[$memID]['longitude']) ? '' : $user_profile[$memID]['longitude'], ),

   );

   // Call the appropriate subaction function.
and   
Quote    if (isset($_POST['latitude']))
       $profile_vars['latitude'] = $_POST['latitude'] != '' ? $_POST['latitude'] : 'NULL';
    if (isset($_POST['longitude']))
       $profile_vars['longitude'] = $_POST['longitude'] != '' ? $_POST['longitude'] : 'NULL';


   // Make sure the MSN one is an email address, not something like 'none' :P.


and in Profile Template, also remove ONLY the bits in red:

Quotefunction LoadMap() {
            var map = new GMap2(document.getElementById(\"map\"));
            map.addControl(new GSmallMapControl());
            map.addControl(new GMapTypeControl());
            map.setCenter(new GLatLng(" . $context['member']['googleMap']['latitude'] . "," . $context['member']['googleMap']['longitude'] . "), 13, ". $modSettings['googleMapsType'] .");
            var point = new GLatLng(" . $context['member']['googleMap']['latitude'] . "," . $context['member']['googleMap']['longitude'] . ");
            var marker = new GMarker(point);
            map.addOverlay(marker);
         }

         if (GBrowserIsCompatible()) {
            window.onload=LoadMap;
         }";
   //Lets make another evil hack!
   echo '
         //' . chr(93) . chr(93) . chr(62);
   echo "
                  </script>
      </td>
   </tr>";
      }
   }

   if (($modSettings['googleMapsEnable']) && (allowedTo('googleMap_view'))) {
      if(isset($context['member']['googleMap']['latitude']) && isset($context['member']['googleMap']['longitude'])) {
         echo '
   <tr>
      <td class="windowbg" colspan="2">
         <script src="http://maps.google.com/maps?file=api&v=1&key='; . $modSettings['googleMapsKey'] . '" type="text/javascript"></script>
         <div id="map" style="width: 600px; height: 350px; color: #000000;"></div>
         <input type="hidden" name="latitude" size="50" value="', $context['member']['googleMap']['latitude'], '" />
         <input type="hidden" name="longitude" size="50" value="', $context['member']['googleMap']['longitude'], '" />
         <script type="text/javascript">';

   //Evil hack on this!!!
        echo '
         //' . chr(60) . chr(33) . chr(91) . chr(67) . chr(68) . chr(65) . chr(84) . chr(65) . chr(91);

   echo "
         function LoadMap() {
            var map = new GMap(document.getElementById(\"map\"));
            map.addControl(new GSmallMapControl());
            map.addControl(new GMapTypeControl());
                map.setMapType(" . $modSettings['googleMapsType'] . ");
            map.centerAndZoom(new GPoint(" . $context['member']['googleMap']['longitude'] . "," . $context['member']['googleMap']['latitude'] . "), 4);
            var point = new GPoint(" . $context['member']['googleMap']['longitude'] . "," . $context['member']['googleMap']['latitude'] . ");

            var marker = new GMarker(point);
            map.addOverlay(marker);
         }

         if (GBrowserIsCompatible()) {
            window.onload=LoadMap;
and
Quotedocument.getElementById(\"latitude\").value = point.y;
               document.getElementById(\"longitude\").value = point.x;
            }
         });
      }

      if (GBrowserIsCompatible()) {
         window.onload=LoadMap;
      }";

       //Lets make another evil hack!
        echo '
      //' . chr(93) . chr(93) . chr(62);

   echo "
                           </script>
                        </td>
                     </tr>";
   }

   
   //Google Map Member Map
   if (($modSettings['googleMapsEnable']) && (allowedTo('googleMap_place'))) {
   echo '
                     <tr>
                        <td colspan="2"><hr width="100%" size="1" class="hrcolor" /></td>
                     </tr><tr>
                        <td class="windowbg2" colspan="2" align="center">
                           <script src="http://maps.google.com/maps?file=api&v=1&key='; . $modSettings['googleMapsKey'] . '" type="text/javascript"></script>
                           <div id="map" style="width: 600px; height: 350px; color: #000000;" align="center"></div>
                           <div id="message" align="center">Click to place a point or click on your point to remove it.</div>
                               <div id="disclaimer" align="center">', $txt['googleMapDisclaimer'] ,'</div>

                           <input type="hidden" name="latitude" id="latitude" size="50" value="', $context['member']['googleMap']['latitude'], '" />
                           <input type="hidden" name="longitude" id="longitude" size="50" value="', $context['member']['googleMap']['longitude'], '" />
                           <script type="text/javascript">';
   //Evil hack on this!!!
        echo '
      //' . chr(60) . chr(33) . chr(91) . chr(67) . chr(68) . chr(65) . chr(84) . chr(65) . chr(91);

   echo "
      function LoadMap() {
         var map = new GMap(document.getElementById(\"map\"));
         map.addControl(new GSmallMapControl());
         map.addControl(new GMapTypeControl());
            map.setMapType(" . $modSettings['googleMapsType'] . ");";
   
            if (isset($context['member']['googleMap']['longitude']) && isset($context['member']['googleMap']['latitude']) && !empty($context['member']['googleMap']['longitude']) && !empty($context['member']['googleMap']['latitude'])) {
   echo "
         map.centerAndZoom(new GPoint(" . $context['member']['googleMap']['longitude'] . "," . $context['member']['googleMap']['latitude'] . "), 4);
         var point = new GPoint(" . $context['member']['googleMap']['longitude'] . "," . $context['member']['googleMap']['latitude'] . ");
         var marker = new GMarker(point);
         map.addOverlay(marker);";
      } else {
        echo "
         map.centerAndZoom(new GPoint(0,0), 16);";
      }

   echo "
         GEvent.addListener(map, 'click', function(overlay, point) {
            if (overlay) {
               map.clearOverlays();
               document.getElementById(\"latitude\").value = \"\";
               document.getElementById(\"longitude\").value = \"\";
            } else if (point) {
               map.clearOverlays();
               map.addOverlay(new GMarker(point));
               document.getElementById(\"latitude\").value = point.y;
               document.getElementById(\"longitude\").value = point.x;
            }
         });
      }

      if (GBrowserIsCompatible()) {
         window.onload=LoadMap;
      }";


        //Lets make another evil hack!
        echo '
      //' . chr(93) . chr(93) . chr(62);

   echo "
                           </script>
                        </td>
                     </tr>";
   }

   // Show the standard "Save Settings" profile button.

LOADING...

Hello,
Please help me, I am installing this mod and I get this error under
Installations actions for "Google Member Map":

11. Execute Modification ./Sources/ModSettings.php Test failed

How can I solve this error????
I checked file permissions and it was writable!!!

SgtMic

Quote from: LB Habib on June 10, 2008, 03:02:51 PM
Hello,
Please help me, I am installing this mod and I get this error under
Installations actions for "Google Member Map":

11. Execute Modification ./Sources/ModSettings.php Test failed

How can I solve this error????
I checked file permissions and it was writable!!!


You need to manually install the code in that file.
There is nothing more deadly than a US Marine and his rifle.
A close second is a US Marine and his K-BAR.
2/5 Fox Co.  (BlackHearts)
FAST Co. 5th Plt. (FIDO)

2Ntense

Quote from: LB Habib on June 10, 2008, 03:02:51 PM
Hello,
Please help me, I am installing this mod and I get this error under
Installations actions for "Google Member Map":

11. Execute Modification ./Sources/ModSettings.php Test failed

Try the ZIP file at the bottom of this post instead:
http://www.gamerzgarage.com/index.php?topic=151.msg490#msg490

I looked at what TLW? had done when he wrote the package, and he was using too long of a code chunk for a search key.  Other mods might mess with part of what he was looking for, so the search fails (that's what the error you got means).  I modified what TLW had done to instead search for the minimum unique code string and it worked fine.  BTW, that ZIP file has all of the important patches mentioned earlier in this thread, too.  It's kind of a pre-release new beta if you have trouble with the current beta.

I'm about to get back into finishing the SMF 2.0 conversion again... it's been a busy couple of weeks for me.

tk2012

#466
Hey guys & gals -

(RUNNING 1.1.5)

After reading a couple replies made by some people I was almost going to scrap the entire project of installing this thread since I would be considered a SUB-n00b level if there were one.  But, I am intent on getting this thing to work if it is the last thing that I do!

I've gone through each .php file to ensure that all edits were done and transferred any that didn't have the edits.  Nothing has crashed, so that's good, but...

I've done all the edits, made sure the files are in the right places, and put the add_settings.php file in the main forum directory.  I don't see anything that has changed other than having the MemberMap settings under the FEATURES & OPTIONS section.

I've entered in all the info (including the key).  I don't see anything on the top nav bar (home, calendar, admin, etc)  I've enabled the member PERMISSIONS so people can view and plot a point.

The only place that I see the map is when I go to my profile.  I can go into the FORUM PROFILE INFORMATION section of my profile and view the map at the bottom of the settings.  I can plot a point where I live and hit the CHANGE PROFILE button.  It automatically clears what I put in it and doesn't save anything.

So, I've spent upwards of three lonely hours here and I've probably missed one little thing.  Any suggestions? 

1) How do I get the pushpin to stay once I place it?
2) Where do my members go in order to view the map?



The only error that I had was:

./Themes/default/Post.template.php   Test failed

I'm going to go back and read over my edits a third time, but any help or pointers would be great!  I didn't see any edits for that particular file or I would have done them.

I apologize for my lack of understanding!  But, don't fault me for trying!

-TK




UPDATE:  I GOT IT WORKING!  I re-installed it two times with the same files as before, but now it works.  So, thanks for the help... LOL.  BTW- Maybe some of you people with more expertise won't be so harsh to us n00bs since I just proved that we CAN do things on our own, are willing to try to remedy our own situations, and can succeed !

LOADING...

Thank you everyone i will now try to figure out how to implement it on my forum!
Thank you...

christinedlrp

I can't seem to figure out how to get the Member Map button to show up in the Babylon theme.  ???   I've included my index.template file so you can see if I did something wrong.   Thanks!

2Ntense

All I see offhand is that you forgot the $modSettings in the GLOBAL for the menu function.  If everything else is OK, this oughta fix you up.

Don't forget to copy the googlemap.gif button to the /themes/babylon/images/english directory if you're using the GIF buttons.  I'm not sure if the installer does that already.  I think it only copies the GIF to the default theme, and you'll need it in Babylon instead.


saygak

Thank you for the great mod!

I have a problem with my theme "Dilber MC".
I installed manually the mod, but in my theme there is no such file /Themes/DilberMC/Profile.template.php and I have no clue where to insert the code. As a result, there is no button "Member map" in the top menu next to "calendar" and "Profile".
However link like 'mysite.com/forum/index.php?action=googlemap' works great. In profile there is the map where you can put a marker.

I attached all *.php files from the template's directory

brianjw

Thanks for your compliments.

Go to http://www.gamerzgarage.com/package.php choose your SMF Version and choose Install and then Only Theme edits. Upload my mod, GoogleMap.zip to that page as well and submit.

It should guide you with manually installing into a theme. If a custom theme doesn't have a certain file such as Profile.template.php, you don't make the edits. The theme borrows that file from the default theme which the mod is already installed in using the package manager.

I hope that made sense!
Thanks,
brianjw

2Ntense

#472
saygak: the theme edit for DilberMC to get it to show the button will be in the index.template.php file in Dilber's directory.  Here's what I had to do on ours:

Find:
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;

// Work out where we currently are.
$current_action = 'home';

After that, add:
if ($context['current_action'] == 'googlemap')
$current_action = 'googlemap';

(anywhere in that series of IF statements is fine)

and then find:
// If the user is a guest, show [login] button.
just before that, add:
// the [map] button
global $modSettings;
if (($modSettings['googleMapsEnable']) && (allowedTo('googleMap_view')))
echo'
<td align="center" class="menubg' , $current_action == 'googlemap' ? '2' : '' , '">
<a href="', $scripturl, '?action=googlemap">' , 'Map' , '</a>
</td>';

(note: the menu bar on our Dilber theme had so many options that I had to reduce the text string for the menu to just the 'Map' you see above for our forum.  Normally that is $txt['googleMap']  instead of the 'Map' I have shown.)

This is a sloppy way to add the $GLOBAL, but since so many people forget to add it to the function $GLOBAL it's better than nothing...

slinouille

#473
Quote from: Force73 on June 04, 2008, 02:39:29 PM
Quote from: brianjw on June 04, 2008, 02:28:14 PM
Are you saying that the map is in the profile, but when you change the position it doesn't save?
Hmmm, I am not quite sure. It's definitely a db issue but I don't know how to solve it..

Read again please, within the function loadMap it does'nt put the new values in.
Where is the position in the scripts, where data will be saved?
Hello Force73,

I have exactely the same problem as you. The new pin positions are not stored when saving the profil!
I'm struggeling to find a solution but no glory for the moment.

SliN
Visit VAG-Technique.fr
Take a look to my mods

slinouille

Hi,

I've found a solution for this problem ... doesn't know if it's optimum but it works  ;D
I've notice after some hours of debuging that the saving of google map coordonates were never stored.
So I'm only "forcing" the saving query when member is updating his profil.

In Sources/Profile.php file found:
else
        {
            $force_redirect = true;
            // Ensure we include this.
            require_once($sourcedir . '/Profile-Modify.php');
            saveProfileChanges($profile_vars, $post_errors, $memID);
        }


Just after add :


//Force updating $profile_vars for Member Map Google
saveProfileChanges($profile_vars, $post_errors, $memID);


That's all ... I hope this will serv people with same behavior as me and Force73

Bye
Visit VAG-Technique.fr
Take a look to my mods

2Ntense

#475
You should NOT have to do anything weird like that.  One of the installation edits didn't take (you *must* have ignored the error(s) during installation and installed anyways) and you got the manual insertion at the wrong point or missed it entirely.  The only other time I've seen that particular error so far was with a completely mangled installation (Force's).  If yours was done like that, then my previous comment applies: I'm surprised you don't get a TEMPLATE PARSE ERROR or a fatal PHP error that takes your forum down.

Neither you (nor anyone else) needs to do that edit that you show above, and NOBODY else should ever add it.  If the package doesn't install correctly, then you need to *carefully* edit in the missing changes.  You probably blew it somewhere and the strange patch you show is a work-around for a missing or mangled manual edit on one of the files.  It's remotely possible that you had some other mod installed that interferes with the GoogleMap installation and doesn't toss an installation error, but so far nobody has reported it.

It boggles my mind how many people will ignore install errors and and install anyways on a live forum.  When you see this error, STOP.  THINK.  TREAD VERY CAREFULLY unless you want to blow away your forum.  When was your last full backup?  Have you ever done a successful full restore? 


<walks away shaking his head in amazement and wonder>  :o

slinouille

#476
humhum
Sorry to annoy you ... but when I've installed this mod, no error was reported. I've once again uninstalled the mod (with errors on language files ... normal) and I've reisntalled it with no errors.
For information, I'm never isntalling a mod when there is an error and I do never install manually a mod.
I was using this mod when I was in SMF1 and all my members want it on the SMF2 version of the forum. So I need it to work. The only manner I've seen is to force as it is shown in my previous post.
But don't be afraid this will never generate a tempalte error because function SaveProfileChanges is protected ... so nothing will happen ih $profilevars is empty.
Nevertheless I've protected this "forcing" query with a "IF" ...
I'm convinced this is temporary solution and hope to make it work a better way ... I'm sure this could help people in the same situation as me.

As it seems that you master, you could perhaps give me a tip that could help? Can you explain with the "latitude" and "longitude" hidden text boxes are well updated in the update profile page but that only those fields are not well stored in database when member is clicking on "save profile". The only possibility is that the IFs sentences starting in line392 (// Now call the sub-action function...)
I hope you could have a tip for me as you exactely know how works this mod!

By the way, nice quotation at the end ... but sincerely I hope you have not posted it specialy for me! .... M. science infuse

Bye
Visit VAG-Technique.fr
Take a look to my mods

wolf-x

#477
Hi,

Sorry my English isn't very good but here my french translation for this mod. I had post this also here on the French forum.

modification.french.php


$txt['googleMap'] = 'Carte des membres';
$txt['googleMappinned'] = 'Membre place\'s';
$txt['googleMapc'] = 'Member Map Mod by <a href="http://www.gamerzgarage.com/">brianjw</a>';
$txt['googleMapGreenPinGD'] = 'Marqueur indefini';
$txt['googleMapGreenPinNG'] = 'Pas de sexe';
$txt['googleMapBluePin'] = 'Homme';
$txt['googleMapRedPin'] = 'Femme';
$txt['googleMapPurplePin'] = 'Groupe de marqueur';
$txt['googleMapAddPinNote'] = '<a href="' . $scripturl . '?action=profile;sa=forumProfile">Cliquez ici pour placer votre (nouveau) marqueur.</a>';
$txt['googleMapDisclaimer'] = 'Placez votre marqueur comme bon vous semblera.';
$txt['cannot_googleMap_view'] = 'Desole, vous n\'avez pas acces a la carte des membres.';
$txt['permissionname_googleMap_view'] = 'Voir la carte des membres';
$txt['permissionhelp_googleMap_view'] = 'Seuls les membres inscrits et places sont autorises a voir la carte .';
$txt['cannot_googleMap_place'] = 'Desole, vous n\'avez pas l\'autorisation pour placer un marqueur sur la carte.';
$txt['permissionname_googleMap_place'] = 'Place un marqueur sur la carte';
$txt['permissionhelp_googleMap_place'] = 'Seuls les membres inscrits peuvent placer des marqueurs sur la carte.';


ModSettings.french.php


$txt['googleMapsEnable'] = 'Activer la carte des membres';
$txt['googleMapsEnableLegend'] = 'Montrer la legende';
$txt['googleSidebar'] = 'Emplacement du menu';
$txt['googleMapsKey'] = 'La cle google maps api';
$txt['googleMapsPinGender'] = 'Les marqueurs doivent ils representer le sexe?';
$txt['googleMapsPinNumber'] = 'Nombre maxi de marqueurs sur la carte';
$txt['googleMapsType'] = 'Type de carte';
$txt['googleMapsDefaultLat'] = 'Latitude par defaut';
$txt['googleMapsDefaultLong'] = 'Longitude par defaut';
$txt['googleMapsDefaultZoom'] = 'Indice zoom par defaut';
$txt['googleMapsEnableClusterer'] = 'Activer les groupes de marqueurs';
$txt['googleMapsMinMarkerCluster'] = 'Marqueurs minimum par groupe';
$txt['googleMapsMaxVisMarker'] = 'Nombre maximum de marqueurs a afficher sur la carte';
$txt['googleMapsMaxNumClusters'] = 'Nombre maximum de categories de groupes';
$txt['googleMapsMaxLinesCluster'] = 'Nombre maxi de lignes pour les infos de groupes';
$txt['googleMapFO'] = 'Carte des membres';



Who.french.php


$txt['whoall_googlemap'] = '<a href="' . $scripturl . '?action=googlemap">Carte des membres</a>. anschauen';
$txt['whoall_.kml'] = 'Voir le flux Google Earth.';


Nao 尚

Never thought about posting my translation. So here's mine (from noisen.com). Choose whichever you like best (if you choose any). Mine has actual accents, a slightly more accurate translation, but it takes a few liberties -- poetic license, shall I say. Also, I like wolf-x's use of "marqueur" instead of "épingle". I should have thought about that one. I changed my translation to reflect that.

Modifications.french.php

$txt['googleMap'] = 'Carte';
$txt['googleMappinned'] = 'Sur la carte';
$txt['googleMapc'] = 'Member Map Mod by <a href="http://www.gamerzgarage.com/">brianjw</a>';
$txt['googleMapGreenPinGD'] = 'Marqueur ind&eacute;fini';
$txt['googleMapGreenPinNG'] = 'Sexe non pr&eacute;cis&eacute;';
$txt['googleMapBluePin'] = 'Homme';
$txt['googleMapRedPin'] = 'Femme';
$txt['googleMapPurplePin'] = 'Groupe de membres';
$txt['googleMapAddPinNote'] = '<a href="' . $scripturl . '?action=profile;sa=forumProfile">Cliquez ici pour placer votre marqueur si ce n\'est pas encore fait.</a>';
$txt['googleMapPleaseClick'] = 'Cliquez sur la carte pour placer votre marqueur, et cliquez sur le marqueur pour l\'enlever.';
$txt['googleMapDisclaimer'] = 'Placez votre marqueur sur votre lieu d\'habitation, ou dans ses environs si vous voulez garder cette information secr&egrave;te.';
$txt['cannot_googleMap_view'] = 'D&eacute;sol&eacute;, vous n\'avez pas l\'autorisation de visionner la carte des membres.';
$txt['permissionname_googleMap_view'] = 'Voir la carte des membres';
$txt['permissionhelp_googleMap_view'] = 'Autoriser le visionnage de la carte des membres. D&eacute;sactivez pour l\'emp&ecirc;cher.';
$txt['cannot_googleMap_place'] = 'D&eacute;sol&eacute;, vous n\'avez pas l\'autorisation de placer un marqueur sur la carte des membres.';
$txt['permissionname_googleMap_place'] = 'Placer un marqueur sur la carte des membres';
$txt['permissionhelp_googleMap_place'] = 'Autoriser &agrave; placer un marqueur sur la carte des membres. D&eacute;sactivez pour l\'emp&ecirc;cher.';


ManageSettings.french.php

$txt['googleMapsEnable'] = 'Activer la carte des membres Google Map';
$txt['googleMapsEnableLegend'] = 'Montrer les l&eacute;gendes des marqueurs';
$txt['googleSidebar'] = 'O&ugrave; afficher la liste des membres';
$txt['googleMapsKey'] = 'Cl&eacute; API fournie par Google Maps';
$txt['googleMapsPinGender'] = 'Les marqueurs doivent-ils indiquer le sexe ?';
$txt['googleMapsPinNumber'] = 'Nombre maximal de marqueurs sur la carte';
$txt['googleMapsType'] = 'Type de carte &agrave; montrer par d&eacute;faut';
$txt['googleMapsDefaultLat'] = 'Latitude par d&eacute;faut';
$txt['googleMapsDefaultLong'] = 'Longitude par d&eacute;faut';
$txt['googleMapsDefaultZoom'] = 'Zoom par d&eacute;faut';
$txt['googleMapsEnableClusterer'] = 'Autoriser le regroupage de marqueurs';
$txt['googleMapsMinMarkerCluster'] = 'Nombre maximum de marqueurs par groupe';
$txt['googleMapsMaxVisMarker'] = 'Nombre maximal de marqueurs visibles sur la carte';
$txt['googleMapsMaxNumClusters'] = 'Nombre maximal de groupes';
$txt['googleMapsMaxLinesCluster'] = 'Nombre maximal de lignes dans la bo&icirc;te d\'information d\'un groupe';
$txt['googleMapFO'] = 'Carte des membres';


Who.french.php

$txt['whoall_googlemap'] = 'Consulte la <a href="' . $scripturl . '?action=googlemap">carte des membres</a>.';
$txt['whoall_.kml'] = 'T&eacute;l&eacute;charge un flux Google Earth.';
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

DistantJ

I have a couple of questions about this mod, I'm considering using it (and an SMF forum) for a future site I have in the works, but I need to know a few things beforehand...

Does clicking on a pin take you to a member's profile?

Can I center the map on the UK and prevent it from being moved elsewhere?

Can I set permissions so that only a certain membergroup can enter their position on the map?

Can the pin show the user's name or any other info when hovered over or anything, or can it only be a pin on the map?

Advertisement: