Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Line and paragraph breaks from phpBB imported comments won't show
I converted my Invision Powerboard to phpBB and then to Vanilla which worked out quite all-right. Only the line and paragraph breaks in old comments won't show. But when I edit an old comment the line and paragraph breaks are being displayed, and saving them solves the problem... Unfortunately there are 20.000 of old comments.
Is there an easier (and faster) way to show line and paragraph breaks from old imported comments?
0
This discussion has been closed.
Comments
$sReturn = str_replace("\r\n", '<br />', $sReturn);
to this$sReturn = str_replace(array("\r\n", "\r", "\n"), '<br />', $sReturn);
I found the solution: By replacing all line-breaks with html breaks in the body, changing the formattype from bbcode to html and using the html formatter extension my 20.000 old posts now show line breaks!
I used the following queries:
UPDATE `LUM_Comment` SET FormatType ="Html"; UPDATE `LUM_Comment` SET Body = replace(Body, " ", "<br />");