transfer of archives from the ezboard forum [closed]
- Two Goth Geeks
- 50 or more caches found
- Posts: 281
- Joined: 05 April 03 7:02 pm
- Twitter: TwoGothGeeks
- Location: Sydney, Australia
- Contact:
- Two Goth Geeks
- 50 or more caches found
- Posts: 281
- Joined: 05 April 03 7:02 pm
- Twitter: TwoGothGeeks
- Location: Sydney, Australia
- Contact:
Okay, got it.
It's a part of phpBB2.
The data doesn't have < br /> in the database, but when phpBB2 displays data to the screen, it always puts the < br /> after every line so that it shows properly when you view the forum posts.
Unfortunately, unless there is some way to tag the post as "HTML ONLY", it's a bit difficult to know whether to add the line breaks or not.
It'd be one for the ideo's to work out.
It's a part of phpBB2.
The data doesn't have < br /> in the database, but when phpBB2 displays data to the screen, it always puts the < br /> after every line so that it shows properly when you view the forum posts.
Unfortunately, unless there is some way to tag the post as "HTML ONLY", it's a bit difficult to know whether to add the line breaks or not.
It'd be one for the ideo's to work out.
filxed (hopefully)
yes, it's in the code for viewing forum posts. it could be argued that it's a feature to allow you to sprinkle HTML tags within your post, but we think it's a bug!
after a bit of poking around, we've added a fix which appears to work
the drawback is that if you uncheck "Disable HTML in this post" (sorry about the double negative) you'll have to code in pure HTML, ie add your own <br> for newlines. please let us know if you see any other irregularities
red dwarf, if you have the same problem on your board, our modification was in viewtopic.php line 1131. we added the the if-statement in front of the string replacement:
thanks for bringing it up, leek. those HTML imports are much easier to read
after a bit of poking around, we've added a fix which appears to work
the drawback is that if you uncheck "Disable HTML in this post" (sorry about the double negative) you'll have to code in pure HTML, ie add your own <br> for newlines. please let us know if you see any other irregularities
red dwarf, if you have the same problem on your board, our modification was in viewtopic.php line 1131. we added the the if-statement in front of the string replacement:
Code: Select all
if (!($board_config['allow_html'] and $postrow[$i]['enable_html']))
$message = str_replace("n", "n<br />n", $message);
- Two Goth Geeks
- 50 or more caches found
- Posts: 281
- Joined: 05 April 03 7:02 pm
- Twitter: TwoGothGeeks
- Location: Sydney, Australia
- Contact:
Thanks, id!
I don't generally allow HTML on my boards, so I don't have the problem. For those boards, there is no need for HTML.
PS: I reckon these boards are so much nicer than the ezboards. One of my phpbb2 boards I run was set up to get a bunch of people off ezboards. phpBB2 is so much nicer and easier to use IMO.
I don't generally allow HTML on my boards, so I don't have the problem. For those boards, there is no need for HTML.
PS: I reckon these boards are so much nicer than the ezboards. One of my phpbb2 boards I run was set up to get a bunch of people off ezboards. phpBB2 is so much nicer and easier to use IMO.
oops, wouldn't you think that the preview used the same code?
we've updated posting.php line 708 to read
it seems to work. please let us know if you see any problems.
we've updated posting.php line 708 to read
Code: Select all
if (!$html_on)
$preview_message = str_replace("n", '<br />', $preview_message);