Email obfusication within a CMS page

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
obiefan

Email obfusication within a CMS page

Post by obiefan »

Hello Forum-

I use a contact formmail script in which I can "obfusicate" my email addresses to look like "<a href="mailto:johnd"  which confuses spambots, however when I put in the codes, CMS converts it right into text of info@domain.com and etc.

Is there any way to tell CMS to leave the codes alone and not convert the text?

THANKS!
Last edited by obiefan on Tue May 30, 2006 1:01 pm, edited 1 time in total.
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Email obfusication within a CMS page

Post by tsw »

You might have to wrap it in {literal} your email here {/literal} so that smarty wont process it

there is also a smarty function for email obfuscation

{mailto address="me@domain.com" encode="hex"}

more info here http://wiki.cmsmadesimple.org/index.php ... And_Tricks
obiefan

Re: Email obfusication within a CMS page

Post by obiefan »

Thanks very much...

Would this method also work with encoded emails in a form using "option"?

Thanks
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Email obfusication within a CMS page

Post by tsw »

not quite sure as I havent tested but I quess it works

If using forms you could always just set an id in the option field and some name to show to user (like webmaster and so on) and then have small code to map id:s to users email (actually I think this is possible with feedback form but not positive)
Locked

Return to “CMSMS Core”