Nous sommes le Mar 22 Juil, 2025 20:56
Supprimer les cookies

Page 1 sur 21, 2 Suivantgoogle map mod help please?

Sur le logiciel libre en général ou un logiciel libre en particulier

Ven 28 Juil, 2006 23:50

Hi,
Is there a place where I can get support about this MOD?
The topic in phpbb is locked.
***spam***
Fernando
fferro

Messages : 10

Sam 29 Juil, 2006 13:19

Hi Fernando,

I had to answer your mail this week end, but I can help you here.
Do you have installed Google Map MOD? are you an url for I can see the source code? What are the problems?

Best regards,
Léviathan
Invité

Lun 31 Juil, 2006 17:13

Hi Léviathan,

Almost everything OK with google map mod. But, when I try to edit some user's coordinates via ACM I cannot see the map in a new window.

When I open my own profile as admin or another user try to edit his coordinates everything is ok.
In this case the URL is (Correct):
http://www.reconstruccionvirtual.com/fo ... 9907646179

But when I edit another user coordinates from ACM this is the URL (wrong):
http://www.reconstruccionvirtual.com/foro/admin/select_map.php?lat=-34.57242417347063&lng=-58.50089907646179

Can you see the "/admin" part? This is not correct.
the forum is: www.reconstruccionvirtual.com

TIA
Fernando
fferro

Messages : 10

Lun 31 Juil, 2006 17:48

hum, I'm a stupid man :-(

I forgott to add one line in the file /admin/admin_users.php
So, you have to search the line:
Code: Tout sélectionner
         if( $result = $db->sql_query($sql) )
         {

after this line, you add this line:
Code: Tout sélectionner
if (!empty($lng_map) && !empty($lat_map)) include($phpbb_root_path . 'includes/functions_map.php');


This line allow to generate the xml file which is used for the the google map.

Best regards,
Léviathan

PS: can I take your translation (it's spanish?) for add it in the Google Map MOD? and what is the name I can add in the authors of Google Map MOD?
Invité

Lun 31 Juil, 2006 19:00

Same as before :cry:

http://www.reconstruccionvirtual.com/fo ... 9907646179

leviathan a écrit:can I take your translation (it's spanish?) for add it in the Google Map MOD? and what is the name I can add in the authors of Google Map MOD?


Of course, I will prepare the files for you. But you must consider to add many new lines at the language files. Because you´ve forgoten to translate some forms buttons value="Centrer" in google_map.tpl, and Patientez : chargement en cours..., and alert(searched +" non trouvé :-("); in functions_map.js
I edited it myself line by line, but it would be better to do it the rigth way. :wink:
***spam*** for your help
Fernando
fferro

Messages : 10

Lun 31 Juil, 2006 19:10

#
#-----[ OPEN ]------------------------------------------------
#
language/lang_spanish/lang_main.php
#
#-----[ FIND ]------------------------------------------------
#
$lang['Signature']
#
#-----[ AFTER, ADD ]------------------------------------------
#//Debut MOD Google Map
$lang['text_map'] = 'Tu etiqueta en Google Map';
$lang['lng_map'] = 'Longitud';
$lang['lat_map'] = 'Latitud';
$lang['open_map'] = 'Buscar mis coordenadas';
$lang["map"] = 'Google Map';
$lang['nb_member_map'] = 'Usuarios en el mapa.';
$lang['search_member_map'] = 'Buscar un Usuario por nombre';
$lang['center_map'] = 'Centrar';
//Fin MOD Google Map

I will wait for instructions about the rest of the translations.
If you like it, I will send the lines I mentioned before translated.

my nick/name: fferro / Fernando Ferro
Bye
fferro

Messages : 10

Lun 31 Juil, 2006 21:25

I'm not sure to understand your problem.
When an user edit his profile with the url: /profile.php?mode=editprofile , there is no problem
But when you want edit a profile in the ACP (url: /admin/admin_users.php) there is a problem with the link 'Buscar mis coordenadas'. It's right?

the link in the profile and in the ACP is the same: http://url_of_your_board/select_map.php?lat=40&lng=-8
So in the admin template (templates/subSilver/admin/user_edit_body.tpl) the link must be:
Code: Tout sélectionner
<a href="#" onclick="javascript: window.open('../select_map.php?lat={LAT_MAP}&lng={LNG_MAP}','select_map',''); return false;">{L_OPEN_MAP}</a>

and not
Code: Tout sélectionner
<a href="#" onclick="javascript: window.open('select_map.php?lat={LAT_MAP}&lng={LNG_MAP}','select_map',''); return false;">{L_OPEN_MAP}</a>


after checking, there is one error in the MOD (I have forgot the "../" before 'select_map.php' ) :-(

Now, it would be ok, no?

For the translation, thanks very much. And could you send me the rest of the translation now, please, because I don't know when I can integrate this in the MOD.

Best regards,
Léviathan
Invité

Lun 31 Juil, 2006 22:10

OK now ***spam***!!!

"../" added and that's all

For the translation, that's what I did:

Code: Tout sélectionner
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/google_map.tpl
#
#-----[ FIND ]------------------------------------------------
#
<div class="box_title">Patientez : chargement en cours...</div>
#
#-----[ REPLACE WITH ]------------------------------------------
#
<div class="box_title">Paciencia : cargando...</div>
#
#-----[ FIND ]------------------------------------------------
#
<input type="button" name="Submit" value="Centrer" onclick="pygSetLatLng()"/>
#
#-----[ REPLACE WITH ]------------------------------------------
#
<input type="button" name="Submit" value="Centrar" onclick="pygSetLatLng()"/>
#
#-----[ FIND ]------------------------------------------------
#
<input type="submit" name="Submit2" value="Centrer" onclick="return pygChercheMarker()"/>
#
#-----[ REPLACE WITH ]------------------------------------------
#
<input type="submit" name="Submit2" value="Centrar" onclick="return pygChercheMarker()"/>
#
#-----[ OPEN ]------------------------------------------------
#
select_map.php
#
#-----[ FIND ]------------------------------------------------
#
alert(searched +" non trouvé :-(");
#
#-----[ REPLACE WITH ]------------------------------------------
#
alert(searched +" no existe :-(");
#
#-----[ FIND ]------------------------------------------------
#
<div align="center"><input type="button" value="Fermer la fenêtre" name="fermer" onclick="javascript: window.close('select_map');"></div>
#
#-----[ REPLACE WITH ]------------------------------------------
#
<div align="center"><input type="button" value="Cerrar la ventana" name="fermer" onclick="javascript: window.close('select_map');"></div>
#
#-----[ OPEN ]------------------------------------------------
#
includes/functions_map.js
#
#-----[ FIND ]------------------------------------------------
#
alert(searched +" non trouvé :-(");
#
#-----[ REPLACE WITH ]------------------------------------------
#
alert(searched +" no existe :-(");
fferro

Messages : 10

Lun 31 Juil, 2006 22:25

ok, good! Now, I must edit the MOD for repair the bugs that you have found.

Thanks you very much for your translation.
Invité

Lun 31 Juil, 2006 22:37

Your Welcome!
Another question now:
What's the easiest/fastest way to mass edit users coordinates?
I will update the coordinates for a lot of users...
Do I have to edit de sql table, markers.xml file, both?
***spam***
Fernando
fferro

Messages : 10

Qui est en ligne ?

Utilisateur(s) parcourant actuellement ce forum : Aucun utilisateur inscrit