The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
how do i make sure that when inserting this code into the database it adds any line breaks that may be typed out by the users?
PHP Code:
|
#2
|
||||
|
||||
![]()
well, it automatically adds linebreaks by the users into the DB.
just when you output the msg, you have to make sure they are parsed (nl2br()) |
#3
|
||||
|
||||
![]()
oh ok, so it's on the output side i have to worry about the line breaks, ok then, would i put the (nl2br()) around the query to select the date from the database ala
PHP Code:
[high]* sabret00the thinks he might have to dig out his php book :nervous:[/high] |
#4
|
||||
|
||||
![]()
nope, not around the query.
lets say you have this: PHP Code:
but if you use PHP Code:
btw. if you use parse_bbcode it will automatically use nl2br ![]() |
#5
|
||||
|
||||
![]()
sorry to be a pain stefan, but i don't think i'm getting this, so heres the code that outputs what i'm trying to show up with line breaks
PHP Code:
|
#6
|
||||
|
||||
![]()
just put a $text = nl2br($text); before the evel project bits part
![]() |
#7
|
||||
|
||||
![]()
thanks xenon you're a great help
![]() |
#8
|
||||
|
||||
![]() ![]() you're always welcome ![]() |
#9
|
||||
|
||||
![]()
sorry to be a pain xenon but it didn't work
![]() |
#10
|
||||
|
||||
![]()
i suggest to use this code, that should work
![]() PHP Code:
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|