![]() |
Arrrrrh! Line Breaks!
I have made a hack for my site (http://www.pcreview.co.uk/modofthemonth.php) but line breaks done work when typed in the text box (only in that forum though).
For example, this paragraph would start right after the one above, with no space! Any ideas on what is up? |
OK, I have figured out why it does this now, but not how to solve it...
I am calling the post information $post[pagetext] into the showthread template instead of parsing it properly in postbits and showthread.php Do you know how I can add the auto <br> into it? |
use the function nl2br() :)
|
you will have to excuse my lack of php ;) can you give me a little example of how I would use that?
|
Code:
$post[message] = nl2br($post[pagetext]); |
All times are GMT. The time now is 12:03 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|