It should have a % for the width at least, and then it should wrap itself.
---John Holmes... > -----Original Message----- > From: Scott Reismanis [mailto:[EMAIL PROTECTED]] > Sent: Sunday, April 28, 2002 7:42 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: RE: [PHP] Wrapping Text > > Sorry I wasn't exactly clear on my explaination. I believe it is a > table design issue because i tried putting spaces between the image > tags. i.e. <img ...> <img ...> <img ...> <img ...> etc... and the table > was still been stretched. my solution has since been to force a <br> > (using wordwrap) but I would rather force a space which i can do but > this does not seem to cause the streching to stop. I guess it is my > tables as my site is designed to fit any res and as such does not have > set pixel width tables. back to the drawing board for me then i guess :) > > cheers for the suggestion > > ----- Original Message ----- > From: "John Holmes" <[EMAIL PROTECTED]> > Date: Monday, April 29, 2002 3:36 am > Subject: RE: [PHP] Wrapping Text > > > Wordwrap() might be a good solution for you, but it's probably > > more of a > > table design issue. The table needs some whitespace to break to a new > > line. If you are putting in a string of <img...><img...><img...> > > etc..then there's no where to break. Try putting a space before or > > afterthe <img...> when you replace the :P with it. > > > > And for the replacing, if the user does not edit the post, then do the > > conversion when they submit it. If they do edit it, then do it at run > > time. If there is editing involved, you want to present the text > > back to > > the user in the same format as they typed it, or otherwise they'll get > > confused. If there is no editing, then you'll save processor time by > > only doing the conversion once, instead of for every view. > > > > ---John Holmes... > > > > > -----Original Message----- > > > From: Scott Reismanis [mailto:[EMAIL PROTECTED]] > > > Sent: Saturday, April 27, 2002 11:58 PM > > > To: [EMAIL PROTECTED] > > > Subject: [PHP] Wrapping Text > > > > > > Hi PHP digest readers. > > > > > > Ok I have a problem and a question which I am certain many share and > > > even a solution to my problem, however I wish to hear how you dealt > > with > > > this issue to see if there is a better method. > > > > > > Ok for my problem, it is regarding a smilie system. Currently what > > > happens is if people post :P:P:P:P:P:P etc.. etc.. then the text > > field> expands to an ugly length. My current solution which I > > don't really > > like > > > is to limit the number of smiles which a person is allowed to > > use. Can > > > anyone propose a better solution than this? i.e. wrap them using PHP > > or > > > maybe I coded my html poorly which is why my table is expanding? > > > > > > Secondly my question on a similar note whether to convert > > smilies at > > > runtime, or when a person submits a post? The beneifits at > > runtime is > > > less space used in the DB, and no worring about converting the > > converted > > > post back when it is needed to be edited, however with this > > method the > > > server has to do more processing in converting smilies each time the > > > post is viewed and vise versa. > > > > > > Thanks for your time, and I anticipate any light which can be > > shed on > > > this issue. > > > > > > Scott > > > > > > ---------------- > Powered by telstra.com > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php