Zen Cart Logo
Forums / All Other Contributions/Addons / Google Mapinator

Google Mapinator

Views: 28,723

Results 81 to 100 of 108
5 Apr 2011, 10:00 AM
#81
stefanl avatar

stefanl

Zen Follower

Join Date:
Aug 2009
Location:
SWEDEN
Posts:
198
Plugin Contributions:
0

Google Mapinator

I know this is a very old thread, but I found your last question unanswered.

Adding a Google Map to once Contact Us page isnt that difficult really. And you dont need any API or anything.

I just added to a clients webshop I am working on today.

Open Notepad++
Open define contact us.php page
Go to google maps and write the adress name.
IN google maps use the "Link" and the iframe code for linking to the map. Thats the second (2nd) field in the link page.

If you have a website program like Expression web or Dreamweaver simply start a new HTML page and in the code view place/paste the code from Google Maps page

If you have split view, both code and site view in Dreamweaver or Expression web, then you will see how the little frame in Sie view slowly and slowly search and connects.

Now when you see it works, paste the code you pasted in Dreamweaver or Expession web and move to Notepad++

In Notepad++ and the difen contact us php page, simply paste the link in question. Click SAVE and upload the page with your FTP

Go to the internet browser and watch magic occuring. You see it on the site.

Simple.
And much more simple than writing this text actually :smile:

14 Oct 2011, 2:13 AM
#82
i_dannati avatar

i_dannati

New Zenner

Join Date:
Oct 2011
Location:
Port Hope, Ontario
Posts:
20
Plugin Contributions:
0

Re: Google Mapinator

stefanl:

I know this is a very old thread, but I found your last question unanswered.

Adding a Google Map to once Contact Us page isnt that difficult really. And you dont need any API or anything.

I just added to a clients webshop I am working on today.

Open Notepad++
Open define contact us.php page
Go to google maps and write the adress name.
IN google maps use the "Link" and the iframe code for linking to the map. Thats the second (2nd) field in the link page.

If you have a website program like Expression web or Dreamweaver simply start a new HTML page and in the code view place/paste the code from Google Maps page

If you have split view, both code and site view in Dreamweaver or Expression web, then you will see how the little frame in Sie view slowly and slowly search and connects.

Now when you see it works, paste the code you pasted in Dreamweaver or Expession web and move to Notepad++

In Notepad++ and the difen contact us php page, simply paste the link in question. Click SAVE and upload the page with your FTP

Go to the internet browser and watch magic occuring. You see it on the site.

Simple.
And much more simple than writing this text actually :smile:

So Simple yet so beautiful.. Fantastic!
Easily the quickest fix for adding google maps to contact us page by far.. Thanks Stefani:clap:

10 Jan 2012, 2:59 PM
#83
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Google Mapinator

I am working on a update for this mod to be compliant with Google Maps JavaScript API V3.

It is almost finished, only some testing left.

11 Jan 2012, 12:49 AM
#84
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Google Mapinator

Version 0.13 has been submitted for release to the downloads section. Now we have to wait

10 Mar 2012, 3:23 PM
#85
mcqueeneycoins avatar

mcqueeneycoins

Zen Follower

Join Date:
Jan 2008
Posts:
156
Plugin Contributions:
0

Re: Google Mapinator

Design75--I can't get this to work with 1.5. I run/install the configuration files, but nothing appears in My Store to add my API code, etc. like it did in 1.3.9. Any thoughts on how I can get this to work?

10 Mar 2012, 9:14 PM
#86
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Google Mapinator

Sorry, but I haven't had the time to test this in 1.5, so I have no idea if it will work.

I'll try to make some time this week to try it.

14 Mar 2012, 12:29 AM
#87
mcqueeneycoins avatar

mcqueeneycoins

Zen Follower

Join Date:
Jan 2008
Posts:
156
Plugin Contributions:
0

Re: Google Mapinator

Thanks! Just let us know when it's ready--it's a great mod so I appreciate your support in getting it updated.

14 Mar 2012, 10:43 AM
#88
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Google Mapinator

Google Mapinator has been updated to v1.0 and works with ZC v1.5.0. The update should be available in Free Addons soon.

3 Sep 2012, 12:09 PM
#89
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Google Mapinator

I just updated the plugin to version 1.1,

New in this version are the sql auto-installer, the ability to specify the width and height of the map through the admin panel, and add a custom marker image if wanted.

22 Jan 2013, 7:10 PM
#90
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Google Mapinator

Wow! Nice job on the installer. I previously had v0.12 and the upgrade instructions went smoothly.

The only suggestion that I have is the "future-proof" the plugin for PHP 5.5 and later where the mysql_ function calls will be deprecated. I changed /ADMIN/includes/functions/extra_functions/google_mapinator.php to contain:

<?php
  if (!function_exists('gm_check_field')) {
    function gm_check_field($tableName,$columnName){
      global $sniffer;
      
      return $sniffer->field_exists($tableName, $columnName);
      
    } //end of function
  }

... making use of the built-in Zen Cart class to "sniff" the database.

22 Jan 2013, 8:06 PM
#91
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Google Mapinator

lat9:

Wow! Nice job on the installer. I previously had v0.12 and the upgrade instructions went smoothly.

The only suggestion that I have is the "future-proof" the plugin for PHP 5.5 and later where the mysql_ function calls will be deprecated. I changed /ADMIN/includes/functions/extra_functions/google_mapinator.php to contain:

<?php if (!function_exists('gm_check_field')) { function gm_check_field($tableName,$columnName){ global $sniffer; return $sniffer->field_exists($tableName, $columnName); } //end of function } ``` > ... making use of the built-in Zen Cart class to "sniff" the database. Hi Lat9, Thanks for the update. I copied the installer from a Numinix module, but I like it too. It can use a little change though. I saw that the late Connor Kerr had a check in his installers if a module is installed, so the installer doesn't need to run every time an admin page is loaded. But this was one of the first modules I dared to update ;) .
17 Apr 2013, 4:44 AM
#92
creyesx6 avatar

creyesx6

Inactive

Join Date:
Dec 2010
Location:
U.S. State of Texas
Posts:
76
Plugin Contributions:
0

Re: Google Mapinator

Thanks for the update and contribution. I am having a problem with the map displaying. I have been working on it for a couple hours and cannot fig Iure out why my map is blank. the url to view is https://www.casablancafurnitureinc.com. I added the API key, verified coordinates, installed properly, etc. But it's still not displaying, just blank. Any help would be appreciated. Thank you.

17 Apr 2013, 12:53 PM
#93
badarac avatar

badarac

Totally Zenned

Join Date:
Aug 2009
Location:
Longs, SC
Posts:
635
Plugin Contributions:
0

Re: Google Mapinator

creyesx6:

Thanks for the update and contribution. I am having a problem with the map displaying. I have been working on it for a couple hours and cannot fig Iure out why my map is blank. the url to view is https://www.casablancafurnitureinc.com. I added the API key, verified coordinates, installed properly, etc. But it's still not displaying, just blank. Any help would be appreciated. Thank you.

I had the same trouble yesterday. I found that a number of items were missing from the configuration tables after the install. I was doing an upgrade to a 1.3.8 site. The 1.3.8 site no longer worked due to a php version change. It had a prior version of mapinator installed. I wound up adding the items to the config table manually or correcting the ones that were already there assigned to the wrong config group. That's where I'd start looking. The sql is in the file 1_Install_Files/admin/includes/installers/new_install.php

17 Apr 2013, 5:19 PM
#94
creyesx6 avatar

creyesx6

Inactive

Join Date:
Dec 2010
Location:
U.S. State of Texas
Posts:
76
Plugin Contributions:
0

Re: Google Mapinator

badarac:

I had the same trouble yesterday. I found that a number of items were missing from the configuration tables after the install. I was doing an upgrade to a 1.3.8 site. The 1.3.8 site no longer worked due to a php version change. It had a prior version of mapinator installed. I wound up adding the items to the config table manually or correcting the ones that were already there assigned to the wrong config group. That's where I'd start looking. The sql is in the file 1_Install_Files/admin/includes/installers/new_install.php

Thanks, one question. When you added items to the config table manually are you speaking of the php file or the tables themselves in the database (ie phpmyadmin)?

17 Apr 2013, 6:34 PM
#95
badarac avatar

badarac

Totally Zenned

Join Date:
Aug 2009
Location:
Longs, SC
Posts:
635
Plugin Contributions:
0

Re: Google Mapinator

creyesx6:

Thanks, one question. When you added items to the config table manually are you speaking of the php file or the tables themselves in the database (ie phpmyadmin)?
I just fixed everything using phpmyadmin. I used the php file for the contents of the table.

18 Apr 2013, 4:26 AM
#96
creyesx6 avatar

creyesx6

Inactive

Join Date:
Dec 2010
Location:
U.S. State of Texas
Posts:
76
Plugin Contributions:
0

Re: Google Mapinator

badarac:

I just fixed everything using phpmyadmin. I used the php file for the contents of the table.

Thanks badarac,
I went through the tables and did find that I needed to update configuration tables due to missing information and also found that the new_install.php was using the wrong table prefix for my database, however after the changes, I am still getting a blank map. Has anyone else had the same problem? I look forward to any further input. Thanks. once again the url is https://www.casablancafurnitureinc.com. It's the contact page I am finding the blank map image.

18 Apr 2013, 3:03 PM
#97
badarac avatar

badarac

Totally Zenned

Join Date:
Aug 2009
Location:
Longs, SC
Posts:
635
Plugin Contributions:
0

Re: Google Mapinator

creyesx6:

Thanks badarac,
I went through the tables and did find that I needed to update configuration tables due to missing information and also found that the new_install.php was using the wrong table prefix for my database, however after the changes, I am still getting a blank map. Has anyone else had the same problem? I look forward to any further input. Thanks. once again the url is https://www.casablancafurnitureinc.com. It's the contact page I am finding the blank map image.
When I go to the contact us page it tries to load the map and finally issues the following message:
Google has disabled use of the Maps API for this application. The provided key is not a valid Google API Key, or it is not authorized for the Google Maps Javascript API v3 on this site. If you are the owner of this application, you can learn about obtaining a valid key here: https://developers.google.com/maps/documentation/javascript/tutorial#api_key

You are probably using an old key and need to go through the process to get a new one. That should take care of it.

18 Apr 2013, 4:20 PM
#98
creyesx6 avatar

creyesx6

Inactive

Join Date:
Dec 2010
Location:
U.S. State of Texas
Posts:
76
Plugin Contributions:
0

Re: Google Mapinator

badarac:

When I go to the contact us page it tries to load the map and finally issues the following message:

You are probably using an old key and need to go through the process to get a new one. That should take care of it.

I will create a new one. Thanks again for your help and time.

6 Nov 2014, 10:14 PM
#99
craighill avatar

craighill

New Zenner

Join Date:
Oct 2014
Location:
United States
Posts:
2
Plugin Contributions:
0

Re: Google Mapinator

badarac:

When I go to the contact us page it tries to load the map and finally issues the following message:

You are probably using an old key and need to go through the process to get a new one. That should take care of it.

I just installed Google Mapinator v1.10 on my zen cart ver.1.5.3 I am getting the same problem, a blank white square with the same error message. I applied for a new API yesterday (my first time) so I would assume that I have a new API key. Any other suggestions? Thanks

7 Nov 2014, 7:55 AM
#100
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Google Mapinator

craighill:

I just installed Google Mapinator v1.10 on my zen cart ver.1.5.3 I am getting the same problem, a blank white square with the same error message. I applied for a new API yesterday (my first time) so I would assume that I have a new API key. Any other suggestions? Thanks

It has been 2 years since I last used this module. I will take a look at it and come with an answer.