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.- brian At 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:

    
  1. Re: Need Photo Placement Suggestions (Kenneth Grome 2002)
  2. Re: Need Photo Placement Suggestions (Brian Fries 2002)
  3. Need Photo Placement Suggestions (Kimberly D Ingram 2002)
  4. Re: Need Photo Placement Suggestions (Anup Setty 2002)
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.- brian At 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:

Flash Stores (2003) Huge databases and RAM (1998) [Webcat 2]Next (1997) Setting up shop (1997) Where is f2? (1997) Erotic Sites (1997) Banner DNA (1997) Training Videos for 3.0 (1998) Banners and sort of random display (1997) WebDNA Solutions ... (1997) WebCat2 - [format thousands] (1997) Displaying text and populating form fields (2005) Grep issue (2003) Followup question re: checksum for credit cards? (1997) Summing fields (1997) Re[2]: Date Time Oddness (1999) Emailer setup (1997) [WebDNA] Poll: Discussion Forum (2009) WC2.0 Memory Requirements (1997) More news on 5.0 (2003)