| Precedente :: Successivo |
| Autore |
Messaggio |
bokas Apprendista


Registrato: Feb 07, 2007 Messaggi: 14
|
Inviato: Mer Feb 07, 2007 3:51 am Oggetto: My members cant see Markers |
|
|
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 |
|
 |
tombo Moderatore


Registrato: Aug 31, 2003 Messaggi: 348 Località: Roma
|
Inviato: Mer Feb 07, 2007 4:53 am Oggetto: |
|
|
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 |
|
 |
bokas Apprendista


Registrato: Feb 07, 2007 Messaggi: 14
|
Inviato: Mer Feb 07, 2007 11:23 am Oggetto: |
|
|
But i want my registered members see what do i need to do???
Regards
BoKaS |
|
| Torna in cima |
|
 |
tombo Moderatore


Registrato: Aug 31, 2003 Messaggi: 348 Località: Roma
|
Inviato: Mer Feb 07, 2007 9:03 pm Oggetto: |
|
|
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 |
|
 |
bokas Apprendista


Registrato: Feb 07, 2007 Messaggi: 14
|
Inviato: Mer Feb 07, 2007 11:26 pm Oggetto: |
|
|
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 |
|
 |
tombo Moderatore


Registrato: Aug 31, 2003 Messaggi: 348 Località: Roma
|
Inviato: Gio Feb 08, 2007 5:57 am Oggetto: |
|
|
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 |
|
 |
bokas Apprendista


Registrato: Feb 07, 2007 Messaggi: 14
|
Inviato: Gio Feb 08, 2007 12:57 pm Oggetto: |
|
|
Thanks a lot Buddy
Now it works Great
Regards
BoKaS |
|
| Torna in cima |
|
 |
bokas Apprendista


Registrato: Feb 07, 2007 Messaggi: 14
|
Inviato: Lun Mar 19, 2007 1:25 pm Oggetto: |
|
|
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 |
|
 |
|