Main menu

Forum


The developer takes a few days off for Summer vacation...
...and will be back with charged battery!

From 14 June to 29 June, 2025 included
During this period,
assistance from developer will not be provided.

NEWS: iCagenda 4.0.0-alpha1 will be available for testing for users with a PRO subscription in July!

× Help Forum English

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

  • Lyr!C
  • Portrait de Lyr!C
  • Administrateur
  • Administrateur
  • Lead Developer
Plus d'informations
il y a 7 ans 2 semaines - il y a 7 ans 2 semaines #15725 par Lyr!C
Réponse de Lyr!C sur le sujet 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


Fichier attaché :

Nom du fichier : iCagenda_3...dev2.zip
Taille du ficher :1,708 ko

Latest version : iCagenda 3.9.11
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) .

Fichier attaché :

Pièces jointes :
Dernière édition: il y a 7 ans 2 semaines par Lyr!C.

Connexion ou Créer un compte pour participer à la conversation.

  • RichardEb
  • Auteur du sujet
  • Nouveau membre
  • Nouveau membre
Plus d'informations
il y a 7 ans 1 semaine - il y a 7 ans 1 semaine #15745 par RichardEb
Réponse de RichardEb sur le sujet 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!
Dernière édition: il y a 7 ans 1 semaine par RichardEb.

Connexion ou Créer un compte pour participer à la conversation.

  • RichardEb
  • Auteur du sujet
  • Nouveau membre
  • Nouveau membre
Plus d'informations
il y a 7 ans 1 semaine - il y a 7 ans 1 semaine #15746 par RichardEb
Réponse de RichardEb sur le sujet 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!
Dernière édition: il y a 7 ans 1 semaine par RichardEb.

Connexion ou Créer un compte pour participer à la conversation.

  • Lyr!C
  • Portrait de Lyr!C
  • Administrateur
  • Administrateur
  • Lead Developer
Plus d'informations
il y a 7 ans 1 semaine #15748 par Lyr!C
Réponse de Lyr!C sur le sujet 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.11
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) .

Fichier attaché :

Connexion ou Créer un compte pour participer à la conversation.

  • RichardEb
  • Auteur du sujet
  • Nouveau membre
  • Nouveau membre
Plus d'informations
il y a 7 ans 1 semaine - il y a 7 ans 1 semaine #15754 par RichardEb
Réponse de RichardEb sur le sujet How can I select the google map type?

Lyr!C écrit:
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.
Dernière édition: il y a 7 ans 1 semaine par RichardEb.
Les utilisateur(s) suivant ont remercié: Lyr!C

Connexion ou Créer un compte pour participer à la conversation.

  • Lyr!C
  • Portrait de Lyr!C
  • Administrateur
  • Administrateur
  • Lead Developer
Plus d'informations
il y a 7 ans 1 semaine #15757 par Lyr!C
Réponse de Lyr!C sur le sujet 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.11
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) .

Fichier attaché :

Connexion ou Créer un compte pour participer à la conversation.

Modérateurs: Lyr!C
Temps de génération de la page : 0.161 secondes

Follow Us

Créez vos templates Joomla avec Template Creator CK

acymailing logo new