I created a custom tag. Then in the display templates
(displayPageStandard.cfm, etc in webskin) I pass the body field
content (or any other content) through the custom tag.
Inside the custom tag I execute a regular expression that looks for
email addresses and replaces it with ASCII equivalents. (Using the
EmailAntiSpam UDF on cflib.org)
This way I didnt have to extend dmHTML or any other type and I can use
it anywhere I need to.
Sean
On Aug 25, 2:05 pm, "Tomek Kott" <[EMAIL PROTECTED]> wrote:
> Jeff,
>
> Ahh, didn't think of that. Thanks for the tip, I'll implement it like that.
>
> Follow up questions then:
>
> 1) is there a place to parse tinyMCE inputs for email addresses and have
> them automatically changed via a parsing function defined as below?
>
> 2) Is it even worth it: might spammers, when trying to robot their way
> through webpages looking for emails, not also look at ascii characters, or
> say other attempts like using [at] [dot] or -=At=- or some other combination
> of characters to confuse things?
>
> Thanks!
>
> Tomek
>
> On Mon, Aug 25, 2008 at 1:36 PM, Jeff Coughlin <[EMAIL PROTECTED]>wrote:
>
>
>
> > Tomek,
>
> > > I'm hoping to find a method of hiding email addresses for spammers
> > > when I list contact info through FarCryCMS. The only script that I
> > > have seen involves changing the email address to ASCII character
> > > codes so that when it shows up correctly when viewed online.
> > > However, that includes a CFC that I would have to incorporate
> > > separately into FC.
>
> > > Does anyone know a better/easier way of hiding email addresses using
> > > FC or CF?
>
> > That's the way I do it.
>
> > 1. I create a file called <project>/packages/custom/
> > customFunctions.cfc where I place custom functions like this that are
> > not relevant to FarCry.
> > 2. I then create the object as an application variable in <project>/
> > config/_serverSpecificVars.cfm.
> > <cfset application.oCustomFunctions = createObject("component",
> > "#application.custompackagepath#.custom.customFunctions") />
> > 3. Once cached in memory I can then call the methods I need.
> > <cfset myVar = application.oCustomFunctions.myMethod(this="that") />
>
> > Hope that helps,
>
> > --
> > Jeff Coughlin
> > Web Application Developer
> >http://jeffcoughlin.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---