ZenphotoCMS Forum
google map toggle problem - 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 map toggle problem (/thread-4716.html)



google map toggle problem - mactable - 22-02-2009

hi,

my zenphoto is using default theme, with google map plugin enabled.

i would like to toggle the map to be shown default, i made it successed in album page, but fails in image page, even i have passed the right parameter ( $toggle = ture)

please help, thx.




google map toggle problem - sbillard - 22-02-2009

If you are using literallly $toggle=true this is not correct syntax for passing parameters. Parameters are positional. You need to have true as the sixth parameter.




google map toggle problem - mactable - 22-02-2009

@sbillard,

yes, i have passed the right parameter in right position, the code in "default" theme image.php is:

printImageMap(NULL, NULL, NULL, NULL, gettext('Google Map'), false);

in google_map.php, the printImageMap() describe that "@param bool $toggle set to true to hide initially", but does not work as my expect when i set to false

please help, thx




google map toggle problem - sbillard - 22-02-2009

Be sure you are running on the current nightly build.




google map toggle problem - mactable - 22-02-2009

@sbillard,

thx for your advice, i have upgraded to latest nightly build and it does work

thx again.