
Welcome to all phpBB2 Refugees! This site is intended to continue support for the legacy 2.x line of the phpBB2 bulletin board package. If you are a fan of phpBB2, please, by all means register, post, and help us out by offering your suggestions. We are primarily a community and support network. Our secondary goal is to provide a phpBB2 MOD Author and Styles area. |
|
Author |
Message |
dogs and things Board Member

Joined: 18 Nov 2008
          Posts: 623 Location: Spain

|
Posted: Mon Oct 25, 2010 6:48 pm Post subject: Where is <br> inserted into the posts text? |
|
|
I noticed phpBB2 has the habit of stuffing loads of <br> into posts text.
I have spent a good bit of time searching through the code and can´t find where and at what point this is done.
In the posts_text table I don't see any <br> so I suspect it is done on topic view.
Who can shed a light on this, please? _________________ phpBB2 will never die, I hope! |
|
Back to top |
|
 |
Salvatos Board Member

Joined: 19 Feb 2009
          Posts: 433 Location: Québec

|
Posted: Tue Oct 26, 2010 2:42 am Post subject: Re: Where is <br> inserted into the posts text? |
|
|
I'm guessing $message = str_replace("\n", "\n<br />\n", $message); in view_topic.php |
|
Back to top |
|
 |
dogs and things Board Member

Joined: 18 Nov 2008
          Posts: 623 Location: Spain

|
Posted: Tue Oct 26, 2010 7:09 am Post subject: Re: Where is <br> inserted into the posts text? |
|
|
Duhh,
Thanks.
I was looking for <br>, not <br />, as <br> is what's shown in the view source. _________________ phpBB2 will never die, I hope! |
|
Back to top |
|
 |
|
Not affiliated with or endorsed by the phpBB Group
Powered by phpBB2 © phpBB Group
Generated in 0.0249 seconds using 15 queries. (SQL 0.0020 Parse 0.0008 Other 0.0221) |
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com
|
|