Spambot Eliminator - issue: scramples phone numbers wrapped in (800)

By Mikey - April 12, 2013 - edited: April 12, 2013

I'm using Spambot Eliminator on a client's website...

The client has formatted their contact details as follows:

<td style="padding-left: 30px;">
<p style="padding-left: 30px;"><strong>John Doe<br /></strong>Machine <br />Specialist<br /><a href="mailto:johndoe@domain.com">johndoe@domain.com</a><br />(800) 321-6543</p>
</td>

The problem is that in IE when the (800) phone number follows the email address, the phone number gets a bit scrambled as seen below:

John Doe
Machine
Specialist
johndoe@domain.com
(321-6543 (800

I know I can restructure the phone before the email address and fix this, but they have countless phone numbers on their website and it would take hours and hours to fix.

Anyone know of a fix for this issue in the Spambot Eliminator plugin?

By gregThomas - April 17, 2013

Hi Zick,

I've done some quick testing, and it looks as if IE doesn't like the bdo tags. If you edit line 14 of the spambotEmailProtector.php file so that $GLOBALS['SEP_ENCODING_METHODS']['bdo'] is set to false:

$GLOBALS['SEP_ENCODING_METHODS']['bdo']         = false;

This fixes the issue. 

Thanks!

Greg

Greg Thomas







PHP Programmer - interactivetools.com