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

Everything related to Hesk - helpdesk software

Moderator: mkoch227

Post Reply
Raven
Posts: 172
Joined: Sat Jun 20, 2009 12:39 am

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

Post 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

*************************************/
marciab80
Posts: 20
Joined: Fri Feb 11, 2011 2:23 pm

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

Post by marciab80 »

Thanks for this :)
Post Reply