• [MOD] Google-Maps Integration V.01 5 0 5 1
Currently:  

Author Topic: [MOD] Google-Maps Integration V.01  (Read 254688 times)

0 Members and 1 Guest are viewing this topic.

Offline UssVoyager

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: [MOD-beta] Google-Maps Integration V.01
« Reply #135 on: February 07, 2009, 05:43:59 PM »
HI

So wie ich das jetzt sehe, gibt es kein  "Google-Map MOD" das über Stadtname uns Straßenname gespeist wird!?

Ist das richtig?

LG
UssVoyager

Rembrandt

  • Guest
Re: [MOD-beta] Google-Maps Integration V.01
« Reply #136 on: February 07, 2009, 05:56:08 PM »
Hi!
..So wie ich das jetzt sehe, gibt es kein  "Google-Map MOD" das über Stadtname uns Straßenname gespeist wird!?

Ist das richtig?...
woher soll den der stadtnamen den kommen?

mfg Andi

Offline UssVoyager

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: [MOD-beta] Google-Maps Integration V.01
« Reply #137 on: February 07, 2009, 06:15:00 PM »
http://www.die-bildersammlung.de/details.php?image_id=478

Woher sollen hier die GPS Daten her kommen?


LG
UssVoyager
« Last Edit: February 08, 2009, 08:49:14 AM by UssVoyager »

Rembrandt

  • Guest
Re: [MOD-beta] Google-Maps Integration V.01
« Reply #138 on: February 07, 2009, 06:32:51 PM »
...
Woher sollen hier die GPS Daten kommen?...
was wird das jetzt ?  :evil:

du wolltest wissen ob es möglich ist, google map mit stadt b.z.w. ortsnamen zu betreiben.

ich fragte dich darauf, woher soll der 'statdnamen' kommen, irgenwoher muss der ja her kommen?

gibt den irgendwer irgendwo ein, oder steht der 'ortsname' in dem exiffeld  'verschlusszeit' und wird von dort vielleicht ausgelesen?

mfg Andi

Offline UssVoyager

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: [MOD-beta] Google-Maps Integration V.01
« Reply #139 on: February 07, 2009, 06:54:04 PM »
 :D
@Andi

Den Ort habe ich doch immer, ich habe Ihn eher als die GPS Daten, lass uns mal die Kameras außen vor lassen, welche die Daten mit speichern, und schon im Bild verankern.

Die GPS Daten muss ich mir besorgen und ebenfalls irgendwo eintragen, also mir ist es egal wo ich den Ort eintrage.

Es soll ja auch keiner was für mich basteln, die Frage ist nur ob es das gibt.

Wenn ich auf einer Google Map  bin, reicht es  ja wenn ich Ort und Strasse eintrage, und diese beiden Dinge zu übernehmen wäre nur logisch, denn diese Info ist schnell eingetragen, egal wo.

Ich wollte nur nicht den GPS-Weg gehen wenn es den Stadt-Weg gibt  :wink:

Wenn es den Stadt-Weg nicht gibt, ist das halt so. 8O

Nachtrag:

So ich hab es jetzt auch, klappt prima, Danke für Eure Arbeit!! :!:

Wenn man das ganze mit Stadt und Straße übergeben kann, bin ich in jedem Fall interessiert, aber das hatte ich ja schon erwähnt!  :mrgreen:

LG
UssVoyager



 
« Last Edit: February 08, 2009, 08:48:27 AM by UssVoyager »

Offline darkcurves

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • KTM Railway Fan Club - Gallery
Re: [MOD-beta] Google-Maps Integration V.01
« Reply #140 on: March 10, 2009, 05:17:07 AM »
Hi, i just installed the mod. No error messages but Google Maps wont appear on the page. The whole area is just blank. Please check the screenshot. What could be the problem? Thanks.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD-beta] Google-Maps Integration V.01
« Reply #141 on: March 10, 2009, 05:21:15 AM »
Maybe you didn't replace ABCDEFGH....XYZ with your own key in step 4?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline darkcurves

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • KTM Railway Fan Club - Gallery
Re: [MOD-beta] Google-Maps Integration V.01
« Reply #142 on: March 10, 2009, 05:43:39 AM »
I did, generated using Google Map API and replaced it. There should be a trailing slash right after the key?

Offline darkcurves

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • KTM Railway Fan Club - Gallery
Re: [MOD-beta] Google-Maps Integration V.01
« Reply #143 on: March 10, 2009, 05:56:27 AM »
Could it be HTML mistake? Here is my detail.html:

Code: [Select]
{header}

{if gmap}
{gmap_java}
<body onload="load()" onunload="GUnload()">
{endif gmap}

<table width="990" border="0" cellspacing="0" cellpadding="0" align="center">

  <tr>

    <td>

      <table width="990" border="0" cellspacing="0" cellpadding="0" class="tablehead">
        <tr>
          <td width="60%"><div class="logo">{site_name}</div><div style="float:left; margin:12px 0px 0px 12px; padding-left:12px; border-left:2px solid #000000;"><img src="{template_url}/images/slogan.gif" align="left" /></div></td>
          <td width="40%" align="right" valign="top">
            <form method="post" action="{url_search}" style="padding:0px; margin:0px;">
              <table border="0" cellspacing="0" cellpadding="0" class="search" height="67">
                <tr>
                  <td style="padding-left:100px;" valign="top" width="237"><input type="text" name="search_keywords" size="15" class="searchinput" /></td>
                  <td valign="top" width="150"><input type="submit" value="{lang_search}" class="button_search" name="submit" /></td>
                </tr>
              </table>
            </form>
          </td>
        </tr>
      </table>

    </td>

  </tr>

  </tr>

  <tr>

    <td class="bordercolor">

      <table width="990" border="0" cellspacing="0" cellpadding="0">
        <tr><td class="tablebgcolor">

            <table width="970" border="0" cellspacing="0" cellpadding="0" class="navbar" height="41">
                <tr>
                  <td width="440" id="breadcrumb">&nbsp;&nbsp;&nbsp;&nbsp;{clickstream}</td>
                  <td width="530" align="right">
                    {ifnot lang_loggedin_msg}
                    <a href="{url_register}"><b>{lang_register}</b></a>&nbsp;&nbsp;&nbsp;
                    {endifnot lang_loggedin_msg}
                   
                    <a href="{url_search}"><b>{lang_advanced_search}</b></a>&nbsp;&nbsp;&nbsp;
                   
                    <a href="{url_top_images}"><b>{lang_top_images}</b></a>&nbsp;&nbsp;&nbsp;
                   
                    <a href="{url_all_images}"><b>{lang_all_images}</b></a>&nbsp;&nbsp;&nbsp;

                    <a href="{url_new_images}"><b>{lang_new_images}</b></a>&nbsp;&nbsp;&nbsp;
                  </td>
                </tr>
              </table>

            <table width="974" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="203" class="row2" valign="top" style="padding-top:10px;">
               
                <table width="203" border="0" cellspacing="0" cellpadding="0" align="center" class="reg_table" bgcolor="#FFFFFF">
                    <tr>
                      <td class="head2_reg" height="40">{lang_registered_user}</td>
                    </tr>
                    <tr>
                      <td align="center">{user_box}</td>
                    </tr>
                  </table><br />

  {if random_image}
                  <table width="204" border="0" cellspacing="0" cellpadding="0" align="center">
                    <tr>
                      <td class="head2" height="36">{lang_random_image}</td>
                    </tr>
                    <tr>
                      <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                    </tr>
                    <tr>
                      <td align="center" class="row1">
    <br />
                        {random_image}
<br /><br />
                      </td>
                    </tr>
                    <tr>
                      <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                    </tr>
                  </table>
  {endif random_image}
                   
                 
                  </td>

                <td width="12" valign="top"><img src="{template_url}/images/spacer.gif" alt="" width="12" height="6" /></td>
               
               

                       
                 
                       
                       
                       
                <td width="759" valign="top" style="padding-top:10px;">
               

                       
                                         <table width="100%" border="0" cellspacing="0" cellpadding="3">

                          <tr valign="top">

                            <td class="row2"> {if prev_image_name}{lang_prev_image}<br />

                              <b><a href="{prev_image_url}">{prev_image_name}</a></b>

                               <br /><br /><a href="{prev_image_url}"><img src="{prev_thumb_file}" border="1"></a>

                              {endif prev_image_name}&nbsp;</td>

                            <td align="right" class="row2"> &nbsp;{if next_image_name}{lang_next_image}<br />

                              <b><a href="{next_image_url}">{next_image_name}</a></b>

                               <br /><br /><a href="{next_image_url}"><img src="{next_thumb_file}" border="1"></a>

                              {endif next_image_name}</td>

                          </tr>

                        </table>       
                       
 
                       
                   
               

                  <b class="title">{image_name}</b>{if image_is_new} <sup class="new">{lang_new}</sup>{endif

                  image_is_new}

                  <hr size="1" />

                  {if msg}<b>{msg}<br />

                  <br />

                  </b>{endif msg}

                  <div align="center">

  {image}

{if admin_links}<br />

                    {admin_links}<br />

                    {endif admin_links}<br />

                    {lightbox_button}&nbsp;&nbsp;{postcard_button}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{download_button}&nbsp;&nbsp;{download_zip_button}

</div>

                  <br />

                  <table width="100%" border="0" cellspacing="0" cellpadding="0">

                    <tr>

                      <td>

                        <table width="100%" border="0" cellpadding="3" cellspacing="0">

                          <tr>

                            <td class="head1" colspan="2">{image_name}</td>

                          </tr>

                          <tr>

                            <td valign="top" class="row1"><b>{lang_description}</b></td>

                            <td valign="top" class="row1">{image_description}</td>

                          </tr>

                          <tr>

                            <td valign="top" class="row2"><b>{lang_keywords}</b></td>

                            <td valign="top" class="row2">{image_keywords}</td>

                          </tr>

                          <tr>

                            <td valign="top" class="row1"><b>{lang_date}</b></td>

                            <td valign="top" class="row1">{image_date}</td>

                          </tr>

                          <tr>

                            <td valign="top" class="row2"><b>{lang_hits}</b></td>

                            <td valign="top" class="row2">{image_hits}</td>

                          </tr>

                          <tr>

                            <td valign="top" class="row1"><b>{lang_downloads}</b></td>

                            <td valign="top" class="row1">{image_downloads}</td>

                          </tr>

                          <tr>

                            <td valign="top" class="row2"><b>{lang_rating}</b></td>

                            <td valign="top" class="row2">{image_rating} ({image_votes}

                              {lang_votes})</td>

                          </tr>

                          <tr>

                            <td valign="top" class="row1"><b>{lang_file_size}</b></td>

                            <td valign="top" class="row1">{image_file_size}</td>

                          </tr>

                          <tr>

                            <td valign="top" class="row2"><b>{lang_added_by}</b></td>

                            <td valign="top" class="row2">{user_name_link}</td>

                          </tr>

                        </table>

                      </td>

                    </tr>

                  </table>

                  {if iptc_info}

<br />

                  <table width="100%" border="0" cellspacing="0" cellpadding="1">

                    <tr>

                      <td class="bordercolor">

                        <table width="100%" border="0" cellpadding="3" cellspacing="0">

                          <tr>

                            <td class="head1" colspan="2">IPTC Info</td>

                          </tr>

                          {iptc_info}

                        </table>

                      </td>

                    </tr>

                  </table>

                  {endif iptc_info}

{if exif_info}

<br />

                  <table width="100%" border="0" cellspacing="0" cellpadding="1">

                    <tr>

                      <td class="bordercolor">

                        <table width="100%" border="0" cellpadding="3" cellspacing="0">

                          <tr>

                            <td valign="top" colspan="2">EXIF Info</td>

                          </tr>

                          {exif_info}

                        </table>

                      </td>

                    </tr>

                  </table>

                  {endif exif_info}

{if rate_form}

                  <br />

<div align="center">{rate_form}</div>

                  {endif rate_form}
                 
                 
                                          <table width="100%">
                         <tr valign="top">
                         <td>
                      {if gmap}
                                <div align="center">
                                <div id="map" style="width: 600px; height: 400px"></div>
                                </div>
                      {endif gmap}
                         </tr>

                        </table>       

{if allow_comments}

<a name="comments"></a>
{if paging_stats}
<table width="100%" border="0" cellspacing="1" cellpadding="0" class="bordercolor">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td class="row1" valign="middle">
{paging_stats}
</td>
<td class="row1" valign="top" align="right">
{commentsperpage_dropdown_form}
</td>
</tr>
</table>
</td>
</tr>
</table>
<br />
{endif paging_stats}
{if paging}
<table width="100%" border="0" cellspacing="1" cellpadding="0" class="bordercolor">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td class="row1" valign="top">{paging}</td>
</tr>
</table>
</td>
</tr>
</table>
<br />
{endif paging}

<a name="comments"></a>

<br />

                  <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">

                    <tr>

                      <td valign="top">

                        <table width="100%" border="0" cellpadding="3" cellspacing="0">

                          <tr>

                            <td class="head1">{lang_author}</td>

                            <td class="head1">{lang_comment}</td>

                          </tr>

                          {comments}

                        </table>

                      </td>

                    </tr>

                  </table>

                  <br />

                  {comment_form} {endif allow_comments} <br />

                  <br />

                  <table width="100%" border="0" cellspacing="0" cellpadding="0">

                    <tr>

                      <td>



                      </td>

                    </tr>

                  </table>

                  <p>&nbsp;</p>

                </td>

                <td width="20" valign="top"><img src="{template_url}/images/spacer.gif" width="19" height="19" alt="" /></td>

              </tr>

            </table>

          </td>
        </tr>
      </table>

    </td>

  </tr>

</table>

{footer}

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD-beta] Google-Maps Integration V.01
« Reply #144 on: March 10, 2009, 07:08:21 AM »
There should be a trailing slash right after the key?
Yes.

also make sure you don't have two <body> tags in header.html

onload="load()" onunload="GUnload()" must be added into your existing <body> tag.


Can I see your page where the map should appear?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline darkcurves

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • KTM Railway Fan Club - Gallery
Re: [MOD-beta] Google-Maps Integration V.01
« Reply #145 on: March 10, 2009, 07:19:17 AM »
I removed the body tag from details.html and added the onload="load()" onunload="GUnload()" to header.html body tag. Still the same, map wont appear in all three browsers.

The link to that page is:  http://gallery.keretapi.com/details.php?image_id=96

Thanks!  :)

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD-beta] Google-Maps Integration V.01
« Reply #146 on: March 10, 2009, 07:30:35 AM »
The mod is actually expect you to have <body> tag inside each "main" template and not in header.html

Try insert
Code: (template) [Select]
{if gmap}
{gmap_java}
{endif gmap}
into header.html above <body> and see if it works

Also, I think line
     "   map.setCenter(new GLatLng(" .$image_gmap_latitude"," .$image_gmap_longitude"), " .$image_gmap_zoom", " .$image_gmap_type2"); \n"

should be:
     "   map.setCenter(new GLatLng(\"" .$image_gmap_latitude"\",\"" .$image_gmap_longitude"\"), " .$image_gmap_zoom", " .$image_gmap_type2"); \n"


P.S.
It is always a good idea look into javascript console (in FF) to see if any errors there ;)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline darkcurves

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • KTM Railway Fan Club - Gallery
Re: [MOD-beta] Google-Maps Integration V.01
« Reply #147 on: March 10, 2009, 08:40:10 AM »
I did both above, still the same. Should i remove the body tag at header.html and insert in each main template?  :(

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD-beta] Google-Maps Integration V.01
« Reply #148 on: March 10, 2009, 08:48:15 AM »
My last code was wrong, the original is fine.
Right now the problem you have is :
1) you have two times in header.html:
Code: [Select]
{if gmap}
{gmap_java}
{endif gmap}

2) you have incorrect longitude and latitude values saved in the database (3°15'31.57"N / 101°33'17.80"E). These two values must be just numbers from -180 to 180 nothing else (minus sign also accepted)

[EDIT]
try use this instead:
3.258767 / 101.554946
« Last Edit: March 10, 2009, 08:59:20 AM by V@no »
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline darkcurves

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • KTM Railway Fan Club - Gallery
Re: [MOD-beta] Google-Maps Integration V.01
« Reply #149 on: March 10, 2009, 09:43:06 AM »
Thanks Vano, works great.   :D