[SOLVED] Email addresses displayed by email field are not always linkable

More
8 years 6 months ago - 8 years 6 months ago #57732 by coerter
Hello,

After updating to Flexicontent version 3.0.8 some E-Mail adresses arent shown as a linkable mailto adresses in the Fieldtype E-Mail. The plugin Email Cloack was activated.
The attachment shows the Field parameter settings.
The reason was:

If Email adress and title attribute have the same value the field wasnt displayed as a link. In this case the value in the title was the Email adress.
The following change in the E-Mail Plugin solved the problem for now:

Code:
// Create field's display // A cloacked email address with custom linking text if ( $format != 'feed' ) : if ( $text == $addr ) : $html = JHTML::_('email.cloak', $addr, $text_is_email); else : $html = JHTML::_('email.cloak', $addr, $addr!=$text, $text, $text_is_email); endif; else : $html = '<a href="mailto:'.$addr.'" target="_blank" itemprop="email">' .$text. '</a>'; endif;

These changes will be gone by the next update, though.

with regards

coweb
Attachments:
Last edit: 8 years 6 months ago by ggppdk.

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

More
8 years 6 months ago - 8 years 6 months ago #57739 by ggppdk
Hello

we have already made appropriate change in v3.0.9-dev*

restore the plugin file of the FC email field,
and change:
Code:
JHTML::_('email.cloak', $addr, $addr!=$text, $text, $text_is_email) :
to
Code:
JHTML::_('email.cloak', $addr, 1, $text, $text_is_email) :


-- 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...
Last edit: 8 years 6 months ago by ggppdk.
The following user(s) said Thank You: kath, coerter

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

More
8 years 6 months ago #57745 by coerter
It works. Thanks.

with regards

coweb

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.363 seconds
Save
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