JackCode Posted February 6, 2014 Share Posted February 6, 2014 So I have a simple forums that allows you to speak to different members but they're a lot of problems with it. So first off when you reply you can't include a new line. Another problem is symbols, there change to weird black symbols. Also if you post text with no spaces then the text will expand out of its div. My forums is: Ransack.comze.com/circle.php example of random symbols: http://ransack.comze.com/topic.php?id=20 example of text going out of div: http://ransack.comze.com/topic.php?id=15 Quote Link to comment https://forums.phpfreaks.com/topic/286003-php-forums-textarea-support/ Share on other sites More sharing options...
gizmola Posted February 7, 2014 Share Posted February 7, 2014 What would you like us to do exactly? You have provided absolutely no code. Quote Link to comment https://forums.phpfreaks.com/topic/286003-php-forums-textarea-support/#findComment-1468002 Share on other sites More sharing options...
JackCode Posted February 7, 2014 Author Share Posted February 7, 2014 The code is a few hundred lines, and I don't think there is any problems with it, I just thought maybe there would be some javascript I could use or something? Quote Link to comment https://forums.phpfreaks.com/topic/286003-php-forums-textarea-support/#findComment-1468016 Share on other sites More sharing options...
Ch0cu3r Posted February 7, 2014 Share Posted February 7, 2014 (edited) So first off when you reply you can't include a new line Actually the newlines are included, the problem is the web browser ignores whitespace characters such as newlines, in order to inforce newlines in HTML you need to use the <br> (line break) tag. PHP has a function that converts whitespace newline characters into line break tags for you. Try using nl2br when you output the text for the forum posts. example of text going out of div: http://ransack.comze...topic.php?id=15 Use CSS to apply wordwrap to the .post-content class to break long continuous letters Edited February 7, 2014 by Ch0cu3r Quote Link to comment https://forums.phpfreaks.com/topic/286003-php-forums-textarea-support/#findComment-1468051 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.