Skip to Content Skip to Menu

[SOLVED] Google map code in profile not valid!

  • Overtone
  • Overtone
  • OFFLINE
  • Posts: 22
  • Thanks: 0
  • Karma: 0
10 years 7 months ago - 10 years 6 months ago #243527 by Overtone
I have insert a google map code to each profile by using a delimiter field. Everything works fine, but the CB encode my "&" to "&", which will give many errors in the W3C validator. Have anyone the same problem?
Last edit: 10 years 6 months ago by krileon.

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
10 years 6 months ago #243556 by nant
Replied by nant on topic Google map code in profile not valid!

Overtone wrote: I have insert a google map code to each profile by using a delimiter field. Everything works fine, but the CB encode my "&" to "&", which will give many errors in the W3C validator. Have anyone the same problem?


I am guessing it is your editor that is doing this and not CB.

Try turning off your Joomla editor and directly edit the HTML code and put & a m p ; instead of the plain &

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

  • Overtone
  • Overtone
  • OFFLINE
  • Posts: 22
  • Thanks: 0
  • Karma: 0
10 years 6 months ago - 10 years 6 months ago #243587 by Overtone
Replied by Overtone on topic Google map code in profile not valid!
No, it´s not the editor. In the database I found only &'s, but in the source code in the frontend only &'s!

Database:
Code:
<iframe width="100%" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.de/maps?f=q&amp;source=s_q&amp;hl=de&amp;geocode=&amp;q=[address]+[zipcode]+[city]+Schweiz&amp;aq=3&amp;t=m&amp;z=15&amp;output=embed"></iframe>

Source code frontend (user data removed):
Code:
<iframe width="100%" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.de/maps?f=q&source=s_q&hl=de&geocode=&q=...
Last edit: 10 years 6 months ago by Overtone.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 6 months ago #243595 by krileon
Replied by krileon on topic Google map code in profile not valid!
You need to click "View Source" below your editor or on its toolbar and supply your code there otherwise Joomlas editor will encode it dynamically (this is done before it stores so it will store encoded). Using "View Source" prevents the encoding. Do not swap back after supplying your code as it will then encode it. I'm pretty sure Joomlas editor has an option to turn this off, but if not look into JCE.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

  • Overtone
  • Overtone
  • OFFLINE
  • Posts: 22
  • Thanks: 0
  • Karma: 0
10 years 6 months ago #243601 by Overtone
Replied by Overtone on topic Google map code in profile not valid!
Done! The problem still exist!

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 6 months ago #243639 by krileon
Replied by krileon on topic Google map code in profile not valid!
Are you trying to add that to a textarea field? text editor field? or delimiter field? Please be more specific as to how this is being added.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

Moderators: beatnantkrileon
Powered by Kunena Forum