Page 1 of 1

extra newlines on latest news

Posted: 1. February 2019 09:37
by merte
hello!

I ran into a little problem with the use of board 3

namely, i am running your portal software on bronies.nl, and we use the news segment.
however i find that it adds a lot of blank space (<BR>) to the text, wich makes it rather stretched out, is there any way to fix this, so the markup is the same as in the original post?

Kind regards, Merte.

Re: extra newlines on latest news

Posted: 1. February 2019 20:19
by Kirk
Hi
Open: root/ext/board3/portal/portal/fetch_posts.php
Find:

Code: Select all

$message = str_replace(array("\n", "\r"), array('<br />', "\n"), $row['post_text']);
Replace with:

Code: Select all

$message = str_replace(array("\n", "\r"), array("\n"), $row['post_text']);