11
nmshah
Re: Koivi editor on Smartfaq
  • 2009/4/14 21:12

  • nmshah

  • Just can't stay away

  • Posts: 556

  • Since: 2007/7/2 8


Quote:
I haven't test it but you might try the following as an example.
Open the file /include/submit.inc.php and find the following lines:

// ANSWER
$answer_text = new XoopsFormDhtmlTextArea(_MD_SF_ANSWER_FAQ'answer'$answerObj->answer(), 1560);
$answer_text->setDescription(_MD_SF_ANSWER_FAQ_DSC);
$form->addElement($answer_texttrue);


Replace the above line with these lines:

// ANSWER
include_once(XOOPS_ROOT_PATH "/class/xoopseditor/koivi/formwysiwygtextarea.php");
$answer_text = new XoopsFormWysiwygTextArea(_MD_SF_ANSWER_FAQ'answer'$answerObj->answer(), '100%''400px');
$answer_text->setDescription(_MD_SF_ANSWER_FAQ_DSC);
$form->addElement($answer_texttrue);



I have just tried this out. Hmmm it does not seem to be working with XOOPS 2.3.3. Just gives a white blank page on the sumit page.

12
nmshah
Re: Koivi editor on Smartfaq
  • 2009/4/14 21:21

  • nmshah

  • Just can't stay away

  • Posts: 556

  • Since: 2007/7/2 8


Tried to make the above code with fckeditor by replacing koivi with fckeditor in the above code. Still the same result.

On debug found formwysiwygtextarea.php does not exist in the xoopseditor/koivi/
and xoopseditor/fckeditor/ both. It seems the file has been renamed to formkoivi.php and formfckeditor.php respectively for the editors.

So replaced formwysiwygtextarea.php with this formfckeditor.php in the above code and also XoopsFormWysiwygTextArea with XoopsFormFckeditor

The fckeditor displays on the submit page now. But it does not save any answer written in it.

Debug info shows:

Warning: Class 'XoopsTree' is deprecated, check 'XoopsObjectTree' in tree.php in file /class/xoopstree.php line 45
Warning: Invalid argument supplied for foreach() in file /class/xoopseditor/fckeditor/formfckeditor.php line 145

Kindly Help

Login

Who's Online

293 user(s) are online (206 user(s) are browsing Support Forums)


Members: 0


Guests: 293


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