Using email addresses with DirectPHP

Some DirectPHP users have feedback that they encounter errors whenever there are any email addresses appearing in the PHP statements. For example:

<?php echo "Email: This email address is being protected from spambots. You need JavaScript enabled to view it.";?>

One of the possible reasons for the error is due to the "Content - Email Cloaking" plugin which comes with default Joomla installation. This plugin converts emails that you embed in your Joomla content into Javascript that should foil the majority of email harvesting spam bots.

To resolve the above issue, you may try this:

  1. Login as administrator.
  2. Go to the Plugins Manager.
  3. Reorder the plugins so that the order of the DirectPHP plugin is before that of "Content - Email Cloaking". e.g. if order of the "Content - Email Cloaking" plugin is 10, then make the order of DirectPHP 9 or 8.

What we are trying to do here is to make sure that the PHP commands get processed by DirectPHP first, before the "Content - Email Cloaking" plugin get the chance to mess up the PHP codes.

Let me know if this works for you, ok?

Related Articles

Add comment


Security code
Refresh