Cool thanks..got it working...but is there any reason why I can't do this on the fly and pump straight out to the same page, or is it quicker to create the templates and include them?

:)



On 2/7/06, Robin Hilliard <[EMAIL PROTECTED]> wrote:

On 06/02/2006, at 7:48 PM, Steve Onnis wrote:

Arrr

 

Shouldn't it be

<cfoutput>#REReplaceNoCase(x, "~([^~]+)~", "#SESSION[User].Member_\1#","ALL")#</cfoutput>


No, as I said already I was assuming you save the string as a .cfm file then include it, that's why I escaped the hashes.

To be absolutely clear the idea is to generate CFML code:

<cffile action="" file="temp.cfm" output="#REReplace(x, "~([^~]+)~", "##SESSION[User].\1##", "ALL")#">
<cfinclude template=" temp.cfm">

You update temp.cfm (whatever you call it, one distinct file for each user template) whenever the user updates the template (rarely) and then use it to generate your messages (frequently) nice and fast without any REs or anything else that would take a lot of processing (similar to what Fusebox 4 does with circuit code).  You might want to tweak the matching _expression_ in the RE to tighten up the security in case your user writes ~FirstName#<cffile action=""

Robin


______________

Robin Hilliard
Director - RocketBoots Pty Ltd
Professional Services for Macromedia Technologies

For schedule/availability call Pamela Higgins:
w    +61 7 5451 0362
m    +61 419 677 151

or Direct:
m    +61 418 414 341
f    +61 2 9798 0070

 *** Register for WebDU http://www.mxdu.com 2-3 March 2006 ***





--
====================================
Postal: Po Box 3462 Dural, NSW 2158
Email: mailto:[EMAIL PROTECTED]
FireFly Internet Phone: 80011777

Reply via email to