google maps not working on album page

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/04/11-16+-+Malaysia+Trip

-Wei

Comments

  • 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).

    `
    `
    `<?php if (function_exists('printAlbumMap')) printAlbumMap(); ?>`
    `
    `

    I just stuck it under:
    `<?php if (function_exists('printSlideShowLink')) printSlideShowLink(gettext('View Slideshow')); ?>`

    but you can have it pretty much wherever you feel like putting the map (before/after rating etc)
  • weisim Member
    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.
Sign In or Register to comment.