Re: user submitted data REPOST

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 28888
interpreted = N
texte = Hello all. This is my code for applescript to change data that a user submits for use in a forum. Works get so far but now I need help. Like the ultimatebb forum I would like to do this [link]http://www.foo.com[/link] to become www.foo.com any thoughts.--------cut here index.html--------- [math show=f]S=[ELAPSEDTIME][/math] [showif [button]=submit] [text show=f]start=[convertchars db=test.db][stuff][/convertchars][/text] [text show=f]finish=[applescript] set this_text to [start] set search_string to {:), :(} set replacement_string to {Link_to_smile_image, Link_to_frown_image} repeat with i from 1 to the number of items in search_string set AppleScript's text item delimiters to item i of search_string set the item_list to every text item of this_text set AppleScript's text item delimiters to item i of replacement_string set this_text to the item_list as string set AppleScript's text item delimiters to end repeat return this_text [/applescript][/text][/showif] Type Test
[text]finish[/text]
Type Here:
Time: [math]([ELAPSEDTIME]-[S])/60[/math]
-------end cut--------------------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Associated Messages, from the most recent to the oldest:

    
  1. Re: user submitted data REPOST (Kenneth Grome 2000)
  2. Re: user submitted data REPOST (nospam 2000)
  3. Re: user submitted data Repost (nospam 2000)
  4. Re: user submitted data REPOST (Kenneth Grome 2000)
  5. Re: user submitted data REPOST (nospam@1mediawerks.com 2000)
Hello all. This is my code for applescript to change data that a user submits for use in a forum. Works get so far but now I need help. Like the ultimatebb forum I would like to do this [link]http://www.foo.com[/link] to become www.foo.com any thoughts.--------cut here index.html--------- [math show=f]S=[elapsedtime][/math] [showif [button]=submit] [text show=f]start=[convertchars db=test.db][stuff][/convertchars][/text] [text show=f]finish=[applescript] set this_text to [start] set search_string to {:), :(} set replacement_string to {Link_to_smile_image, Link_to_frown_image} repeat with i from 1 to the number of items in search_string set AppleScript's text item delimiters to item i of search_string set the item_list to every text item of this_text set AppleScript's text item delimiters to item i of replacement_string set this_text to the item_list as string set AppleScript's text item delimiters to end repeat return this_text [/applescript][/text][/showif] Type Test
[text]finish[/text]
Type Here:
Time: [math]([elapsedtime]-[S])/60[/math]
-------end cut--------------------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to nospam@1mediawerks.com

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

[math date] with non-US date format (2000) PCS Emailer's role ? (1997) Moment of Thanks (1997) [WebDNA] RevTalk: Possible WebDNA competitor? (2010) RE: Formulas.db + Users.db (1997) Truncated value after space - refresh my memory.... (1997) Making a page expire with web catalog? (1999) WebCat2 beta 11 - new prefs ... (1997) Less than or equal to........ (1997) [WebDNA] Date weirdness (2014) Some Questions (1997) Cannot get subtotal to work (1997) Form Weirdness (2002) Stumpted Again (1997) Misc Stuff That Might Help (1997) WC2b15 - [HTMLx]...[/HTMLx] problems (1997) Error:Too many nested [xxx] contexts (1997) WebCat2 several catalogs? (1997) Re[2]: Feature: TCPconnect via SSL (1999) WebCat2b12--[searchstring] bug (1997)