Grep, convertwords and BOLDWORDS not playing nice.

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 41296
interpreted = N
texte = [boldwords words=[textstring]][convertwords db=^dbs/autolink1.db&case=t][grep search=(%20www\.[a-zA-Z0-9]*\.[a-zA-Z0-9]*)&replace=\1][include [sku].inc][/grep][/convertwords][/boldwords]This is for a story search on the site. Breaking it down...Boldwords - Whatever string they searched for is bolded in the storyConvertwords - for autolinks. Will search for a string in the database and replace it with the appropriate link. (e.g. Cedar Point becomes Cedar Point)Grep makes any URLs inside the story (e.g. Visit www.cedarpoint.com for more details) into a hyperlink (Visit www.cedarpoint.com)[sku].inc is the story itself.The only problem is that if the [boldwords] is inside the grep context, it won't make the text a hyperlink. If it's outside (like above), the hyperlink becomes www.cedarpoint.comAny suggestions?-- Matthew C. Bohne Web Developer Sandusky Register 314 W. Market St. Sandusky, OH 44870 419-625-5500 ext. 253 matthewbohne@sanduskyregister.com http://www.sanduskyregister.com------------------------------------------------------------- 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 Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Grep, convertwords and BOLDWORDS not playing nice. (Matthew Bohne 2002)
[boldwords words=[textstring]][convertwords db=^dbs/autolink1.db&case=t][grep search=(%20www\.[a-zA-Z0-9]*\.[a-zA-Z0-9]*)&replace=\1][include [sku].inc][/grep][/convertwords][/boldwords]This is for a story search on the site. Breaking it down...Boldwords - Whatever string they searched for is bolded in the storyConvertwords - for autolinks. Will search for a string in the database and replace it with the appropriate link. (e.g. Cedar Point becomes Cedar Point)Grep makes any URLs inside the story (e.g. Visit www.cedarpoint.com for more details) into a hyperlink (Visit www.cedarpoint.com)[sku].inc is the story itself.The only problem is that if the [boldwords] is inside the grep context, it won't make the text a hyperlink. If it's outside (like above), the hyperlink becomes www.cedarpoint.comAny suggestions?-- Matthew C. Bohne Web Developer Sandusky Register 314 W. Market St. Sandusky, OH 44870 419-625-5500 ext. 253 matthewbohne@sanduskyregister.com http://www.sanduskyregister.com------------------------------------------------------------- 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 Web Archive of this list is at: http://search.smithmicro.com/ Matthew Bohne

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:

using showpage and showcart commands (1996) Help HTML reader (1999) OK, here goes... (1997) WebCat2b12--[searchstring] bug (1997) Emailer help....! (1997) TCPConnect to Telnet (2003) Generating Report Totals (1997) Storefornts (1997) pipe delimited crconvert database (2002) Deadlock (1999) can WC render sites out? (1997) Massaging SubTotals (1999) 2.0Beta Command Ref (can't find this instruction) (1997) WC2b15 File Corruption (1997) Sorting problem (1997) WC 2.0 frames feature (1997) WebCat2: Formulas.db question (1997) [WebDNA] WebDNA 7 fastcgi fails to start (2011) OT: Where to turn (2003) deadlock (2000)