Member
Member
mactable   22-02-2009, 16:19
#1

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.

Member
Member
sbillard   22-02-2009, 18:09
#2

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.

Member
Member
mactable   22-02-2009, 20:15
#3

@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

Member
Member
sbillard   22-02-2009, 20:29
#4

Be sure you are running on the current nightly build.

Member
Member
mactable   22-02-2009, 20:48
#5

@sbillard,

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

thx again.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.