xoops forums

hrac

Quite a regular
Posted on: 2005/7/30 7:10
hrac
hrac (Show more)
Quite a regular
Posts: 305
Since: 2002/7/15
#1

koivi editor on 2.2

Hello,
How can I enable or being used built in koivi editor comes with XOOPS 2.2?
Thanks

hrac

Quite a regular
Posted on: 2005/7/31 8:21
hrac
hrac (Show more)
Quite a regular
Posts: 305
Since: 2002/7/15
#2

Re: koivi editor on 2.2

nobody knows???

DCrussader

Friend of XOOPS
Posted on: 2005/7/31 9:14
DCrussader
DCrussader (Show more)
Friend of XOOPS
Posts: 573
Since: 2005/7/4 7
#3

Re: koivi editor on 2.2

Koivi in 2.2 of XOOPS can be used only with modules created for 2.2, such as CBB 2.2BETA, this one is a Community Buletin Board, successor of NewBB 2.0.2.

In Administration/modules/cbb/preferences, u can select how many WYSIWYG editors can be used or only one. Currently only Koivi is supported with CBB 2.2.

Koivi and others cant be enabled in post comments, contact us and private messaging, dont ask me why, this is a Mith task.
May The Source Be With You!

zoullou

Quite a regular
Posted on: 2005/7/31 9:54
zoullou
zoullou (Show more)
Quite a regular
Posts: 250
Since: 2004/3/2 0
#4

Re: koivi editor on 2.2

I think you could add Kiovi for all module if you use XOOPS form API. You can make a form with Kiovi like this. I haven't test this code
$form = new XoopsThemeForm($title$name$action$method$addtoken);
if(!empty(
$_POST['editor']) || !empty($_COOKIE['editor'])) {
    if(!empty(
$_POST['editor'])) {
        
$editor $_POST['editor'];
    } else {
        
$editor $_COOKIE['editor'];
    }
} else {
    
$editor "";
}
if(!empty(
$editor)){
    
setcookie("editor",$editor);
}
$form->addElement(new XoopsFormSelectEditor($form,"editor",$editor));
$options['name'] ='event_desc';
$options['value'] = empty($_REQUEST['message'])?"":$_REQUEST['message'];
$form->addElement(new XoopsFormEditor("Description"$editor$options), false);
$form->addElement(new XoopsFormButton("""form_submit"_SEND"submit"), false);

Cheers