UseBB Community

The official board for UseBB help and discussion

UseBB Community » Help & Support » Line Break

Line Break

Moderators: Gaia.

Page: 1

Author Post
Member
Registered: Feb 2007
Posts: 22
I just converted from phpBB to UseBB but the Line Breaks don't seem to be parsing properly?

Any suggestions would be great?
Developer
Registered: Apr 2004
Posts: 2218
Location: Belgium
What do you mean with "not parsing properly"? Any examples, links?

Note the phpBB convertor is also not officially supported.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Member
Registered: Feb 2007
Posts: 22
Dietrich wrote
What do you mean with "not parsing properly"? Any examples, links?

Note the phpBB convertor is also not officially supported.

What I meant by "not parsing properly" is that all posts would appear like this:

Dietrich wrote
What do you mean with "not parsing properly"? Any examples, links? Note the phpBB convertor is also not officially supported.

I made it work by removing:

if (!html) {

}


From "sources/functions.php".

P.S. You may lock this topic now, sorry for the inconvenience.
« Last edit by y_r on Sun Feb 11, 2007 9:02 pm. »
Developer
Registered: Apr 2004
Posts: 2218
Location: Belgium
You have the enable HTML flag set to all posts, just simply disable it using:

UPDATE usebb_posts SET enable_html = 0
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Member
Registered: Feb 2007
Posts: 22
Does it make any difference if I do what you did rather then what I did?

P.S. I hope you understand what I am trying to say, because I didn't. :) :) :)
Developer
Registered: Apr 2004
Posts: 2218
Location: Belgium
Yes, your phpBB forum probably had HTML enabled on all posts, so it is in UseBB too. The difference is "enable HTML" in UseBB means full HTML possibilities rather than a few tags as in phpBB. It also doesn't parse line breaks when HTML is enabled, since you need to use <br />. So, disabled HTML is the right solution, changing the source code is not.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Member
Registered: Feb 2007
Posts: 22
Dietrich wrote
Yes, your phpBB forum probably had HTML enabled on all posts, so it is in UseBB too. The difference is "enable HTML" in UseBB means full HTML possibilities rather than a few tags as in phpBB. It also doesn't parse line breaks when HTML is enabled, since you need to use <br />. So, disabled HTML is the right solution, changing the source code is not.

Yes, you're right my phpBB forum did have HTML enabled on all posts (as there was no option to have it enabled only for only a selection of posts).

Am I right in thinking that, if I use your way it will mean that all the old posts containing HTML, will not show up correctly?

Sorry about the bad English, it's not my first language.
Developer
Registered: Apr 2004
Posts: 2218
Location: Belgium
Indeed, HTML will be shown raw. If you want to have it parsed you'll need to have the HTML converted to BBCode. But most of the time people don't use HTML on forums.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog

Page: 1

UseBB Community » Help & Support » Line Break

UseBB Community is powered by UseBB 1 Forum Software