kenny873
05-15-2003, 04:03 AM
i have a forum and I would like to perform the following task:
when user post a message as follow:
"heydudehereisthephotoyouwouldliketoread...checkitoutheydudehereisthephotoyouwouldliketoread...checki toutheydudehereisthephotoyouwouldliketoread...checkitoutheydudehereisthephotoyouwouldliketoread...ch eckitoutheydudehereisthephotoyouwouldliketoread...checkitout
<img src='http://www.oetschermarathon.at/Downloads/Bil20d23-1024.768.jpg'>
howdoyoulikeitpleaseletmeknowhowdoyoulikeitpleaseletmeknowhowdoyoulikeitpleaseletmeknowhowdoyoulikei 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?
when user post a message as follow:
"heydudehereisthephotoyouwouldliketoread...checkitoutheydudehereisthephotoyouwouldliketoread...checki toutheydudehereisthephotoyouwouldliketoread...checkitoutheydudehereisthephotoyouwouldliketoread...ch eckitoutheydudehereisthephotoyouwouldliketoread...checkitout
<img src='http://www.oetschermarathon.at/Downloads/Bil20d23-1024.768.jpg'>
howdoyoulikeitpleaseletmeknowhowdoyoulikeitpleaseletmeknowhowdoyoulikeitpleaseletmeknowhowdoyoulikei 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?