1
Wonderfish1
Koivi editor on Smartfaq

Does anyone know how to make the textarea in Smartfaq use Koivi instead of Xoopseditor?

I have searched the hell out of everything and I can't find it. I don't know which php module it is specified in, or what to change that code to.

I have Koivi installed on the site.

TIA,
Tim

2
McDonald
Re: Koivi editor on Smartfaq
  • 2007/2/27 11:43

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


Not sure, but maybe this discussion in french in the SmartFAQ forum might help you:

http://smartfactory.ca/modules/newbb/viewtopic.php?topic_id=288&forum=4

3
Wonderfish1
Re: Koivi editor on Smartfaq

In French.

Hmmmm


Well, off I go to try.....

It was a long time ago......

*upload a medium rare yellow pencil box*

no, that can't be right......


Thanks,
Tim

4
Wonderfish1
Re: Koivi editor on Smartfaq

Those hacks didn't do it for me

I translated it here

Translation

I put the code in and it gave me an unhappy blank page.

Anyone have any ideas in my native English

5
mrphilong
Re: Koivi editor on Smartfaq
  • 2007/2/27 13:21

  • mrphilong

  • Quite a regular

  • Posts: 351

  • Since: 2006/7/14


Found a solution for the backend, hope it helps:

http://membres.lycos.fr/koivixoops/modules/wfsection/article.php?articleid=11

Let me know if you found a solution for the frontend

eg: modules/smartfaq/submit.php

6
Wonderfish1
Re: Koivi editor on Smartfaq

I think it would be hard enough to do in my own language, much less in one I don't speak

I think that the risk of breaking the module is greater than the benefit of a good editor. Hopefully someone can guide me to an English language solution. I am not being elitist, I am Australian and English is really all I speak


Thanks again,
Tim

7
Wonderfish1
Re: Koivi editor on Smartfaq

I have been searching extensively and found a lot of ppl have asked how to do this, but I haven't found one that has been successful yet.

If I find a solution I will post it here.

8
McDonald
Re: Koivi editor on Smartfaq
  • 2007/2/28 13:01

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


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);

9
Wonderfish1
Re: Koivi editor on Smartfaq

You, Sir, appear to be a bona fide genius. That works like a beauty.

(I had to adjust the path for where koivi was but I can do that)

I hope your chooks (chickens) poo diamonds.


Thanks,
Tim

10
vietnam
Re: Koivi editor on Smartfaq
  • 2009/4/14 2:57

  • vietnam

  • Just popping in

  • Posts: 59

  • Since: 2007/5/25


Quote:

McDonald wrote:
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 want to use koivi
Xoops2.3.3 I would like to ask, how is the right to change the
Thanks!

Login

Who's Online

317 user(s) are online (244 user(s) are browsing Support Forums)


Members: 0


Guests: 317


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