- Posts: 2
- Thank you received: 0
Hide E-Mail addresses in entries
- Majikthise
- Topic Author
- Offline
- New Member
Less
More
15 years 1 month ago #1176
by Majikthise
Hide E-Mail addresses in entries was created 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
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.
15 years 1 month ago #1177
by Pete
DigiOz Webmaster
www.digioz.com
Replied by Pete on topic Hide E-Mail addresses in entries
Hi,
Open up the file "config.php", and make sure you have the email_optional setting set to "0":
Then open up file "list.php", and modify the following code starting on line 96:
To this:
That should do it for you.
Thanks,
Pete
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.
- Majikthise
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
15 years 1 month ago #1178
by Majikthise
Replied by Majikthise on topic Hide E-Mail addresses in entries
Cool, that did it!
Thanks Pete, you're the best!
Greets Majikthise
Thanks Pete, you're the best!
Greets Majikthise
Please Log in or Create an account to join the conversation.
Time to create page: 0.117 seconds