1
Dubya
Newbb 2.0 Preview Post problem
  • 2006/7/23 17:05

  • Dubya

  • Just popping in

  • Posts: 4

  • Since: 2006/7/21


when i preview post. Everytime i start a new line, the preview post option replaces it with a
that i have to go in and manually delete. im guessin this is some form of forum "html" however when i post it jsut posts
instead of a new line.

Is there anyway to stop preview post from removing my new lines and putting
in its place?

2
Aeldan
Re: Newbb 2.0 Preview Post problem
  • 2006/7/28 17:40

  • Aeldan

  • Just popping in

  • Posts: 2

  • Since: 2006/7/28


Hi Dubya

I just found this annoying bug too, and I found the reason, and the solution ^^

Apparently, it cames from the changes made in class/module.textsanitizer.php, function $previewTarea.

To resolve, just replace in your modules/newbb/post.php, about line 86
Quote:
$p_message = $myts->previewTarea($_POST['message'],$dohtml,$dosmiley,$doxcode);

by
Quote:
$temp_message = $_POST['message'];
$p_message = $myts->previewTarea($temp_message,$dohtml,$dosmiley,$doxcode);


And it will work :)

3
davidl2
Re: Newbb 2.0 Preview Post problem
  • 2006/7/28 17:45

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


Make sure you use the updated version of module.texsanitiser here

(And also consider backing up your data, and updating to CBB 3.05)

Login

Who's Online

333 user(s) are online (254 user(s) are browsing Support Forums)


Members: 0


Guests: 333


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits