Hide E-Mail addresses in entries

More
14 years 9 months ago #1176 by Majikthise
Hey Pete,

I would like to make Email a required field for entries, but then hide it so that outsiders viewing the guesbook entries can't see it - to avoid spam harvesting. How do I do that?

Greets
Majikthise

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #1177 by Pete
Hi,

Open up the file "config.php", and make sure you have the email_optional setting set to "0":
Code:
$email_optional = 0; // Set "1" for optional email, "0" to make it required

Then open up file "list.php", and modify the following code starting on line 96:
Code:
echo "<b>$listDatetxt: </b>"; $lines[$i]->showDate(); echo "<br><b>$listnametxt: </b>"; $lines[$i]->showFrom(); echo "<br><b>$listemailtxt: </b><a href=\"mailto:"; $lines[$i]->showEmail(); echo "\">"; $lines[$i]->showEmail(); echo "<br><br><b>$listMessagetxt: </b>"; $lines[$i]->showMessage(); echo "</td></tr></table><br>";

To this:
Code:
echo "<b>$listDatetxt: </b>"; $lines[$i]->showDate(); echo "<br><b>$listnametxt: </b>"; $lines[$i]->showFrom(); echo "<br><br><b>$listMessagetxt: </b>"; $lines[$i]->showMessage(); echo "</td></tr></table><br>";

That should do it for you.

Thanks,
Pete

DigiOz Webmaster
www.digioz.com

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #1178 by Majikthise
Cool, that did it!

Thanks Pete, you're the best!

Greets Majikthise

Please Log in or Create an account to join the conversation.

Time to create page: 0.118 seconds
Powered by Kunena Forum