Main menu

Forum


× Help Forum English

[SOLVED: 3.7.2] How can I select the google map type?

  • Lyr!C
  • Lyr!C's Avatar
  • Administrator
  • Administrator
  • Lead Developer
More
6 years 7 months ago - 6 years 7 months ago #15725 by Lyr!C
Replied by Lyr!C on topic How can I select the google map type?
Hello,

Thanks for useful feedback!

Space is not an issue for Google Maps on modern browsers who will auto-convert space to %20
But yes, i've forgotten to add the url encoding to set the url properly. (both for event rendering as for javascript uri.)

In the attached version 3.7.2-dev2, i've added the needed encoded! ;-)


Also the "#10;								" part is a bit strange.


In fact, all this part "xxx
								&" is weird...

Is it possible to get an online link to check this, as maybe this encoding is processed by another third party extension (template, security extension) hidding/masking the credentials ?...

And could you check if still the strange key rendering with dev2 ?

Thank you!

Best regards,
Cyril


File Attachment:

File Name: iCagenda_3...dev2.zip
File Size:1,708 KB

Latest version : iCagenda 3.9.8
We recommend every user to keep iCagenda updated.
Don't forget to have your Joomla!™ up-to-date!

Do you like iCagenda?
I would appreciate if you could take 5 minutes to post a review on JED (Joomla Extensions Directory) .

File Attachment:

Attachments:
Last edit: 6 years 7 months ago by Lyr!C.

Please Log in or Create an account to join the conversation.

  • RichardEb
  • Topic Author
  • New Member
  • New Member
More
6 years 7 months ago - 6 years 7 months ago #15745 by RichardEb
Replied by RichardEb on topic How can I select the google map type?
Sry for the late reply. Was very busy the last week. I can give you the url on a private channel. How can I contact you? (Mail, PM-System, ...?)(Not needed anymore, pls see next post)

The encoding works fine now. Maybe another problem: I have updated from 3.7.2-dev to 3.7.2 . This resetted the "Maps Service" from embed to Javascript. This shouldn't happen in future releases as this can be a cause for very high costs!
Last edit: 6 years 7 months ago by RichardEb.

Please Log in or Create an account to join the conversation.

  • RichardEb
  • Topic Author
  • New Member
  • New Member
More
6 years 7 months ago - 6 years 7 months ago #15746 by RichardEb
Replied by RichardEb on topic How can I select the google map type?
I just reviewed your code and found the cause of the whitespace bug. Your code looks like this(googlemaps.php):
src="https://www.google.com/maps/embed/v1/place?key=' . trim($embedKey) . '
								&q=' . urlencode(strip_tags($item->address)) . '" allowfullscreen>

As you can see you added whitespaces within the php string tags. It should look like this:
src="https://www.google.com/maps/embed/v1/place?key=' . trim($embedKey) . '&q=' . urlencode(strip_tags($item->address)) . '" allowfullscreen>

This will solve your problem.

I repost this so you don't overlook it:

Maybe another problem: I have updated from 3.7.2-dev to 3.7.2 . This resetted the "Maps Service" from embed to Javascript. This shouldn't happen in future releases as this can be a cause for very high costs!
Last edit: 6 years 7 months ago by RichardEb.

Please Log in or Create an account to join the conversation.

  • Lyr!C
  • Lyr!C's Avatar
  • Administrator
  • Administrator
  • Lead Developer
More
6 years 7 months ago #15748 by Lyr!C
Replied by Lyr!C on topic How can I select the google map type?

I just reviewed your code and found the cause of the whitespace bug. Your code looks like this(googlemaps.php):

src="https://www.google.com/maps/embed/v1/place?key=' . trim($embedKey) . '
								&q=' . urlencode(strip_tags($item->address)) . '" allowfullscreen>

As you can see you added whitespaces within the php string tags. It should look like this:
src="https://www.google.com/maps/embed/v1/place?key=' . trim($embedKey) . '&q=' . urlencode(strip_tags($item->address)) . '" allowfullscreen>

This will solve your problem.

Thanks for this report, i will review it for next 3.7.3

But the google maps is still working even with the php space... so where is the problem for you ?

Maybe another problem: I have updated from 3.7.2-dev to 3.7.2 . This resetted the "Maps Service" from embed to Javascript. This shouldn't happen in future releases as this can be a cause for very high costs!

=> this is because of the default setting from update to 3.7.2 from version before 3.7.2 (dev is acting there as a previous version to 3.7.2, and not officially released :-) ). So the script to update setting for older version than 3.7.2 won't run anymore later ;-)

Latest version : iCagenda 3.9.8
We recommend every user to keep iCagenda updated.
Don't forget to have your Joomla!™ up-to-date!

Do you like iCagenda?
I would appreciate if you could take 5 minutes to post a review on JED (Joomla Extensions Directory) .

File Attachment:

Please Log in or Create an account to join the conversation.

  • RichardEb
  • Topic Author
  • New Member
  • New Member
More
6 years 7 months ago - 6 years 7 months ago #15754 by RichardEb
Replied by RichardEb on topic How can I select the google map type?

Lyr!C wrote:
But the google maps is still working even with the php space... so where is the problem for you ?


I don't have any. Just wanted to help to improve your code.
Last edit: 6 years 7 months ago by RichardEb.
The following user(s) said Thank You: Lyr!C

Please Log in or Create an account to join the conversation.

  • Lyr!C
  • Lyr!C's Avatar
  • Administrator
  • Administrator
  • Lead Developer
More
6 years 7 months ago #15757 by Lyr!C
Replied by Lyr!C on topic How can I select the google map type?
Thanks! ;-)

Strange that you don't have any with not this change... (i've seen a few other sites than mines since embed introduced, and none with display issue...)

In all cases, i will integrate the change for next 3.7.3 (after my vacation... i'm on road! ;-) )

Best regards,
Cyril

Latest version : iCagenda 3.9.8
We recommend every user to keep iCagenda updated.
Don't forget to have your Joomla!™ up-to-date!

Do you like iCagenda?
I would appreciate if you could take 5 minutes to post a review on JED (Joomla Extensions Directory) .

File Attachment:

Please Log in or Create an account to join the conversation.

Moderators: Lyr!C
Time to create page: 0.174 seconds

 

Follow Us

Create your Joomla templates with Template Creator CK

acymailing logo new