By Steven Koontz on Tuesday, 25 October 2016
Posted in General Issues
Likes 0
Views 434
Votes 0
Hi. The title is pretty self-explanatory. I am using JCE Editor, and the meta description is full of HTML. This does not happen with BB Code. It looks especially bad on Facebook, and on pages with an image embedded the meta description just ends up being the img tag!

I am not sure if this is an issue with JCE or with ED. Please advise where to go from here.

Thanks!
Hi there,

It seems that this is known issues. We have fixed this internally and will be included in next release. For temporarily, can you replace attached file on this path ...\administrator\components\com_easydiscuss\includes\facebook\facebook.php. Please give it a try and see how it goes.
·
Tuesday, 25 October 2016 12:39
·
0 Likes
·
0 Votes
·
0 Comments
·
That fixed it. Looks great now. Thanks!

I have another observation related to this, but this time in the back end. If I open a post for editing from the back end, all of my <p> tags are removed, and all <img src="xxx"> tags are converted to [img] tags, and that ends up messing up the post. The image isn't pulled in at all. For example, this post, which you guys edited today, has raw HTML of:


<p><img src="http://media.simracer.club/images/usuarios/278/liga-argentina-ps4-2_d3fbb.jpg"></p>
<p>Bienvenido a la liga de DiRT Rally "ARGENTINA PS4". Nuestro enlace en el sitio oficial es: <a href="https://www.dirtgame.com/uk/leagues/league/37778/argentina-ps4">https://www.dirtgame.com/uk/leagues/league/37778/argentina-ps4</a>
<p>La liga está orientada a rallistas argentinos. Se corren campeonatos de seis rallies, una por semana. Los eventos no tienen ni restart ni retry. Tenés una sóla oportunidad, así que lo mejor es aprovechar de los shakedown antes de largar.</p>
<h2>¡Leo-dirt es el campeón de la Temporada 1!</h2>
<h2>¡Lucas_Picone1 es el campeón de la Temporada 2!</h2>
<h2>¡Leo-dirt es el campeón de la Temporada 3! La temporada 4 ya está en curso.</h2>


However, after editing in the back end, it becomes this (see attachment)
·
Tuesday, 25 October 2016 20:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

The image isn't pulled in at all.

It seems that this issues is not from the fixed we have done. It is because of "JCE editor" itself. You have set "Relative URLs" on "Back-end" profile at backend>components>JCE editor>Editor Profiles>Back-end profile>Editor parameter>Cleanup&output as shown http://prntscr.com/cz02ft. I have set it to no and it should works fine now but, you have to recreate it again for it to render correctly again. Please advice.
·
Wednesday, 26 October 2016 10:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, I understand that this is similar, but not related to the meta description issue. Maybe I didn't explain enough. The problem is, in the back end, no matter which editor you use, all HTML is stripped out of the post when opening a question on the back end. Even if you use NO EDITOR! It strips out all HTML (including h2 and p) and replaces <img src=... with [img]...

See the attached screenshot with ED set to use No Editor. Even then the HTML is stripped out. I have a feeling that on the back end ED is forcing itself to use the BBCode no matter what you have set as the editor. I have tried Tiny, JCE, and No Editor and it always "converts" the post to BBCode.

You could probably test this easily on your own setup by creating a post on the front end with NO EDITOR and some raw <p> tags and <h2> tags and an <img> tag, then on the back end open it up and instead of seeing the raw html, you will see the post converted to BBCode.
·
Wednesday, 26 October 2016 19:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

Even if you use NO EDITOR! It strips out all HTML (including h2 and p) and replaces <img src=... with [img]...

That is actually it's default behavior for the content to be displayed. It is because it got another option that is "toggle editor" in order to show any html codes inserted in a post. You have disabled it on your "back-end" editor profile. I have enabled it for you. You can click on it to see whether the post have the html codes or not, as you can see here --> http://prntscr.com/czgrit. Please advice.
·
Thursday, 27 October 2016 12:40
·
0 Likes
·
0 Votes
·
0 Comments
·
That's actually not part of the issue. The problem is that I have a Question with the following HTML:


<p><img src="http://media.simracer.club/images/usuarios/278/liga-argentina-ps4-2_d3fbb.jpg" /></p>
<p>Bienvenido a la liga de DiRT Rally "ARGENTINA PS4". Nuestro enlace en el sitio oficial es: <a href="https://www.dirtgame.com/uk/leagues/league/37778/argentina-ps4">https://www.dirtgame.com/uk/leagues/league/37778/argentina-ps4</a></p>
<p>La liga está orientada a rallistas argentinos. Se corren campeonatos de seis rallies, una por semana. Los eventos no tienen ni restart ni retry. Tenés una sóla oportunidad, así que lo mejor es aprovechar de los shakedown antes de largar.</p>
<h2>¡Leo-dirt es el campeón de la Temporada 1!</h2>
<h2>¡Lucas_Picone1 es el campeón de la Temporada 2!</h2>
<h2>¡Leo-dirt es el campeón de la Temporada 3! La temporada 4 ya está en curso.</h2>


If I edit on the front end, everything is fine. The Toggle Editor has nothing to do with it. I also have the source code button enabled. The problem is if I edit in the back end, then the HTML is stripped out and it becomes this:


<p>[http://media.simracer.club/images/usuarios/278/liga-argentina-ps4-2_d3fbb.jpg["]]http://media.simracer.club/images/usuarios/278/liga-argentina-ps4-2_d3fbb.jpg[] Bienvenido a la liga de DiRT Rally "ARGENTINA PS4". Nuestro enlace en el sitio oficial es: https://www.dirtgame.com/uk/leagues/league/37778/argentina-ps4 La liga está orientada a rallistas argentinos. Se corren campeonatos de seis rallies, una por semana. Los eventos no tienen ni restart ni retry. Tenés una sóla oportunidad, así que lo mejor es aprovechar de los shakedown antes de largar. ¡Leo-dirt es el campeón de la Temporada 1! ¡Lucas_Picone1 es el campeón de la Temporada 2! ¡Leo-dirt es el campeón de la Temporada 3! La temporada 4 ya está en curso.</p>


Note that I added double brackets to the BBCode img tag, otherwise the whole image part is stripped out of the code markup.

You can see that my paragraphs and h2's are stripped out, and my img src HTML tag is converted to the BBCode [[img]] tag.
·
Thursday, 27 October 2016 19:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

Thanks for reporting. It seems that this is bug on our end. Can you please update to latest version first and replace attached file for temporary fix on path below. This issues will be fixed on next release. Thanks for understanding.
...\administrator\components\com_easydiscuss\views\post\view.html.php
·
Thursday, 27 October 2016 20:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Ooooohhhh yes, now it's working great! Thanks!

Now I'm going to bother you with one more thing.

It's related to email notifications.

1) When there is a new post (or Question as you refer to it on the back end), the subject of the email notification is "New question - 65" The 65 is the id of the Question. Is that normal? Or should it be pulling in the Title of the Question, instead?

2) Same as above, but with Answers. For example, "New answer to question - 3" instead of "New answer to question - Title of Post.

3) This is related to comments on answers. The email subject is "New comment on the discussion <p><img src="ht..." ". Why is it pulling in the HTML tags? Shouldn't this also show the Question title?

Thanks! And I promise that after this I will stop bothering you for a while!
·
Thursday, 27 October 2016 21:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

It seems this is known issues when you changed to other languages. I have reported this to language provider regarding this issues. For temporary fix you can override them, for example
GB language
COM_EASYDISCUSS_NEW_REPLY_ADDED = [#%1s]: New reply added - %2s
Your language
COM_EASYDISCUSS_NEW_REPLY_ADDED = [#%1s]: *your translation - %2s

Or can you provide us with your FTP access to translate it for you as i need to check all language/override on your site.
·
Friday, 28 October 2016 12:52
·
0 Likes
·
0 Votes
·
0 Comments
·
OK I'll try that. Thanks for the help, Abdul!
·
Saturday, 29 October 2016 03:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Saturday, 29 October 2016 11:09
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post