1
colossus
Problem with Newbb 1 in Xoops 2.3
  • 2008/9/22 23:57

  • colossus

  • Just popping in

  • Posts: 43

  • Since: 2007/9/30


Hi:

I've upgraded from 2.0.18.2 to new XOOPS 2.3 Final in a test enviroment.

When I try to edit a post in the old Newbb 1.0 forum, the textarea is empty (the original text is not there to be edited). It seems to be related to xoopsCodeTarea function, that looks quite different to the one in 2.0.x. Any idea of how could it be fixed? I'll eventually migrate the forums to CBB, but Newbb should be working until then.

XOOPS Version - XOOPS 2.3.0
PHP Version - 5.2.5
MySQL Version - 4.1.22-standard
Server API Version - cgi
OS Version - Linux

Thanks in advance, and regards: Colossus

PD: Congratulations to all the developers who contributed to make 2.3 possible.

2
jdseymour
Re: Problem with Newbb 1 in Xoops 2.3

I think newbb 1 is kind of old, and hasn't been supported by bug or security fixes in quite some time. The latest newbb is CBB 3.08, but if it is too heavy for you maybe try some newbb 1 clones still in development. I think newbbex is one. You can find information on it here:

http://xoops.instant-zero.com/modules/pages/index.php?pagenum=3

3
colossus
Re: Problem with Newbb 1 in Xoops 2.3
  • 2008/9/23 22:07

  • colossus

  • Just popping in

  • Posts: 43

  • Since: 2007/9/30


Hi:

First of all, thak you for your suggestions, jdseymour.

I've found a dirty workaround for the problem: inject the desired text in the text-area using Javascript.

Just in case someday somebody need this hack... Edit the line 83 of the modules/newbb/include/forumform.inc.php file in your XOOPS installation:

xoopsCodeTarea("message");


Change to:

xoopsCodeTarea("message");

// Insert original text in textarea when editing (needed in XOOPS 2.3+)
if ( empty($isreplay) && isset($message) && $message != "" ) {
        echo 
"<input type='hidden' name='messagetext' id='messagetext' value='$message' />";
        echo 
"<script language = 'javascript'>
xoopsGetElementById("
message").value=xoopsGetElementById("messagetext").value;
</script>"
;
}


That's all, everything seems to be working OK after the change (but do check if you apply the hack).

Regards: Colossus

PS: There are some other issues with Newbb 1 in XOOPS >= 2.0.17. For example signature problem or when quoting or previewing posts.

Login

Who's Online

196 user(s) are online (128 user(s) are browsing Support Forums)


Members: 0


Guests: 196


more...

Donat-O-Meter

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

Latest GitHub Commits