This small hack will protect member's "Fake Email" from spam bots by hiding the mailto address in javascript.
In your showprofile.php script find this:
code:
// -----------------------------
// Show the profile if it exists
$columns = 2;
if ($CheckUser) {
and change it to this:
code:
// -----------------------------
// Show the profile if it exists
$columns = 2;
if ($CheckUser) {
if ($Fakeemail) {
$FakeEmailArray = split("@",$Fakeemail);
$MailName = $FakeEmailArray[0];
$MailAddy = $FakeEmailArray[1];
$EmailJavaPrint = "<script language="javascript" type="text/javascript"> var MailName = '$MailName'; var MailAddy = '$MailAddy';document.write('<a href="mailto:'+MailName+'@'+MailAddy+'">'+MailName+'@'+MailAddy+'</a>');</script>";
}
else {
$EmailJavaPrint = "";
}
Now in your showprofile.tmpl template file find this:
code:
<a href="mailto:$Fakeemail">$Fakeemail</a>
and change it to this:
code:
$EmailJavaPrint
As far as I know spam bots have no ability to read text dynamicly created with javascript. This will keep the member's email hidden from them and those users with javascript disabled. LoL
Working Example Here