The Arcive of vBulletin Modifications Site. |
|
Arrrrrh! Line Breaks! Details »»
|
|||||||||||||||||||||||||
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? Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
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? |
|
#3
|
||||
|
||||
|
use the function nl2br()
|
|
#4
|
|||
|
|||
|
you will have to excuse my lack of php
can you give me a little example of how I would use that?
|
|
#5
|
||||
|
||||
|
Code:
$post[message] = nl2br($post[pagetext]);
|
![]() |
|
|