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. BohneWeb DeveloperSandusky Register314 W. Market St.Sandusky, OH 44870419-625-5500 ext. 253matthewbohne@sanduskyregister.comhttp://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:
|
- 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. BohneWeb DeveloperSandusky Register314 W. Market St.Sandusky, OH 44870419-625-5500 ext. 253matthewbohne@sanduskyregister.comhttp://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:
How do I specify a & character in Grep? (2000)
Protect (1997)
multiple search commands (1997)
OT: Weird table rendering w/ WebCat in Explorer (2005)
encryption in browser? (1998)
Shownext on AOL (2003)
WC2f3 (1997)
Re:HELP - NONE STOP DIGESTS. Digest for 4/24/97) (1997)
Re2: frames & carts (1997)
Problems with cybercash (2000)
WebCatalog2 Feature Feedback (1996)
[WebDNA] Is anybody running a CAPTCHA? (2017)
Re:2nd WebCatalog2 Feature Request (1996)
WC2f3 (1997)
[format 40s]text[/format] doesn't work (1997)
problems with 2 tags shakur (1997)
Help!!!! (1997)
SiteGaurd file Cache vs webcatalog cache (1997)
locking variables? (2000)
2.0 Info (1997)