phpBB2Refugees.com Logo
Not affiliated with or endorsed by the phpBB Group

Register •  Login 

Continue the legacy...

Welcome to all phpBB2 Refugees!Wave Smilie

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.

Where is <br> inserted into the posts text?


 
Search this topic... | Search MOD Writing... | Search Box
Register or Login to Post    Index » MOD Writing  Previous TopicPrint TopicNext Topic
Author Message
dogs and things
Board Member



Joined: 18 Nov 2008

Posts: 621
Location: Spain


flag
PostPosted: 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: 414
Location: Québec


flag
PostPosted: 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: 621
Location: Spain


flag
PostPosted: 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
Display posts from previous:   
Register or Login to Post    Index » MOD Writing  Previous TopicPrint TopicNext Topic
Page 1 of 1 All times are GMT
 
Jump to:  

Index • About • FAQ • Rules • Privacy • Search •  Register •  Login 
Not affiliated with or endorsed by the phpBB Group
Powered by phpBB2 © phpBB Group
Generated in 0.0169 seconds using 15 queries. (SQL 0.0022 Parse 0.0005 Other 0.0142)
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com Moments of Light Logo