Escaping email address in content

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
katon

Escaping email address in content

Post by katon »

I need to list email addresses in page content.  Does anybody know a nice and easy method how to escape it?  I know how to do this in a smarty template, but I'd like to know how this can be done in web page content.
katon

A Solution

Post by katon »

Ok, I have made a tag that does the job.  Just download it, rename *.txt to *.zip, and unpack into the plugins directory.  Then select Extensions->Tags, find 'spamprotect' in the list and read help.

The tag returns a valid XHTML email link with obscurred text to prevent spambots from identifying the link as an email address.

How about including it into the standard CMSMadeSimple installation?  Or have I chosen the hard way not knowing an easier solution?

[attachment deleted by admin]
katon

Re: Escaping email address in content

Post by katon »

A fixed version of the plugin attached.

[attachment deleted by admin]
User avatar
petert
Power Poster
Power Poster
Posts: 282
Joined: Wed Feb 09, 2005 9:30 pm

Re: Escaping email address in content

Post by petert »

what is wrong with the e-mail tag?
http://dev.cmsmadesimple.org/projects/email
Mambo sucks, that's why I am here.
Now they call it Joomla, but it still sucks!

CMSMS rules!
katon

Re: Escaping email address in content

Post by katon »

The only thing that was wrong with it was that if failed to find it when I needed it :-)  Other than that, it does exactly what I needed and what I tried to do.  Why not include it in the standard cmsmadesimple installation?  I think it's one of the most important tags to be used by cmsmadesimple users.
User avatar
petert
Power Poster
Power Poster
Posts: 282
Joined: Wed Feb 09, 2005 9:30 pm

Re: Escaping email address in content

Post by petert »

katon wrote: Why not include it in the standard cmsmadesimple installation?  I think it's one of the most important tags to be used by cmsmadesimple users.
I aggree, I will make it a feature request in the develpment section.
Mambo sucks, that's why I am here.
Now they call it Joomla, but it still sucks!

CMSMS rules!
User avatar
Elijah Lofgren
Power Poster
Power Poster
Posts: 811
Joined: Mon Apr 24, 2006 1:01 am

Re: Escaping email address in content

Post by Elijah Lofgren »

petert wrote:
katon wrote: Why not include it in the standard cmsmadesimple installation?  I think it's one of the most important tags to be used by cmsmadesimple users.
I aggree, I will make it a feature request in the develpment section.
I've marked that feature request as complete since you can just use the built-in mailto Smarty tag to encode email addressess:
http://dev.cmsmadesimple.org/tracker/in ... 6&atid=104
Marking as complete since there is a built-in Smarty mailto
tag to encode and email address:
I.E

Code: Select all

{mailto address='me@domain.com' encode='hex'}
or:

Code: Select all

{mailto address='me@domain.com' encode='javascript'}
more info here:
http://smarty.php.net/manual/en/languag ... mailto.php
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. :)
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Escaping email address in content

Post by Dr.CSS »

Was he asking to be able to just list them or have them clickable to make your email client start a new email, if you know what I mean.

EDIT: OK
Last edited by Anonymous on Sun Jul 23, 2006 4:21 am, edited 1 time in total.
User avatar
Elijah Lofgren
Power Poster
Power Poster
Posts: 811
Joined: Mon Apr 24, 2006 1:01 am

Re: Escaping email address in content

Post by Elijah Lofgren »

mark wrote: Was he asking to be able to just list them or have them clickable to make your email client start a new email, if you know what I mean.
As per this, I think he meant have a clickable link:
katon wrote: ...
The tag returns a valid XHTML email link with obscurred text to prevent spambots from identifying the link as an email address.
...
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. :)
Locked

Return to “CMSMS Core”