Email addresses in content parts

Discuss phpwcms here, please do not post support requests, bug reports, or feature requests! Non-phpwcms questions, discussion goes in General Chat!
Post Reply
goshen
Posts: 42
Joined: Mon 4. Oct 2004, 10:57
Location: Geelong, Australia
Contact:

Email addresses in content parts

Post by goshen »

Hi,

My question relates to showing email addresses. Now I know the best way to hide them (from spambots) is to use a form, but say that can't be done for my purpose. Is there any way to 'hide' email addresses from spam bots, yet still show them as a link to the user?

For example, instead of user@email.com you can put in user@email.com. To the person viewing the page, it just shows up as @. phpWCMS converts the code ok, but it does so permanently, and doesn't keep the original code on the page.

Interestingly, the 'link and email' content part DOES keep the original code - but the HTML editor does not.

Is there any other comments people can make in this regard? Or any better ways when inserting email address using the HTML editor?

PS - My page in question is: http://kitepower.com.au/news/index.php?usedgear-sydney

Cheers,
Goshen
http://www.kitepower.com.au/news (phpWCMS v1.1)
http://www.gkhome.net (phpWCMS v1.21 DEV)
goshen
Posts: 42
Joined: Mon 4. Oct 2004, 10:57
Location: Geelong, Australia
Contact:

Post by goshen »

This forum is also too clever, the paragraph above (in code) is meant to read:

For example, instead of <a href="mailto:user@email.com">user@email.com</a> you can put in user & # 0 6 4 ; email.com (no spaces). To the person viewing the page, it just shows up as @. phpWCMS converts the code ok, but it does so permanently, and doesn't keep the original code on the page.
<br />
http://www.kitepower.com.au/news (phpWCMS v1.1)
http://www.gkhome.net (phpWCMS v1.21 DEV)
spirelli
Posts: 996
Joined: Tue 27. Jul 2004, 13:37
Location: London

Post by spirelli »

I have used a forms for all email contacts on our site. In order to make emails secure from spybots there is a simple hack which I found easy to implement:

http://www.phpwcms.de/forum/viewtopic.php?t=3934
Post Reply