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
merte
Active Member
Active Member
Posts: 1
Joined: 26. February 2018 23:01

extra newlines on latest news

Post by merte » 1. February 2019 10:37

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.

User avatar

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

Re: extra newlines on latest news

Post by Kirk » 1. February 2019 21:19

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

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