Page 7 of 12 FirstFirst ... 56789 ... LastLast
Results 61 to 70 of 111
  1. #61

    Default Re: Google Mapinator

    I have installed this on ZenCart v1.3.7 and it works great!
    Thank You :o)

    I did have a discrepancy in the instructions.

    "3. Add the following code to your define_contact_us.php
    this is usually located in includes/languages/english/YOURTEMPLATE/define_contact_us.php"

    For me at least it should read...

    "3. Add the following code to your define_contact_us.php
    this is usually located in includes/languages/english/html_includes/YOURTEMPLATE/define_contact_us.php"

    Other than that, Everything else was correct, and it is probably due to different versions having different file structures.
    I'm posting this to help others who's file structure is like mine, so they install it correctly.

    Thanks again for your hard work!

  2. #62
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: Google Mapinator

    Quote Originally Posted by thm View Post
    Just a quick update. I got a new API for xxx/store and it still says that the API code is used by another site.

    Does anyone know why it is doing this?

    Cheers.
    I am also receiving this error message. The funny thing is, everything works fine on my localhost (running Apache), but when I test this on my live server (IIS 6) I get the error message.

    Has anyone found a fix for this yet?

    Also, my Contact Us page uses SSL. Is there a way to use SSL with Google Maps (to make all the objects on the Contact Us page secure)?

    Thanks in advance! :)

  3. #63
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: Google Mapinator

    Finally I've managed to solve my problem. I edited the code a little and everything is now working fine.

    The final code I'm using is listed below. Hopefully it'll help someone else out.

    Code:
    <?php
    // Zen Cart Google Mapinator
    // (k) Graham Bevins (Snorkpants)
    // (c) 2006 Phoenix Web Development
    // Email: [email protected]
    // Version 0.1a
    
    /*
     This is my first solo contrib. I hope you like it and find use for it
    */
    
    /*
        This program is free software; you can redistribute it and/or modify
        it under the terms of the GNU General Public License as published by
        the Free Software Foundation; either version 2 of the License, or
        (at your option) any later version.
    
        This program is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.
    
        You should have received a copy of the GNU General Public License
        along with this program; if not, write to the Free Software
        Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    */
    ?>
    <?php
    function nl2brStrict($text, $replacement = '<br />')
    {
       return preg_replace("((\r\n)+)", trim($replacement), $text);
    }
    ?>
    
    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=<?php echo nl2brStrict(GOOGLEMAP_KEY);?>"
      type="text/javascript"></script>
      <script type="text/javascript">
    
    //<![CDATA[
    
    function GoogleMapLoad() 
    {
      if (GBrowserIsCompatible()) 
      {
    	var map = new GMap2(document.getElementById("map"));
    	map.setCenter(new GLatLng(<?php echo nl2brStrict(GOOGLEMAP_LAT);?>, <?php echo nl2brStrict(GOOGLEMAP_LNG);?>), <?php echo nl2brStrict(GOOGLEMAP_ZOOM);?>);
    	map.addControl(new GMapTypeControl());
    	map.addControl(new GSmallMapControl());
    
    	var point = new GLatLng(<?php echo nl2brStrict(GOOGLEMAP_LAT);?>, <?php echo nl2brStrict(GOOGLEMAP_LNG);?>);
    	var infoTabs = [ 
    		new GInfoWindowTab("Address", "<?php echo nl2brStrict(STORE_NAME_ADDRESS);?>"),
    		new GInfoWindowTab("Telephone", "<?php echo nl2brStrict(STORE_TELEPHONE);?>")
    	
    	];
    	
    	var marker = new GMarker(point);
    	GEvent.addListener(marker, "click", function() { marker.openInfoWindowTabsHtml(infoTabs);});
    	map.addOverlay(marker);
    	marker.openInfoWindowTabsHtml(infoTabs);
       }
    }
    
    //]]>
    </script>

  4. #64
    Join Date
    Apr 2007
    Posts
    36
    Plugin Contributions
    0

    Default Re: Google Mapinator

    this link provides a better solution than any mod proposed in this forum. no modification required, multi sites updateable online via google calc, colors, sidebar.

    http://gmaps-samples.googlecode.com/...ecustommap.htm

    example here
    http://www.quartershop.com/index.php...age=contact_us


    enjoy

  5. #65
    Join Date
    Jun 2005
    Posts
    95
    Plugin Contributions
    0

    Default Re: Google Mapinator

    Hi, I found it was easier to use this link
    http://www.wikimapia.org
    and just copy and paste the code into the contact us page. I can mark places and change it easily any time I like.

    I hope it helps others too.

  6. #66
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    163
    Plugin Contributions
    0

    Default Re: Google Mapinator

    Question:

    I got this working fine, but it lacks the info I really want that Google Maps usually places about the business.

    See this link and how the balloon has a pic of the business, link to reviews and more:
    http://maps.google.com/maps?f=l&hl=e...3&iwloc=A&om=1

    Now, on our contact page it just has the basic balloon with the address and phone. How do i get what's in the above link into my map on the contact page?

    our current contact page: http://atthemeadow.com/shop/index.php?main_page=contact_us

  7. #67
    Join Date
    Aug 2006
    Location
    portlandish, oregon
    Posts
    799
    Plugin Contributions
    0

    Default Re: Google Mapinator

    Quote Originally Posted by Pablosan View Post
    I got all these errors with the form [code] Sorry, is your name correct? Our system requires a minimum of 2 characters. Please try again.

    Sorry, my system does not understand your email address. Please try again.

    Did you forget your message? We would like to hear from you. You can type your comments in the text area below.
    I am also getting these errors. I wasn't at first, and it would take me to Google Maps although it didn't not give me driving directions (then I noticed in the code it had a spot to enter the store's address)...now when I hit "get directions" it is giving me errors like I tried to send a message via the contact us form.

    I'll play around a bit and see if I can't figure it out...but I'm not sure if I messed up the code or if it's because of all the customizing I did on the Contact Us page...

  8. #68
    Join Date
    Aug 2006
    Location
    portlandish, oregon
    Posts
    799
    Plugin Contributions
    0

    Default Re: Google Mapinator

    ok so I had to make sure the code that calls for the html_define was below the </form> at the bottom of the page. Now the driving directions button seems to work...but is it supposed to actually give you driving directions? I'm having to input the ending address (store's address) again at the Google Maps website...

  9. #69
    Join Date
    Oct 2006
    Location
    Grimsby UK
    Posts
    98
    Plugin Contributions
    0

    Default Re: Google Mapinator

    Hi

    I cannot get this mod to work:
    I have the API key, I have long and lat. I have entered the html code into the conatct us page using the define pages editor and still no map just the outer border.
    I get no error message and it doesn't work in any browsers!

    Help

    http://www.impact-leisure.com

    Dave

  10. #70
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: Google Mapinator

    Quote Originally Posted by dml311071 View Post
    Hi

    I cannot get this mod to work:
    I have the API key, I have long and lat. I have entered the html code into the conatct us page using the define pages editor and still no map just the outer border.
    I get no error message and it doesn't work in any browsers!

    Help

    http://www.impact-leisure.com

    Dave
    Hi Dave,

    Not sure if this will fix things, but your body tag output is incorrect.

    It currently reads (at the end):

    Code:
    onunload=GUnload()">
    I beleive that this should read:

    Code:
    onunload="GUnload()">
    Try changing that and see what happens.

    Good luck! :)

 

 
Page 7 of 12 FirstFirst ... 56789 ... LastLast

Similar Threads

  1. Contact form Issue after installing Google Mapinator
    By dix30simulation in forum General Questions
    Replies: 5
    Last Post: 24 Mar 2015, 04:57 PM
  2. Google Mapinator not showing MAP
    By leest35 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Dec 2011, 08:34 PM
  3. Zen lightbox 1.4 and google mapinator
    By dml311071 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 4 Dec 2007, 08:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR