Re: Need Photo Placement Suggestions
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 40988
interpreted = N
texte = It would certainly be easier (and more controllable by the admin) if you did have the administrator specify the location of the images - you could have them enter something like (pic1) then do a grep or convertwords to replace that with the appropriate IMG tag.Placing the images automatically gets really messy - they should at least be between words, better if between sentences or paragraphs. Maybe a listwords with delimiters=%0A%0D to get between lines, assuming the body is multiple lines with line breaks. But to spread them out through a longer body? You'd have to count the lines and divide by the number of images to be placed, then figure out when you get to the right lines to insert images between based on the [index] of the listwords.- brianAt 1:21 PM 6/26/02, Kimberly D Ingram wrote:>In working with an online newsletter and accompanying administration>interface...>I would like to provide a form for the administrator to submit the following>information for each article:> 1. Title> 2. Body> 3. Images>Let's say the administrator would be able to submit up to 3 image filenames>from his/her image library.>>Now for my pondering...>I would like to place the specified images throughout the body of the>article automatically (placement being determined by the length of the>newsletter article). I do not want to ask the administrator where to place>the images, only what order to place them (image1, image2, image3).>>I have thought about how to go about this and both [countchars] and/or>[countwords] come to mind, but that's about as far as I have gotten... I>can't figure out how to actually code this scenario. Has anyone else worked>with a similar project or does anyone have any other suggestions that may>help me make this happen?>>Kim>>netSourcery>Voice: 423-336-1638>Fax: 208-361-8030>Emergency: 423-618-1069>Toll Free: 1-866-811-7087>>>The grass is greener on the other side, only when you're treading so>heavily on this one. - Kimberly Ingram>_____________________________________________>This service is brought to you by netSourcery.>Post Office Box 199 in Charleston, Tennessee 37310-- <= Brian C. Fries, BrainScan Software http://www.brainscansoftware.com =><= Macintosh, Internet and Multimedia http://www.artsofauburn.com =><= Development and Consulting =>-------------------------------------------------------------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:
It would certainly be easier (and more controllable by the admin) if you did have the administrator specify the location of the images - you could have them enter something like (pic1) then do a grep or convertwords to replace that with the appropriate IMG tag.Placing the images automatically gets really messy - they should at least be between words, better if between sentences or paragraphs. Maybe a listwords with delimiters=%0A%0D to get between lines, assuming the body is multiple lines with line breaks. But to spread them out through a longer body? You'd have to count the lines and divide by the number of images to be placed, then figure out when you get to the right lines to insert images between based on the [index] of the listwords.- brianAt 1:21 PM 6/26/02, Kimberly D Ingram wrote:>In working with an online newsletter and accompanying administration>interface...>I would like to provide a form for the administrator to submit the following>information for each article:> 1. Title> 2. Body> 3. Images>Let's say the administrator would be able to submit up to 3 image filenames>from his/her image library.>>Now for my pondering...>I would like to place the specified images throughout the body of the>article automatically (placement being determined by the length of the>newsletter article). I do not want to ask the administrator where to place>the images, only what order to place them (image1, image2, image3).>>I have thought about how to go about this and both [countchars] and/or>[countwords] come to mind, but that's about as far as I have gotten... I>can't figure out how to actually code this scenario. Has anyone else worked>with a similar project or does anyone have any other suggestions that may>help me make this happen?>>Kim>>netSourcery>Voice: 423-336-1638>Fax: 208-361-8030>Emergency: 423-618-1069>Toll Free: 1-866-811-7087>>>The grass is greener on the other side, only when you're treading so>heavily on this one. - Kimberly Ingram>_____________________________________________>This service is brought to you by netSourcery.>Post Office Box 199 in Charleston, Tennessee 37310-- <= Brian C. Fries, BrainScan Software http://www.brainscansoftware.com =><= Macintosh, Internet and Multimedia http://www.artsofauburn.com =><= Development and Consulting =>-------------------------------------------------------------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/
Brian Fries
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:
UnitShopCost (2007)
WebDNA Developer Resource Center (2002)
Tracking (2004)
RAM variables (1997)
How to Sort Summ data ? (1997)
Emailer error codes (1999)
[WebDNA] PROTECT (2017)
Re[3]: 2nd WebCatalog2 Feature Request (1996)
NT Woes (1997)
Accepting credit cards (1997)
[protect] on NT? (1997)
Help formatting search results w/ table (1997)
Missing something simple?? (1998)
WebDNA Writer Needed (1997)
[ShowNext] feature in 2.0 (1997)
FW: ANother SHOWIF problem (1997)
WebCat2b15MacPlugin - [protect] (1997)
Replace context problem ... (1997)
[shownext max (1997)
calculating tax rates, mail order solutions and version 2 (1997)