ZenphotoCMS Forum
google maps not working on album page - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html)
+--- Thread: google maps not working on album page (/thread-5030.html)



google maps not working on album page - weisim - 2009-04-13

Hi,

I am having a problem getting google maps to appear on the album page of ZenPhoto. I have succesully got it working on each of the image pages, however the map does not appear on album pages.

I searched thru this forum and found this post which suggested that I wait for 1.2.4:
http://www.zenphoto.org/support/topic.php?id=5206#post-30450

I have done so, but the google maps still does not appear to be showing on the album page. Please take a look at the gallery installation here to see what I mean:
http://sim-family.net/gallery/index.php?album=2009%2F04%2F11-16+-+Malaysia+Trip

-Wei




google maps not working on album page - weisim - 2009-04-15

OK I've fixed the problem. With people having the same problem, you need to insert the following code into themes/default/album.php (assuming you're using the default theme).

``
    ``
``

I just stuck it under:
``

but you can have it pretty much wherever you feel like putting the map (before/after rating etc)




google maps not working on album page - weisim - 2009-05-30

also change toggle=false in the printAlbumMap function in plugins/google_maps.php else it'll be hidden by default, and there doesn't seem to be a toggle button to show it.