Hiding email address

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
sslieng
Posts: 2
Joined: Wed Apr 19, 2006 5:54 am

Hiding email address

Post by sslieng »

Script URL: www.iai-dojo.com
Version of script: gbook
Version of PHP: 1.35
Hosting company:
Have you searched THIS FORUM for your problem: yes
(if not please do before posting)
If so, what terms did you try: email

Write your message below:

Hi,
I want to hide our guest email address from any viewer of my guestbook for security reason (unauthorized reply, etc).
I tried to change the "function printEntries (.... )" at email-links row. I have the result : the gbook page is empty (blank screen: no error message and none of character showed).
Is there any way to hide email address?
Thanks.

Ps. I already read Henrie's modification, that an option for my guest to choose. That's not I mentioned above. thx.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

This is actually a good idea, having e-mails hidden by default for better privacy and security and only shown to admin after entering a password. Will most likely include it in the next version, until then you can simply delete lines 582-586 in gbook.php (since your edited version doesn't work edit the ORIGINAL one again):

Lines to be deleted are 582-586:

Code: Select all

echo '<br>
<font class="smaller">E-mail:</font> ';
if (strlen($email)>0) {
echo '<a href="mailto:'.$email.'" target="_blank" class="smaller">'.$email.'</a>';
}
Regards
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
sslieng
Posts: 2
Joined: Wed Apr 19, 2006 5:54 am

Post by sslieng »

Hi,

Thanks so much. It's working now. Your Guest Book is really great. Thx.

Regards,

Siang Lieng
geos
Posts: 5
Joined: Mon Apr 10, 2006 1:52 pm

Post by geos »

Hi, I just wanted to know if that function for hiding the e-mails to public, but still visible for admin, was implemented because I didn't find it.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

No, not yet. You will still have to manually edit gbook.php to hide the e-mail address.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
shimmerfx
Posts: 1
Joined: Tue May 22, 2007 11:47 am

email address not hidden

Post by shimmerfx »

i have tried the suggestion but it's still showing the email address on my one at shimmerfx.com can anyone please help me?
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

In version 1.5 (which you have) find and delete this (lines 895-898):

Code: Select all

if ($email)
{
	echo 'E-mail: <a href="mailto:'.$email.'" class="smaller">'.$email.'</a>';
}
Note that the above code is located TWICE inside gbook.php, delete both or only the second one.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply