10389 Posts in 2200 Topics by 1712 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1357 Views |
-
Getting "Google Map Selection Field" module to work

2 September 2009 at 1:09pm Last edited: 2 September 2009 1:16pm
Hi,
When I follow the directions for installing by inserting the following in MYSITE/_CONFIG.PHP:
EditableGoogleMapSelectableField::$api_key = ABQIAAAAVl6l2mFrWO_iYsdKj2q7zhQZsr62tCq9UT--lZNx8crCYi83XRSvxwfvahQWD86LeX6MhJUSRbSKXg;I get the following error:
Parse error: syntax error, unexpected T_DEC in /home3/islandro/public_html/connienimmon/mysite/_config.php on line 31Any ideas?
Sam -
Re: Getting "Google Map Selection Field" module to work

2 September 2009 at 1:25pm
Got it to work.
I just needed to add the quotes around the key:
As in
EditableGoogleMapSelectableField::$api_key ="ABQIAAAAVl6l2mFrWO_iYsdKj2q7zhQZsr62tCq9UT--lZNx8crCYi83XRSvxwfvahQWD86LeX6MhJUSRbSKXg"; -
Re: Getting "Google Map Selection Field" module to work

16 September 2009 at 2:21am
yes, the installing instruction was bad
==
Installation Instructions
-----------------------------------------------
- Enter your google map API key in your mysite/_config.php file likeEditableGoogleMapSelectableField::$api_key = YOUR API KEY HERE;
==should be better
EditableGoogleMapSelectableField::$api_key = "YOUR API KEY HERE";
-
Re: Getting "Google Map Selection Field" module to work

16 September 2009 at 2:34pm
This has been fixed in the module to make it a bit more clearer. But FYI - you quote every string in PHP, only time you don't is when you're referencing a constant (pre defined) value.
| 1357 Views | ||
|
Page:
1
|
Go to Top |


