1
Skype-Fr
Koivi and WeBlog
  • 2006/4/27 14:57

  • Skype-Fr

  • Just popping in

  • Posts: 32

  • Since: 2006/4/27


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 errorCannot 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?

2
frankblack
Re: Koivi and WeBlog
  • 2006/4/27 15:18

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


The include must be:

include_once XOOPS_ROOT_PATH."/class/wysiwyg/formwysiwygtextarea.php";

3
sato-san
Re: Koivi and WeBlog
  • 2006/4/27 15:51

  • sato-san

  • Quite a regular

  • Posts: 224

  • Since: 2005/7/1 1



4
Skype-Fr
Re: Koivi and WeBlog
  • 2006/4/27 16:22

  • Skype-Fr

  • Just popping in

  • Posts: 32

  • Since: 2006/4/27


Oh cool ! Thanks very much...

5
roh112
Re: Koivi and WeBlog
  • 2007/5/6 14:06

  • roh112

  • Just popping in

  • Posts: 5

  • Since: 2007/1/27


The above link doesn't seem to work anymore. Anyone here can share this file? Thanks in advance.

6
roh112
Re: Koivi and WeBlog
  • 2007/5/7 11:56

  • roh112

  • Just popping in

  • Posts: 5

  • Since: 2007/1/27


Anyway, i hacked the post.php file and it seems to work.
Here it is then :

// Generate our form promatically
  
include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";
  [
color=FF0000]include_once XOOPS_ROOT_PATH."/class/wysiwyg/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));
  [
color=009900]//$blog_form->addElement(new XoopsFormDhtmlTextArea(_BL_CONTENTS,'contents',
  //                                                  $entry->getVar('contents', 'e'),
  //                                                  $xoopsModuleConfig['editorheight'],
  //                                                  $xoopsModuleConfig['editorwidth']), true);[/color]
  
[color=FF0000]$blog_form->addElement(new XoopsFormWysiwygTextArea(_BL_CONTENTS,'contents',
                                                    
$entry->getVar('contents''e')));[/color]

7
mrphilong
Re: Koivi and WeBlog
  • 2007/5/7 12:10

  • mrphilong

  • Quite a regular

  • Posts: 351

  • Since: 2006/7/14


It works, great! thanks mate.

Login

Who's Online

328 user(s) are online (202 user(s) are browsing Support Forums)


Members: 0


Guests: 328


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