Page 1 of 1

Obfuscate email addresses [solved]

Posted: Thu Jan 15, 2009 9:48 am
by jillc
On my current (static) site  I have a list of names, phone numbers and email addresses. I have the email addresses obfuscated using javascript but it's probably too complex for the user who will be updating this site. Is there a way of listing this information in CMSMS including a mailto link without everybody getting spammed to death?

Re: Obfuscate email addresses

Posted: Thu Jan 15, 2009 10:25 am
by Rolf
Perhaps this could help you?
http://dev.cmsmadesimple.org/projects/email

Rolf

Re: Obfuscate email addresses

Posted: Fri Jan 16, 2009 12:31 am
by jillc
Yes, thanks Rolf, that will probably do it.

But now I have searched everywhere and I can't see how to set it up and use it? Where do I put the php file? Do I have to create my own tags?

Jill.

Re: Obfuscate email addresses

Posted: Fri Jan 16, 2009 1:12 am
by Ziggywigged
Upload the file to your 'plugins' folder and look at the tags listing for help on how to use it.

Re: Obfuscate email addresses

Posted: Fri Jan 16, 2009 1:38 am
by Zoorlat
Much easier solution is to use the built in smarty function {mailto}.  ;)

Just type {mailto address="emai@domain.org" encode="javascript"} and you get what you want.

For more on the mailto-function, see http://smarty.activeventure.org/language.function.mailto.html.

//Z

Re: Obfuscate email addresses [solved]

Posted: Sun Jan 18, 2009 8:04 am
by jillc
Thanks. Both of those systems work but only if they are entered in the html screen and are not edited in any way in the wysiwyg editor. (I wasted hours on this). I will have to give very strict instructions to my content editor.

Jill.

Re: Obfuscate email addresses [solved]

Posted: Sun Jan 18, 2009 10:04 pm
by Zoorlat
Jill,

For the {mailto} you shouldn't need to leave the wysiwyg editor. If you use TinyMCE (latest version) it works to write it straight in the text.

At least it does for me  ;)

Zoorlat