Hi all,
I'm trying to install Koivi for WeBlog Module.
I'm hacking the file modules/weblog/post.php :
// Generate our form promatically
include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";
[color=0000CC] include_once XOOPS_ROOT_PATH."/class/formwysiwygtextarea.php";[/color]
include_once(sprintf('%s/modules/%s/include/myformdatetime.php', XOOPS_ROOT_PATH, $xoopsModule->dirname())) ;
include_once(sprintf('%s/modules/%s/include/myformtextdateselect.php', XOOPS_ROOT_PATH, $xoopsModule->dirname())) ;
$blog_form = new XoopsThemeForm(_BL_POST, 'blogform', "post.php");
$blog_form->addElement(new XoopsFormHidden('user_id',$entry->getVar('user_id')));
$blog_form->addElement(new XoopsFormHidden('blog_id',$entry->getVar('blog_id')));
$blog_form->addElement($xoopsGTicket->getTicketXoopsForm( __LINE__ ));
$blog_form->addElement(new XoopsFormLabel('',sprintf(_BL_POST_TIMEOUT, $xoopsModuleConfig['GTicket_timeout'])));
if ($xoopsModuleConfig['minentrysize'] > 0) {
$blog_form->addElement(new XoopsFormLabel('',sprintf(_BL_POST_MUST_BE,
$xoopsModuleConfig['minentrysize'])));
}
if( $xoopsModuleConfig['disable_html'] ){
$blog_form->addElement(new XoopsFormLabel(_BL_CAUTION_NOHTML, _BL_FORBIDDEN_HTML_TAGS));
}
$blog_form->addElement(new XoopsFormText(_BL_TITLE,'title',
$xoopsModuleConfig['editorwidth'],
80, $entry->getVar('title', 'e')), true);
//$selbox_tray = new XoopsFromElementTray('_BL_CATEGORY', '');
$blog_form->addElement(new XoopsFormLabel(_BL_CATEGORY, $selbox));
//$blog_form->addElement(new XoopsFormDhtmlTextArea(_BL_CONTENTS,'contents',
// $entry->getVar('contents', 'e'),
// $xoopsModuleConfig['editorheight'],
// $xoopsModuleConfig['editorwidth']), true);
[color=009900] $blog_form->addElement(new XoopsFormWysiwygTextArea(_BL_CONTENTS,'contents',
$entry->getVar('contents', 'e'),
$xoopsModuleConfig['editorheight'],
$xoopsModuleConfig['editorwidth']), true);[/color]
green is the line 404 , blue is 378
But this message error is shown :
Fatal error: Cannot instantiate non-existent class: xoopsformwysiwygtextarea in
e:easyphpwwwblogmodulesweblogpost.php on line 404
Warning [PHP]: main(e:/easyphp/www/blog/class/formwysiwygtextarea.php): failed
to open stream: No such file or directory in file
e:easyphpwwwblogmodulesweblogpost.php line 378
Warning [PHP]: main(): Failed opening
'e:/easyphp/www/blog/class/formwysiwygtextarea.php' for inclusion (include_path=
'.;E:/EasyPHPphppear') in file e:easyphpwwwblogmodulesweblogpost.php line 378
Could you help me?