Page 1 of 1

word search and wrap crisis

Posted: Wed May 14, 2003 10:09 pm
by theclay7
i have a forum and I would like to perform the following task:

when user post a message as follow:

"heydudehereisthephotoyouwouldliketoread...checkitoutheydudehereisthephotoyouwouldliketoread...checkitoutheydudehereisthephotoyouwouldliketoread...checkitoutheydudehereisthephotoyouwouldliketoread...checkitoutheydudehereisthephotoyouwouldliketoread...checkitout
<img src='http://www.sasi.co.za/saycheese/WCwallp ... 4.768).jpg'>
howdoyoulikeitpleaseletmeknowhowdoyoulikeitpleasel
etmeknowhowdoyoulikeitpleaseletmeknowhowdoyoulikei
tpleaseletmeknow."

I want the words to be in wordwrap where i did wordwrap function, but then if I want to post this picture, the wordwrap function will break the url of the picture with a % and hence, the picture will not be shown. I would like to write a function the will search each word in the messge and when it sees "http://" it will not wrap the area of "http://........." but the other words will be wrapped.

how do I do it?Image

p

Posted: Wed May 14, 2003 10:10 pm
by theclay7
Image

Posted: Wed May 14, 2003 11:59 pm
by volka
which dictionary/wordlist do you use?

Posted: Thu May 15, 2003 12:09 am
by theclay7
:o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o :o

what is that?