Javascript problem on email address

More
11 years 1 month ago #52317 by garfran
Hello,
I have Joomla 3.3.6 and Flexicontent 2.2.0 and on all email address links, I have an alert message:
"This email address is protected against spam. You must activate Javascript to see it".
But I don't kow what to do for that; Everything seems OK.
Do you have a solution?
Please see an example of the error on this page (in french, sorry!):
omnes-airfrance.com/philippe-silberzhan
Thank you

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

More
11 years 1 month ago #52325 by ggppdk
Hello

single quote in the text of Email title breaks the JS

this is already fixed in the latest GitHub version

Try editting email.php and replace:
Code:
$pretext. JHTML::_('email.cloak', $addr, 1, $text, 0) .$posttext :


with:
Code:
$pretext. JHTML::_('email.cloak', $addr, 1, flexicontent_html::escape($text), 0) .$posttext :


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

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

More
11 years 1 month ago #52336 by garfran
Hello,
Thank you for this reply. I changed it in line 332 and 337 in ftp folder: /www/plugins/flexicontent_fields/email
but it doesn't seem to change.

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

More
11 years 1 month ago #52337 by ggppdk
Hello

try this:

Try editting email.php and replace:
Code:
$pretext. JHTML::_('email.cloak', $addr, 1, $text, 0) .$posttext :


with:
Code:
$pretext. JHTML::_('email.cloak', $addr, 1, htmlspecialchars($text, ENT_COMPAT, 'UTF-8'), 0) .$posttext :


Also finally try this:
edit the item and find the email field, and set an email title-text without single quote


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

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

More
11 years 1 month ago #52339 by garfran
OK, I changed it in line 332 and 337 as seen before. But no success.
Now, look at your next suggestion. You say:
"edit the item and find the email field, and set an email title-text without single quote"
I go in the email field configuration, and I see optionnal properties :Title (used as Link Text)
Is it there I have to change?
I have option activate YES/NO and defaut use.

What is a good news is that I tried to insert an email address in the text of an item, and it's working properly.
The problem remains with the email field only.

Slts

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

More
11 years 1 month ago #52351 by ggppdk
Hello

i see that you no longer have the message ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

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

More
11 years 1 month ago #52371 by garfran
Hello,
It's only because I have withdrawn the field. I have inserted the email address in the text, and there is no more message.
I have to continue investigation.
I have replaced the code:
$pretext. JHTML::_('email.cloak', $addr, 1, flexicontent_html::escape($text), 0) .$posttext :

And now the field on the right side has change also with the right image. Very strange indeed...
I have a problem with magic_quotes_gpc. I keep you advised

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

More
11 years 3 weeks ago #52451 by garfran
Hello,

I have inserted your last suggestion code but it doen't change nothing.
At this point, the email field is withdrawn and the address email is in the current text of the page. It works.

But the problem remains with the image field on the right side. This image is erratic and somtimes it appears, sometimes not, or it appears the one from an another item...

Thank you for help.

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

More
11 years 3 weeks ago #52452 by ggppdk
Hello

in a copy of this website

install and test this BETA release:

github.com/FLEXIcontent/flexico ... .0.0_Beta1


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

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

Moderators: vistamediajoomlacornerggppdk
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save