Obfuscate email addresses [solved]
Obfuscate email addresses [solved]
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?
Last edited by jillc on Sun Jan 18, 2009 7:58 am, edited 1 time in total.
Re: Obfuscate email addresses
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: Obfuscate email addresses
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.
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.
-
- Power Poster
- Posts: 424
- Joined: Sat Feb 02, 2008 12:42 am
- Location: USA
Re: Obfuscate email addresses
Upload the file to your 'plugins' folder and look at the tags listing for help on how to use it.
Take a penny, leave a penny.
Re: Obfuscate email addresses
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

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]
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.
Jill.
Re: Obfuscate email addresses [solved]
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
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