PHP-GTK2 Cookbook Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Joomla's reformatting my googleMaps snippet! (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Joomla's reformatting my googleMaps snippet!


#5276
radstu (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Joomla's reformatting my googleMaps snippet! 1 Year ago Karma: 0  
So on two J2.5 site's I've found joomla is having issues with the google maps snippets.

I assumed TinyMCE was formatting things incorrectly, so I installed JCEditor, and it did the same thing. (Both of them regardless of if code view was on or off.) I also tried the 'toggle editor' below the text area before saving, and that also failed. I then went to global configuration and switched to None ... and it's still happening. Somehow the brackets and quotes are being converted to HTML Entities.

What I'm starting with (code copied from the kksou examples page with spacing added in this example to bypass the google Maps widget on this post):

Code:
<p>ohio locations page</p>

<p>{ google Maps addr="1600 Amphitheatre Parkway, Mountain View CA 94043"}</p>

<p>Moar Text Heer</p>
What I'm ending up with after saving:
Code:
<p>ohio locations page</p>

<p />{ google Maps addr="1600 Amphitheatre Parkway, Mountain View CA 94043&quot;}&lt;/p&gt;

&lt;p&gt;Moar Text Heer&lt;/p&gt;"
What am I doing wrong?
 
 
Last Edit: 2012/05/04 09:57 By radstu. Reason: formatting for posterity
  The administrator has disabled public write access.

#5277
radstu (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Re:Joomla's reformatting my googleMaps snippet! 1 Year ago Karma: 0  
.
 
 
Last Edit: 2012/05/04 09:58 By radstu. Reason: no longer necessary since I edited the earlier message
  The administrator has disabled public write access.

#5278
radstu (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Re:Joomla's reformatting my googleMaps snippet! 1 Year ago Karma: 0  
Here's a screenshot of the code, copied and pasted from my window:

 
 
Last Edit: 2012/05/04 09:58 By radstu.
  The administrator has disabled public write access.
#5282
kksou (Admin)
Admin
Posts: 1678
graph
User Online Now Click here to see the profile of this user
Re:Joomla's reformatting my googleMaps snippet! 1 Year ago Karma: 27  
Hi,

1) Please switch back to using TinyMCE
2) When you enter the code, please use the WYSIWYG mode. DO NOT click the "HTML" button and use the HTML mode.

Please try the above and let me know if it works.

Note: if the above still doesn't work, please try the above on a fresh install of Joomla somewhere on your site - with only googleMaps plugin installed. This will allow you to test if it's conflicts with your other plugins. Your output looks wierd because why are the first 3 <p>/</p> ok while the last 3 <p>/</p> being converted to htmlentities? Also, why is the first " ok while the other " being converted?

Regards,
/kksou
 
  The administrator has disabled public write access.
#5283
radstu (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Re:Joomla's reformatting my googleMaps snippet! 1 Year ago Karma: 0  
Greetings

My initial tests were all with TinyMCE and just the WYSIWYG mode, and this also was occurring on a separate site, although neither were 'clean' installs, both were still fairly new.

In both cases, I copied the code directly from http://www.kksou.com/php-gtk2/Joomla-Gadgets/googleMaps-plugin.php samples page and used the "addr" method and example:

{ google Maps addr="1600 Amphitheatre Parkway, Mountain View CA 94043" }
(...spaces added to try and have it display in this post)

The HTML modes were engaged when I was assuming that the editors were affecting things, but even without them turned on, the issue persisted on both sites.

It seems as if the conversion to HTML entities only occurs after the { } code. In fact if the { google Maps ..... } was the last thing on the page, code was ADDED after it was saved, and I'd get some extra < /P > or < P /> tags that would appear, even if there was nothing there. Anything after it gets wonky, nothing before it.

In both cases, the issue was with the demo version. I downloaded and purchased the regular version for my new site, and the issue went away. Also, before doing that, I had downloaded the Module version, and was able to use that on my sites without having the code issue ... so it was something to do with the invocation of it within an article.

So ... for now I have worked around the issue ... on one site I have a few errant characters that nobody has mentioned, and on my live site I have purchased the component and the purchased version does not exhibit the same behavior.
 
  The administrator has disabled public write access.
#5284
radstu (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Re:Joomla's reformatting my googleMaps snippet! 1 Year ago Karma: 0  
Well, no, apparently it isn't solved with the paid version. I'd switched to lat and long values, but when I decided to save a few lines of code by using the addr parameter (so I had a nice looking label instead of specifying a label) the HTML entities come back on my new site now.



All those red arrows denote code that was working fine, with the { google Maps } tag until I switched to the addr parameter from lat and long
 
  The administrator has disabled public write access.
#5285
radstu (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Re:Joomla's reformatting my googleMaps snippet! 1 Year ago Karma: 0  
I think I've narrowed it down to a closing quotation and a closing bracket.

When I copy the following code from the demo site to my J2.5 site:

Code:
{ google Maps lat=37.4219720 long=-122.0841430 label="Google Inc.~
1600 Amphitheatre Parkway.~Mountain View, CA 94043"}  
Everything goes crazy. If I add a space between the " and the }, everything works fine. It doesn't make a difference which tag ... addr, label, etc, they all produce the HTML entities. If I leave a space, like so:
Code:
{ google Maps lat=37.4219720 long=-122.0841430 label="Google Inc.~
1600 Amphitheatre Parkway.~Mountain View, CA 94043" }  
Then it's smooth sailing. (note - the initial space and the two words in the code samples "{ google Maps" are just to get the tag to display on this forum.)
 
 
Last Edit: 2012/05/04 09:56 By radstu. Reason: formatting
  The administrator has disabled public write access.



Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Blog - Forum - Privacy Policy - Contact Us
Links - Classes - Social Business - BPM - Web - General
Copyright © 2006-2013. kksou.com. All Rights Reserved