extra newlines on latest news

Current Version: 2.1.0
Released: 2015-10-26
Forum rules
Before creating a new support thread, please take a look at the board3 Portal FAQ and use the search!
Many questions have already been answered.

Topic author
Active Member
Active Member
Posts: 1
Joined: 26. February 2018 23:01

extra newlines on latest news

Post by merte »


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.
User avatar

Portal Professional
Portal Professional
Posts: 1844
Joined: 27. July 2010 18:02
phpBB.de User: Kirk

Re: extra newlines on latest news

Post by Kirk »

Open: root/ext/board3/portal/portal/fetch_posts.php

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']);

Return to “Board3 Portal 2.1.x - English Support”