[Feature Request]: hide e-mail or cloak it

Phoca Guestbook - creating guestbooks in Joomla! CMS
baijianpeng
Phoca Member
Phoca Member
Posts: 27
Joined: 11 Nov 2007, 05:03

If we require the e-

Post by baijianpeng »

If we require the e-mail for signing new guestbook entry, then this e-mail address will be displayed obviously at frontend. This may have some risk since it could be collected by spambot.

So I think we can add an option to hide this e-mail from public view, though we still require it. Or just cloak this e-mail address as image or something else.

Thanks.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

No, I think, there i

Post by Jan »

No, I think, there is a some antispam controll (mail function in Joomla!)...try to disable javascript and you will see it...

Administrator can set the e-mail as not required
If you find Phoca extensions useful, please support the project
slaughty
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 31 Dec 2007, 17:25

Hi Folks,

Post by slaughty »

Hi Folks,

thats exactly the function I need for my website - hiding email for spam protection. Is it possible to edit the guestbook template file?

thx & so long
slaughty
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Yes you can edit it.

Post by Jan »

Yes you can edit it. Now there is a anti-spam function from joomla framework, just disable javascript and you will see it...

Jan
If you find Phoca extensions useful, please support the project
slaughty
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 31 Dec 2007, 17:25

Hi Jan,t

Post by slaughty »

Hi Jan,

thanx for the information. But unfortunately I have no influence on the website's users to disable javascript on their computer that's why in my opition it would make sence to have a function to disable showup of the mail-adress...

However, could you give me a hint in which file i can delete the code showing the mail adress?

thx a lot
slaughty from germany
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Disabling Javascript

Post by Jan »

Disabling Javascript I have meant, you only see the spam protection. Not mean, it is only work with disabling javascript.

components/com_phocaguestbook/views/phocaguestbook/tmpl/default.php

Jan
If you find Phoca extensions useful, please support the project
thijeleo
Phoca Member
Phoca Member
Posts: 35
Joined: 05 Jan 2008, 21:24
Location: Netherlands
Contact:

A temporary solution

Post by thijeleo »

A temporary solution could be to open components/com_phocaguestbook/views/phocaguestbook/tmpl/default.php
en replace:

if ($values->email != '')
{
$msgpg .= ' ('. JHTML::_( 'email.cloak', $values->email ).')';
}

width

//- if ($values->email != '')
//- {
//- $msgpg .= ' ('. JHTML::_( 'email.cloak', $values->email ).')';
//- }

In other words: disable these lines. Email won't show up in the front, but will be available for the admin.

Or am i thinking wrong?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Post by Jan »

If you find Phoca extensions useful, please support the project
thijeleo
Phoca Member
Phoca Member
Posts: 35
Joined: 05 Jan 2008, 21:24
Location: Netherlands
Contact:

Glad to see I wasn&#

Post by thijeleo »

Glad to see I wasn't thinking wrong.
Post Reply