Page 1 of 1

Google Map on Contact Page

Posted: Wed Jun 07, 2006 12:39 pm
by fabrizim
Hi all-

I've used a hack on my last few sites to replace the image on the contact details page with a google map. I find it much more suitable for small websites, and it could be expanded with a "Get Directions" input box.

I wrote an article to show how to do this if anyone is interested.

http://joomlicious.com/content/view/5/27/

Regards-
Mark

Re: Google Map on Contact Page

Posted: Thu Aug 17, 2006 8:51 pm
by desk2web
I was hoping that this was going to be the answer to all my problems.  But when I follow the instructions all that happens is IE crashes :(

I am seriously in need of a Google Maps solution with Directions capability, and no matter which extension I try and use, or hack i implement, none seem to work :(

Anyone actually got one working?

Re: Google Map on Contact Page

Posted: Thu Aug 17, 2006 8:58 pm
by fabrizim
Hey man -

I made some adjustments to that code and now you can just download an archive and unzip at the joomla installation root instead of doing all the hacking...

Look here

I also found that nasty little spot of IE badness and made a fix for that -- the hack also has a little for for directions now too.

Regards-
Mark

Re: Google Map on Contact Page

Posted: Thu Aug 17, 2006 9:37 pm
by desk2web
Thanks, but the zip is corrupt :(

Re: Google Map on Contact Page

Posted: Thu Aug 17, 2006 9:39 pm
by fabrizim
I've tested on several machines and haven't had a problem -- try downloading again... If it doesn't work, I'll rezip and update my download.

Regards-
Mark

Re: Google Map on Contact Page

Posted: Thu Aug 17, 2006 9:59 pm
by desk2web
Tried again, still the same :(

The files show in the zip but when I try and extract with WinRAR or XP the only file which actually extracts the contact.html.php

Re: Google Map on Contact Page

Posted: Thu Aug 17, 2006 10:30 pm
by fabrizim
I rezipped the files with 7-zip instead of winrar. Try now - I was able to extract all files from the new archive on another machine.

Re: Google Map on Contact Page

Posted: Thu Aug 17, 2006 10:50 pm
by desk2web
Many thanks, works :D

Any ideas how this can be adapted to show directions etc as well?  Not asking for much tonight am I! Sorry :)

Re: Google Map on Contact Page

Posted: Thu Aug 17, 2006 11:11 pm
by fabrizim
The best I've been able to figure out for directions is the ability to click the little google tack thingy and open a bubble with a get directions form. That said, it will open the directions in a _blank window... AFAIK there is no way to pull the directions code to your site with the current api.

It is possible to have the bubble open when the map loads though... I changed the code for download and added it as another parameter for a specific contact. Unzip again and see if thats what you need...

Regards-
Mark

Re: Google Map on Contact Page

Posted: Mon Oct 02, 2006 8:07 pm
by aravot
This should be part of Joomla core

Re: Google Map on Contact Page

Posted: Sun Sep 23, 2007 4:45 pm
by joomleb
Is there not a demo link about this ?

Please, take a look also on this solution:
http://forum.joomla.org/index.php/topic ... msg1005212

Re: Google Map on Contact Page

Posted: Wed Oct 17, 2007 7:20 am
by FidelGonzales
Yes. Here's the contact page hack example.

http://www.rolldesign.com/contact/

You can find the contact component Google Map hack here.

http://joomlicious.com/component/option ... Itemid,33/

Re: Google Map on Contact Page

Posted: Thu Oct 25, 2007 4:22 pm
by bluphoenix
I got the hack to show a map on the contact page. I check multiple sites and I know my lat and long is right but it's pointing to Antartica and I'm in Canada! ??? Anyone know what the problem could be?

Thanks in advance  :D


UPDATE: Disregard this post. I was putting the numbers in the wrong box.  :-[

Re: Google Map on Contact Page

Posted: Thu Oct 25, 2007 5:08 pm
by FidelGonzales
You likely have it entered wrong. Please email the address or temporarily provide it here.

Re: Google Map on Contact Page

Posted: Sat Jan 05, 2008 1:26 am
by Pixelate
If anyone wants to know how to add the longtitude / latitude from the google map, there's a simple way described here.
http://lifehacker.com/software/google-m ... 267361.php

Copy & past this javascript code into your browser bar

Code: Select all

javascript:void(prompt('',gApplication.getMap().getCenter()));
and a javascript popup will show you the long / lat info.

Re: Google Map on Contact Page

Posted: Thu Jan 24, 2008 1:22 am
by ArtGoddess
Is this hack working with the new 1.5 stable just released?

Will be nice...

Your help is really appreciated in advance.

Re: Google Map on Contact Page

Posted: Thu Jan 24, 2008 8:05 am
by cafreamoroso
please i need this in joomla 1.5 stable... i don't care about mambots, i would really like to just paste my google html in miscellaneous info like i did in 1.0.13, is there any way to achieve this.. :( ? thanks in advance for your help.