How to disable Joomla content plugins in a specific module template?

More
2 years 1 month ago #81773 by iamrobert
Hi,

We are using the default Joomla Email Cloaking plugin to hide email addresses from spam.

The problem is when we output as JSON data for Google FAQ Structured Data- the email still includes the </script> code.and thus breaks.

I thought about stripping all tags - but this doesn't work for the email plugin:
Code:
      if ( !empty( $briefvals ) )         foreach ( $briefvals as $brief ) {           if ( @unserialize( $brief ) !== false || $brief === 'b:0;' )$brief = unserialize( $brief );                 $brief = strip_tags($brief);                 var_dump($brief);         }


I guess the email plugin fires after the module creation.

Is there another approach you can think of?

This works - but disables the email cloak everywhere on the page:
{emailcloak=off}

Thanks

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

More
2 years 1 month ago #81775 by iamrobert
This seems to work better:
Code:
      if ( !empty( $briefvals ) )         foreach ( $briefvals as $brief ) {           if ( @unserialize( $brief ) !== false || $brief === 'b:0;' )$brief = unserialize( $brief );                              $brief = strip_tags(preg_replace('/[@]/', '[at]',$brief));               var_dump($brief);         }

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

More
2 years 1 month ago #81777 by micker
we will study it and we want to finish form creator system in next version of email plugin

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.422 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