Page 1 of 1

[MOD] Updated Anti-Spam Mod for Ticket.php

Posted: Sat Oct 10, 2009 6:08 pm
by Raven
/*************************************
Title: Updated Anti-Spam Mod for Ticket.php [MOD]
Version: 1.0
Author: Raven
Demo: http://www.crikey-thatsmint.com/
Download: N/A
Website: http://www.crikey-thatsmint.com/

Description:

Hi there, here is a small mod I have made to change how users email addresses are protected from spam when viewing a ticket in 'ticket.php' which still retains the normal address format.

The standard way is to replace the @ symbol and all full stops using the following code:

Code: Select all

<td class="tickettd"><?php echo str_replace(array('@','.'),array(' (at) ',' (dot) '),$ticket['email']); ?>
This results in 'name (at) domain (dot) com'. However for reasons unknown, I noticed that some of my less tech savy users did not understand this so I now use the following code to replace only the @ symbol with a graphic which looks like this: 'nameImagedomain.com'.

Code: Select all

<?php echo str_replace(array('@'),array('<img src="img/@.gif" align=absbottom border=0 alt=@>'),$ticket['email']); ?>
By doing things this way the email address looks to be correct to the user but in actual fact still messes up any attempt to harvest the address by bots etc...

I have also attached a few images in grey and black of various sizes if you decide to use this small mod.

Image arial-12px-000000
Image arial-14px-000000
Image arial-16px-000000

Image arial-12px-6f6f6f
Image arial-14px-6f6f6f
Image arial-16px-6f6f6f

*************************************/

Re: [MOD] Updated Anti-Spam Mod for Ticket.php

Posted: Wed Mar 09, 2011 11:41 am
by marciab80
Thanks for this :)