Logo AdamantioAdamantio.netlogotoplogoright
Fedora CORE
logobottom
 Registrati
 Forum
Ricerche Downloads Profilo Utente Argomenti
    
Sommario
Utenti e Visitatori

Server Date/Time
Date: 21 Nov 2008
Time: 14:12:37
GMT: +0100

 Hits:
Today: 2558
Overall: 7168706

Iscritti:
Ultimo: Astaroth
Iscritti oggi: 0
Iscritti ieri: 0
Complessivi: 418

Persone Online:
Visitatori: 27
Iscritti: 0
Totale: 27
Effemeridi
In questo giorno...
1783
François de Rozier e il Marchese d'Arlandres fecero il primo volo umano quando lasciarono il terreno da Bois de Boulogne, Paris, in un pallone ad aria calda costruito dai fratelli Montgolfier
Cerca sul sito


Adamantio.net: Forums

Adamantio.net :: Leggi il Topic - My members cant see Markers
 
 FAQFAQ   CercaCerca   Lista degli utentiLista degli utenti   Gruppi utentiGruppi utenti 
 ProfiloProfilo   Messaggi PrivatiMessaggi Privati   LoginLogin 
My members cant see Markers

 
Nuovo Topic   Rispondi    Indice del forum -> Adamantio
Precedente :: Successivo  
Autore Messaggio
bokas
Apprendista
Apprendista


Registrato: Feb 07, 2007
Messaggi: 14

MessaggioInviato: Mer Feb 07, 2007 3:51 am    Oggetto: My members cant see Markers Rispondi citando
I use googlemaps in my nuke 7.8

I can add markers, and see them, but all my members cant see nothing

What im doing wrong???

Regards
BoKaS
Torna in cima
Profilo Messaggio privato
tombo
Moderatore
Moderatore


Registrato: Aug 31, 2003
Messaggi: 348
Località: Roma

MessaggioInviato: Mer Feb 07, 2007 4:53 am    Oggetto: Rispondi citando
Hi,
they can see only the anonymous ones or put their markers on maps if they are logged in.
_________________
The right information at the right place
Torna in cima
Profilo Messaggio privato HomePage Yahoo Messenger MSN Messenger
bokas
Apprendista
Apprendista


Registrato: Feb 07, 2007
Messaggi: 14

MessaggioInviato: Mer Feb 07, 2007 11:23 am    Oggetto: Rispondi citando
But i want my registered members see what do i need to do???

Regards
BoKaS
Torna in cima
Profilo Messaggio privato
tombo
Moderatore
Moderatore


Registrato: Aug 31, 2003
Messaggi: 348
Località: Roma

MessaggioInviato: Mer Feb 07, 2007 9:03 pm    Oggetto: Rispondi citando
To show them in the list below the map, you can edit the file Edit.php from this:
Codice:
SELECT * FROM `".$prefix."_gmapsdata` WHERE `user`='$username' ORDER BY `desc` ASC

to this:
Codice:
SELECT * FROM `".$prefix."_gmapsdata` WHERE `user`='$username' OR `user`='' ORDER BY `desc` ASC

and near row 21 from this
Codice:
echo "<a href="modules.php?name=" id=".$row['id']."><img src="/modules/Googlemaps/images/delete.png\" alt="" border="0\"></a>";
echo "</td></tr>";

to this
Codice:
if ($row['user'] == $username) {
echo "<a href="modules.php?name=" id=".$row['id']."><img src="/modules/Googlemaps/images/delete.png\" alt="" border="0\"></a>";
echo "</td></tr>";
} else {
echo "</td></tr>";
}

_________________
The right information at the right place
Torna in cima
Profilo Messaggio privato HomePage Yahoo Messenger MSN Messenger
bokas
Apprendista
Apprendista


Registrato: Feb 07, 2007
Messaggi: 14

MessaggioInviato: Mer Feb 07, 2007 11:26 pm    Oggetto: Rispondi citando
Nothing happens

What i need is to give access to my members to see markers i add.

Now only anonymous can see the markers
Registered members dont see any marker

I changed the code like you said but the problem is the same

Regards
bokas
Torna in cima
Profilo Messaggio privato
tombo
Moderatore
Moderatore


Registrato: Aug 31, 2003
Messaggi: 348
Località: Roma

MessaggioInviato: Gio Feb 08, 2007 5:57 am    Oggetto: Rispondi citando
the code above allow the users to see the markers type L or type M in the list of preferred places that appear in the bottom of the map, inserted by the user and by the administrator.
It works on my site.
But if you want to draw the markers on map you must edit the file read.php on line 23 from this
Codice:
$result = $db->sql_query("SELECT `id`, `lat`, `lon`, `zoom`, `desc` FROM `".$prefix."_gmapsdata` WHERE `user`='$username' and type=\"M\"");

to this
Codice:
$result = $db->sql_query("SELECT `id`, `lat`, `lon`, `zoom`, `desc` FROM `".$prefix."_gmapsdata` WHERE `user`='$username' OR `user`='' and type=\"M\"");

this display the marker created by the administrator to all users.
Please, check that the markers that you want to be seen from users has "username = null" in your database.

If you have created some marker as "user = yourusername" and you want that your users see them, you can change the part of code:
OR `user`=''
in:
OR `user`='yourusername'

Regards
_________________
The right information at the right place
Torna in cima
Profilo Messaggio privato HomePage Yahoo Messenger MSN Messenger
bokas
Apprendista
Apprendista


Registrato: Feb 07, 2007
Messaggi: 14

MessaggioInviato: Gio Feb 08, 2007 12:57 pm    Oggetto: Rispondi citando
Thanks a lot Buddy Smile

Now it works Great

Regards
BoKaS
Torna in cima
Profilo Messaggio privato
bokas
Apprendista
Apprendista


Registrato: Feb 07, 2007
Messaggi: 14

MessaggioInviato: Lun Mar 19, 2007 1:25 pm    Oggetto: Rispondi citando
Hello Tombo its possible my users see the list of markers like i see in admin???

Now my members can see Markers but not the list bellow markers.
Regards BoKaS
Torna in cima
Profilo Messaggio privato
Mostra prima i messaggi di:   
Nuovo Topic   Rispondi    Indice del forum -> Adamantio Tutti i fusi orari sono GMT + 1 ora
Pagina 1 di 1

 
Vai a:  
Non puoi inserire nuovi Topic in questo forum
Non puoi rispondere ai Topic in questo forum
Non puoi modificare i tuoi messaggi in questo forum
Non puoi cancellare i tuoi messaggi in questo forum
Non puoi votare nei sondaggi in questo forum

Powered by phpBB © 2001, 2002 phpBB Group

The Alliance Theme by: Lorkan Themes



All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest 2002 by me.
You can syndicate our news using the file backend.php [RSS] [Valid RSS].

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Generazione pagina: 0.14 Secondi

Theme Design by: Lorkan Themes