1
Widget
upgraded news to 1.2.1 now koivi editor fatal error appears
  • 2004/12/27 3:31

  • Widget

  • Just popping in

  • Posts: 46

  • Since: 2004/12/24


I just upgraded my news version to 1.2.1 and followed the installation instructions on the docs provided by koivi editor when I uploaded all the changes I get this error.
Fatal error: Class xoopsformwysiwygtextareaCannot inherit from undefined class xoopsformelement in /home/premierl/public_html/home/class/wysiwyg/formwysiwygtextarea.php on line 52


This is the the installation instructions which i followed.
News 1.2.1 Module Integration Example

1º Open file news
/include/storyform.inc.php
2º After line 32 
(include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";) add:
include_once 
XOOPS_ROOT_PATH "/class/wysiwyg/formwysiwygtextarea.php";

3º Remove or comment line 61 ($sform->addElement(new XoopsFormDhtmlTextArea(_NW_THESCOOP'hometext'$hometext1560'hometext_hidden'), true);) and add:
$sform->addElement(new XoopsFormWysiwygTextArea_NW_THESCOOP'hometext'$hometext'100%''400px',''), true); 

4º Remove or comment line 66 ($sform->addElement(new XoopsFormDhtmlTextArea(_AM_EXTEXT'bodytext'$bodytext1560'bodytext_hidden'), false);) and add:
$sform->addElement(new XoopsFormWysiwygTextArea_AM_EXTEXT'bodytext'$bodytext'100%''400px',''), true);


Can anyone help me solve this problem. I have searched the forum and site for this particular error but I can't seem to find it. Thanks for taking the time to read this.

2
smdcom
Re: upgraded news to 1.2.1 now koivi editor fatal error appears

and what is in your news/include/storyform.inc.php?

3
Widget
Re: upgraded news to 1.2.1 now koivi editor fatal error appears
  • 2004/12/27 8:48

  • Widget

  • Just popping in

  • Posts: 46

  • Since: 2004/12/24


Hello thanks for your reply. I'm sorry for not including that. Anyways, I'm going to make it more detailed here. My errors got worst. I tried solving the proplem on my own and these errors came up:

Fatal errorCannot instantiate non-existent class: wysiwygcolorpalette in /home/premierl/public_html/home/class/wysiwyg/formwysiwygtextarea.php on line 513
Warning 
[PHP]: render(/home/premierl/public_html/home/class/wysiwyg/formwysiwygtextarea.php/language/english/lang.php): failed to open streamNot a directory in file class/wysiwyg/formwysiwygtextarea.php line 210
Warning 
[PHP]: render(): Failed opening '' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php'in file class/wysiwyg/formwysiwygtextarea.php line 210
Notice 
[PHP]: Use of undefined constant _FONT_SIZE assumed '_FONT_SIZE' in file class/wysiwyg/formwysiwygtextarea.php line 318
Notice 
[PHP]: Use of undefined constant _FONT_XSMALL assumed '_FONT_XSMALL' in file class/wysiwyg/formwysiwygtextarea.php line 319
Notice 
[PHP]: Use of undefined constant _FONT_SMALL assumed '_FONT_SMALL' in file class/wysiwyg/formwysiwygtextarea.php line 320
Notice 
[PHP]: Use of undefined constant _FONT_MEDIUM assumed '_FONT_MEDIUM' in file class/wysiwyg/formwysiwygtextarea.php line 321
Notice 
[PHP]: Use of undefined constant _FONT_LARGE assumed '_FONT_LARGE' in file class/wysiwyg/formwysiwygtextarea.php line 322
Notice 
[PHP]: Use of undefined constant _FONT_XLARGE assumed '_FONT_XLARGE' in file class/wysiwyg/formwysiwygtextarea.php line 323
Notice 
[PHP]: Use of undefined constant _FONT_XXLARGE assumed '_FONT_XXLARGE' in file class/wysiwyg/formwysiwygtextarea.php line 324
Notice 
[PHP]: Use of undefined constant _FONT_FORMAT assumed '_FONT_FORMAT' in file class/wysiwyg/formwysiwygtextarea.php line 336
Notice 
[PHP]: Use of undefined constant _FONT_NONE assumed '_FONT_NONE' in file class/wysiwyg/formwysiwygtextarea.php line 337
Notice 
[PHP]: Use of undefined constant _FONT_HEADING1 assumed '_FONT_HEADING1' in file class/wysiwyg/formwysiwygtextarea.php line 338
Notice 
[PHP]: Use of undefined constant _FONT_HEADING2 assumed '_FONT_HEADING2' in file class/wysiwyg/formwysiwygtextarea.php line 339
Notice 
[PHP]: Use of undefined constant _FONT_HEADING3 assumed '_FONT_HEADING3' in file class/wysiwyg/formwysiwygtextarea.php line 340
Notice 
[PHP]: Use of undefined constant _FONT_HEADING4 assumed '_FONT_HEADING4' in file class/wysiwyg/formwysiwygtextarea.php line 341
Notice 
[PHP]: Use of undefined constant _FONT_HEADING5 assumed '_FONT_HEADING5' in file class/wysiwyg/formwysiwygtextarea.php line 342
Notice 
[PHP]: Use of undefined constant _FONT_HEADING6 assumed '_FONT_HEADING6' in file class/wysiwyg/formwysiwygtextarea.php line 343
Notice 
[PHP]: Use of undefined constant _FONT_ADDRESS assumed '_FONT_ADDRESS' in file class/wysiwyg/formwysiwygtextarea.php line 344
Notice 
[PHP]: Use of undefined constant _WY_SYMBOLS assumed '_WY_SYMBOLS' in file class/wysiwyg/formwysiwygtextarea.php line 692
Notice 
[PHP]: Use of undefined constant _UNDO assumed '_UNDO' in file class/wysiwyg/formwysiwygtextarea.php line 495
Notice 
[PHP]: Use of undefined constant _UNDO assumed '_UNDO' in file class/wysiwyg/formwysiwygtextarea.php line 495
Notice 
[PHP]: Use of undefined constant _REDO assumed '_REDO' in file class/wysiwyg/formwysiwygtextarea.php line 443
Notice 
[PHP]: Use of undefined constant _REDO assumed '_REDO' in file class/wysiwyg/formwysiwygtextarea.php line 443
Notice 
[PHP]: Use of undefined constant _CUT assumed '_CUT' in file class/wysiwyg/formwysiwygtextarea.php line 298
Notice 
[PHP]: Use of undefined constant _CUT assumed '_CUT' in file class/wysiwyg/formwysiwygtextarea.php line 298
Notice 
[PHP]: Use of undefined constant _COPY assumed '_COPY' in file class/wysiwyg/formwysiwygtextarea.php line 283
Notice 
[PHP]: Use of undefined constant _COPY assumed '_COPY' in file class/wysiwyg/formwysiwygtextarea.php line 283
Notice 
[PHP]: Use of undefined constant _PASTE assumed '_PASTE' in file class/wysiwyg/formwysiwygtextarea.php line 431
Notice 
[PHP]: Use of undefined constant _PASTE assumed '_PASTE' in file class/wysiwyg/formwysiwygtextarea.php line 431
Notice 
[PHP]: Use of undefined constant _SPELLCHECK assumed '_SPELLCHECK' in file class/wysiwyg/formwysiwygtextarea.php line 455
Notice 
[PHP]: Use of undefined constant _SPELLCHECK assumed '_SPELLCHECK' in file class/wysiwyg/formwysiwygtextarea.php line 455
Notice 
[PHP]: Use of undefined constant _PRINT assumed '_PRINT' in file class/wysiwyg/formwysiwygtextarea.php line 435
Notice 
[PHP]: Use of undefined constant _PRINT assumed '_PRINT' in file class/wysiwyg/formwysiwygtextarea.php line 435
Notice 
[PHP]: Use of undefined constant _BOLD assumed '_BOLD' in file class/wysiwyg/formwysiwygtextarea.php line 258
Notice 
[PHP]: Use of undefined constant _BOLD assumed '_BOLD' in file class/wysiwyg/formwysiwygtextarea.php line 258
Notice 
[PHP]: Use of undefined constant _ITALIC assumed '_ITALIC' in file class/wysiwyg/formwysiwygtextarea.php line 395
Notice 
[PHP]: Use of undefined constant _ITALIC assumed '_ITALIC' in file class/wysiwyg/formwysiwygtextarea.php line 395
Notice 
[PHP]: Use of undefined constant _UNDERLINE assumed '_UNDERLINE' in file class/wysiwyg/formwysiwygtextarea.php line 491
Notice 
[PHP]: Use of undefined constant _UNDERLINE assumed '_UNDERLINE' in file class/wysiwyg/formwysiwygtextarea.php line 491
Notice 
[PHP]: Use of undefined constant _STRIKETHROUGH assumed '_STRIKETHROUGH' in file class/wysiwyg/formwysiwygtextarea.php line 459
Notice 
[PHP]: Use of undefined constant _STRIKETHROUGH assumed '_STRIKETHROUGH' in file class/wysiwyg/formwysiwygtextarea.php line 459
Notice 
[PHP]: Use of undefined constant _REMOVEFORMAT assumed '_REMOVEFORMAT' in file class/wysiwyg/formwysiwygtextarea.php line 471
Notice 
[PHP]: Use of undefined constant _REMOVEFORMAT assumed '_REMOVEFORMAT' in file class/wysiwyg/formwysiwygtextarea.php line 471
Notice 
[PHP]: Use of undefined constant _WY_REMOVE_DESC assumed '_WY_REMOVE_DESC' in file class/wysiwyg/formwysiwygtextarea.php line 472
Notice 
[PHP]: Use of undefined constant _WY_REMOVE_DESC assumed '_WY_REMOVE_DESC' in file class/wysiwyg/formwysiwygtextarea.php line 472
Notice 
[PHP]: Use of undefined constant _WY_REMOVE_SPANF assumed '_WY_REMOVE_SPANF' in file class/wysiwyg/formwysiwygtextarea.php line 612
Notice 
[PHP]: Use of undefined constant _WY_REMOVE_FONTF assumed '_WY_REMOVE_FONTF' in file class/wysiwyg/formwysiwygtextarea.php line 616
Notice 
[PHP]: Use of undefined constant _WY_REMOVE_WORDF assumed '_WY_REMOVE_WORDF' in file class/wysiwyg/formwysiwygtextarea.php line 620
Notice 
[PHP]: Use of undefined constant _WY_REMOVE_ALL assumed '_WY_REMOVE_ALL' in file class/wysiwyg/formwysiwygtextarea.php line 624
Notice 
[PHP]: Use of undefined constant _JUSTIFYLEFT assumed '_JUSTIFYLEFT' in file class/wysiwyg/formwysiwygtextarea.php line 407
Notice 
[PHP]: Use of undefined constant _JUSTIFYLEFT assumed '_JUSTIFYLEFT' in file class/wysiwyg/formwysiwygtextarea.php line 407
Notice 
[PHP]: Use of undefined constant _JUSTIFYCENTER assumed '_JUSTIFYCENTER' in file class/wysiwyg/formwysiwygtextarea.php line 399
Notice 
[PHP]: Use of undefined constant _JUSTIFYCENTER assumed '_JUSTIFYCENTER' in file class/wysiwyg/formwysiwygtextarea.php line 399
Notice 
[PHP]: Use of undefined constant _JUSTIFYRIGHT assumed '_JUSTIFYRIGHT' in file class/wysiwyg/formwysiwygtextarea.php line 411
Notice 
[PHP]: Use of undefined constant _JUSTIFYRIGHT assumed '_JUSTIFYRIGHT' in file class/wysiwyg/formwysiwygtextarea.php line 411
Notice 
[PHP]: Use of undefined constant _JUSTIFYFULL assumed '_JUSTIFYFULL' in file class/wysiwyg/formwysiwygtextarea.php line 403
Notice 
[PHP]: Use of undefined constant _JUSTIFYFULL assumed '_JUSTIFYFULL' in file class/wysiwyg/formwysiwygtextarea.php line 403
Notice 
[PHP]: Use of undefined constant _NEWPARAGRAPH assumed '_NEWPARAGRAPH' in file class/wysiwyg/formwysiwygtextarea.php line 423
Notice 
[PHP]: Use of undefined constant _NEWPARAGRAPH assumed '_NEWPARAGRAPH' in file class/wysiwyg/formwysiwygtextarea.php line 423
Notice 
[PHP]: Use of undefined constant _LEFTTORIGHT assumed '_LEFTTORIGHT' in file class/wysiwyg/formwysiwygtextarea.php line 415
Notice 
[PHP]: Use of undefined constant _LEFTTORIGHT assumed '_LEFTTORIGHT' in file class/wysiwyg/formwysiwygtextarea.php line 415
Notice 
[PHP]: Use of undefined constant _RIGHTTOLEFT assumed '_RIGHTTOLEFT' in file class/wysiwyg/formwysiwygtextarea.php line 447
Notice 
[PHP]: Use of undefined constant _RIGHTTOLEFT assumed '_RIGHTTOLEFT' in file class/wysiwyg/formwysiwygtextarea.php line 447
Notice 
[PHP]: Use of undefined constant _INSERTORDEREDLIST assumed '_INSERTORDEREDLIST' in file class/wysiwyg/formwysiwygtextarea.php line 383
Notice 
[PHP]: Use of undefined constant _INSERTORDEREDLIST assumed '_INSERTORDEREDLIST' in file class/wysiwyg/formwysiwygtextarea.php line 383
Notice 
[PHP]: Use of undefined constant _INSERTUNORDEREDLIST assumed '_INSERTUNORDEREDLIST' in file class/wysiwyg/formwysiwygtextarea.php line 387
Notice 
[PHP]: Use of undefined constant _INSERTUNORDEREDLIST assumed '_INSERTUNORDEREDLIST' in file class/wysiwyg/formwysiwygtextarea.php line 387
Notice 
[PHP]: Use of undefined constant _INDENT assumed '_INDENT' in file class/wysiwyg/formwysiwygtextarea.php line 363
Notice 
[PHP]: Use of undefined constant _INDENT assumed '_INDENT' in file class/wysiwyg/formwysiwygtextarea.php line 363
Notice 
[PHP]: Use of undefined constant _OUTDENT assumed '_OUTDENT' in file class/wysiwyg/formwysiwygtextarea.php line 427
Notice 
[PHP]: Use of undefined constant _OUTDENT assumed '_OUTDENT' in file class/wysiwyg/formwysiwygtextarea.php line 427
Notice 
[PHP]: Use of undefined constant _FORECOLOR assumed '_FORECOLOR' in file class/wysiwyg/formwysiwygtextarea.php line 329
Notice 
[PHP]: Use of undefined constant _FORECOLOR assumed '_FORECOLOR' in file class/wysiwyg/formwysiwygtextarea.php line 329
Notice 
[PHP]: Use of undefined constant _HILITECOLOR assumed '_HILITECOLOR' in file class/wysiwyg/formwysiwygtextarea.php line 350
Notice 
[PHP]: Use of undefined constant _HILITECOLOR assumed '_HILITECOLOR' in file class/wysiwyg/formwysiwygtextarea.php line 350
Notice 
[PHP]: Use of undefined constant _SUPERSCRIPT assumed '_SUPERSCRIPT' in file class/wysiwyg/formwysiwygtextarea.php line 467
Notice 
[PHP]: Use of undefined constant _SUPERSCRIPT assumed '_SUPERSCRIPT' in file class/wysiwyg/formwysiwygtextarea.php line 467
Notice 
[PHP]: Use of undefined constant _SUBSCRIPT assumed '_SUBSCRIPT' in file class/wysiwyg/formwysiwygtextarea.php line 463
Notice 
[PHP]: Use of undefined constant _SUBSCRIPT assumed '_SUBSCRIPT' in file class/wysiwyg/formwysiwygtextarea.php line 463
Notice 
[PHP]: Use of undefined constant _CODE assumed '_CODE' in file class/wysiwyg/formwysiwygtextarea.php line 279
Notice 
[PHP]: Use of undefined constant _CODE assumed '_CODE' in file class/wysiwyg/formwysiwygtextarea.php line 279
Notice 
[PHP]: Use of undefined constant _INSERTHORIZONTALRULE assumed '_INSERTHORIZONTALRULE' in file class/wysiwyg/formwysiwygtextarea.php line 367
Notice 
[PHP]: Use of undefined constant _INSERTHORIZONTALRULE assumed '_INSERTHORIZONTALRULE' in file class/wysiwyg/formwysiwygtextarea.php line 367
Notice 
[PHP]: Use of undefined constant _INSERTANCHOR assumed '_INSERTANCHOR' in file class/wysiwyg/formwysiwygtextarea.php line 371
Notice 
[PHP]: Use of undefined constant _INSERTANCHOR assumed '_INSERTANCHOR' in file class/wysiwyg/formwysiwygtextarea.php line 371
Notice 
[PHP]: Use of undefined constant _WY_INSERTDATE assumed '_WY_INSERTDATE' in file class/wysiwyg/formwysiwygtextarea.php line 375
Notice 
[PHP]: Use of undefined constant _WY_INSERTDATE assumed '_WY_INSERTDATE' in file class/wysiwyg/formwysiwygtextarea.php line 375
Notice 
[PHP]: Use of undefined constant _CREATELINK assumed '_CREATELINK' in file class/wysiwyg/formwysiwygtextarea.php line 288
Notice 
[PHP]: Use of undefined constant _CREATELINK assumed '_CREATELINK' in file class/wysiwyg/formwysiwygtextarea.php line 288
Notice 
[PHP]: Use of undefined constant _UNLINK assumed '_UNLINK' in file class/wysiwyg/formwysiwygtextarea.php line 499
Notice 
[PHP]: Use of undefined constant _UNLINK assumed '_UNLINK' in file class/wysiwyg/formwysiwygtextarea.php line 499
Notice 
[PHP]: Use of undefined constant _INSERTIMAGE assumed '_INSERTIMAGE' in file class/wysiwyg/formwysiwygtextarea.php line 379
Notice 
[PHP]: Use of undefined constant _INSERTIMAGE assumed '_INSERTIMAGE' in file class/wysiwyg/formwysiwygtextarea.php line 379
Notice 
[PHP]: Use of undefined constant _INSERTIMAGEM assumed '_INSERTIMAGEM' in file class/wysiwyg/formwysiwygtextarea.php line 355
Notice 
[PHP]: Use of undefined constant _INSERTIMAGEM assumed '_INSERTIMAGEM' in file class/wysiwyg/formwysiwygtextarea.php line 355
Notice 
[PHP]: Use of undefined constant _WY_EDITIMAGE assumed '_WY_EDITIMAGE' in file class/wysiwyg/formwysiwygtextarea.php line 359
Notice 
[PHP]: Use of undefined constant _WY_EDITIMAGE assumed '_WY_EDITIMAGE' in file class/wysiwyg/formwysiwygtextarea.php line 359
Notice 
[PHP]: Use of undefined constant _WY_INSERTTABLE assumed '_WY_INSERTTABLE' in file class/wysiwyg/formwysiwygtextarea.php line 292
Notice 
[PHP]: Use of undefined constant _WY_INSERTTABLE assumed '_WY_INSERTTABLE' in file class/wysiwyg/formwysiwygtextarea.php line 292
Notice 
[PHP]: Use of undefined constant _CREATEQUICKTABLE assumed '_CREATEQUICKTABLE' in file class/wysiwyg/formwysiwygtextarea.php line 293
Notice 
[PHP]: Use of undefined constant _CREATEQUICKTABLE assumed '_CREATEQUICKTABLE' in file class/wysiwyg/formwysiwygtextarea.php line 293
Notice 
[PHP]: Use of undefined constant _WY_TABLEPROPS assumed '_WY_TABLEPROPS' in file class/wysiwyg/formwysiwygtextarea.php line 477
Notice 
[PHP]: Use of undefined constant _WY_TABLEPROPS assumed '_WY_TABLEPROPS' in file class/wysiwyg/formwysiwygtextarea.php line 477
Notice 
[PHP]: Use of undefined constant _WY_TABLETOOLS assumed '_WY_TABLETOOLS' in file class/wysiwyg/formwysiwygtextarea.php line 478
Notice 
[PHP]: Use of undefined constant _WY_TABLETOOLS assumed '_WY_TABLETOOLS' in file class/wysiwyg/formwysiwygtextarea.php line 478
Notice 
[PHP]: Use of undefined constant _WY_INSERTROW assumed '_WY_INSERTROW' in file class/wysiwyg/formwysiwygtextarea.php line 554
Notice 
[PHP]: Use of undefined constant _WY_INSERTROW assumed '_WY_INSERTROW' in file class/wysiwyg/formwysiwygtextarea.php line 554
Notice 
[PHP]: Use of undefined constant _WY_INSERTCOL assumed '_WY_INSERTCOL' in file class/wysiwyg/formwysiwygtextarea.php line 555
Notice 
[PHP]: Use of undefined constant _WY_INSERTCOL assumed '_WY_INSERTCOL' in file class/wysiwyg/formwysiwygtextarea.php line 555
Notice 
[PHP]: Use of undefined constant _WY_INSERTCELL assumed '_WY_INSERTCELL' in file class/wysiwyg/formwysiwygtextarea.php line 556
Notice 
[PHP]: Use of undefined constant _WY_INSERTCELL assumed '_WY_INSERTCELL' in file class/wysiwyg/formwysiwygtextarea.php line 556
Notice 
[PHP]: Use of undefined constant _WY_DELROW assumed '_WY_DELROW' in file class/wysiwyg/formwysiwygtextarea.php line 557
Notice 
[PHP]: Use of undefined constant _WY_DELROW assumed '_WY_DELROW' in file class/wysiwyg/formwysiwygtextarea.php line 557
Notice 
[PHP]: Use of undefined constant _WY_DELCOL assumed '_WY_DELCOL' in file class/wysiwyg/formwysiwygtextarea.php line 558
Notice 
[PHP]: Use of undefined constant _WY_DELCOL assumed '_WY_DELCOL' in file class/wysiwyg/formwysiwygtextarea.php line 558
Notice 
[PHP]: Use of undefined constant _WY_DELCELL assumed '_WY_DELCELL' in file class/wysiwyg/formwysiwygtextarea.php line 559
Notice 
[PHP]: Use of undefined constant _WY_DELCELL assumed '_WY_DELCELL' in file class/wysiwyg/formwysiwygtextarea.php line 559
Notice 
[PHP]: Use of undefined constant _WY_MOREROWSPAN assumed '_WY_MOREROWSPAN' in file class/wysiwyg/formwysiwygtextarea.php line 560
Notice 
[PHP]: Use of undefined constant _WY_MOREROWSPAN assumed '_WY_MOREROWSPAN' in file class/wysiwyg/formwysiwygtextarea.php line 560
Notice 
[PHP]: Use of undefined constant _WY_LESSROWSPAN assumed '_WY_LESSROWSPAN' in file class/wysiwyg/formwysiwygtextarea.php line 561
Notice 
[PHP]: Use of undefined constant _WY_LESSROWSPAN assumed '_WY_LESSROWSPAN' in file class/wysiwyg/formwysiwygtextarea.php line 561
Notice 
[PHP]: Use of undefined constant _WY_MORECOLSPAN assumed '_WY_MORECOLSPAN' in file class/wysiwyg/formwysiwygtextarea.php line 562
Notice 
[PHP]: Use of undefined constant _WY_MORECOLSPAN assumed '_WY_MORECOLSPAN' in file class/wysiwyg/formwysiwygtextarea.php line 562
Notice 
[PHP]: Use of undefined constant _WY_LESSCOLSPAN assumed '_WY_LESSCOLSPAN' in file class/wysiwyg/formwysiwygtextarea.php line 563
Notice 
[PHP]: Use of undefined constant _WY_LESSCOLSPAN assumed '_WY_LESSCOLSPAN' in file class/wysiwyg/formwysiwygtextarea.php line 563
Notice 
[PHP]: Use of undefined constant _WY_CELLPROPS assumed '_WY_CELLPROPS' in file class/wysiwyg/formwysiwygtextarea.php line 262
Notice 
[PHP]: Use of undefined constant _WY_CELLPROPS assumed '_WY_CELLPROPS' in file class/wysiwyg/formwysiwygtextarea.php line 262
Notice 
[PHP]: Use of undefined constant _WY_CELLALIGN assumed '_WY_CELLALIGN' in file class/wysiwyg/formwysiwygtextarea.php line 263
Notice 
[PHP]: Use of undefined constant _WY_CELLALIGN assumed '_WY_CELLALIGN' in file class/wysiwyg/formwysiwygtextarea.php line 263
Notice 
[PHP]: Use of undefined constant _WY_CELLALIGNLEFTTOP assumed '_WY_CELLALIGNLEFTTOP' in file class/wysiwyg/formwysiwygtextarea.php line 582
Notice 
[PHP]: Use of undefined constant _WY_CELLALIGNLEFTTOP assumed '_WY_CELLALIGNLEFTTOP' in file class/wysiwyg/formwysiwygtextarea.php line 582
Notice 
[PHP]: Use of undefined constant _WY_CELLALIGNCENTERTOP assumed '_WY_CELLALIGNCENTERTOP' in file class/wysiwyg/formwysiwygtextarea.php line 583
Notice 
[PHP]: Use of undefined constant _WY_CELLALIGNCENTERTOP assumed '_WY_CELLALIGNCENTERTOP' in file class/wysiwyg/formwysiwygtextarea.php line 583
Notice 
[PHP]: Use of undefined constant _WY_CELLALIGNRIGHTTOP assumed '_WY_CELLALIGNRIGHTTOP' in file class/wysiwyg/formwysiwygtextarea.php line 584
Notice 
[PHP]: Use of undefined constant _WY_CELLALIGNRIGHTTOP assumed '_WY_CELLALIGNRIGHTTOP' in file class/wysiwyg/formwysiwygtextarea.php line 584
Notice 
[PHP]: Use of undefined constant _WY_CELLALIGNLEFTMIDDLE assumed '_WY_CELLALIGNLEFTMIDDLE' in file class/wysiwyg/formwysiwygtextarea.php line 587
Notice 
[PHP]: Use of undefined constant _WY_CELLALIGNLEFTMIDDLE assumed '_WY_CELLALIGNLEFTMIDDLE' in file class/wysiwyg/formwysiwygtextarea.php line 587
Notice 
[PHP]: Use of undefined constant _WY_CELLALIGNCENTERMIDDLE assumed '_WY_CELLALIGNCENTERMIDDLE' in file class/wysiwyg/formwysiwygtextarea.php line 588
Notice 
[PHP]: Use of undefined constant _WY_CELLALIGNCENTERMIDDLE assumed '_WY_CELLALIGNCENTERMIDDLE' in file class/wysiwyg/formwysiwygtextarea.php line 588
Notice 
[PHP]: Use of undefined constant _WY_CELLALIGNRIGHTMIDDLE assumed '_WY_CELLALIGNRIGHTMIDDLE' in file class/wysiwyg/formwysiwygtextarea.php line 589
Notice 
[PHP]: Use of undefined constant _WY_CELLALIGNRIGHTMIDDLE assumed '_WY_CELLALIGNRIGHTMIDDLE' in file class/wysiwyg/formwysiwygtextarea.php line 589
Notice 
[PHP]: Use of undefined constant _WY_CELLALIGNLEFTBOTTOM assumed '_WY_CELLALIGNLEFTBOTTOM' in file class/wysiwyg/formwysiwygtextarea.php line 592
Notice 
[PHP]: Use of undefined constant _WY_CELLALIGNLEFTBOTTOM assumed '_WY_CELLALIGNLEFTBOTTOM' in file class/wysiwyg/formwysiwygtextarea.php line 592
Notice 
[PHP]: Use of undefined constant _WY_CELLALIGNCENTERBOTTOM assumed '_WY_CELLALIGNCENTERBOTTOM' in file class/wysiwyg/formwysiwygtextarea.php line 593
Notice 
[PHP]: Use of undefined constant _WY_CELLALIGNCENTERBOTTOM assumed '_WY_CELLALIGNCENTERBOTTOM' in file class/wysiwyg/formwysiwygtextarea.php line 593
Notice 
[PHP]: Use of undefined constant _WY_CELLALIGNRIGHTBOTTOM assumed '_WY_CELLALIGNRIGHTBOTTOM' in file class/wysiwyg/formwysiwygtextarea.php line 594
Notice 
[PHP]: Use of undefined constant _WY_CELLALIGNRIGHTBOTTOM assumed '_WY_CELLALIGNRIGHTBOTTOM' in file class/wysiwyg/formwysiwygtextarea.php line 594
Notice 
[PHP]: Use of undefined constant _WY_CELLPROPS assumed '_WY_CELLPROPS' in file class/wysiwyg/formwysiwygtextarea.php line 268
Notice 
[PHP]: Use of undefined constant _WY_CELLPROPS assumed '_WY_CELLPROPS' in file class/wysiwyg/formwysiwygtextarea.php line 268
Notice 
[PHP]: Use of undefined constant _WY_CELLALIGN assumed '_WY_CELLALIGN' in file class/wysiwyg/formwysiwygtextarea.php line 269
Notice 
[PHP]: Use of undefined constant _WY_CELLALIGN assumed '_WY_CELLALIGN' in file class/wysiwyg/formwysiwygtextarea.php line 269
Notice 
[PHP]: Use of undefined constant _WY_CELLALIGNLEFTTOP assumed '_WY_CELLALIGNLEFTTOP' in file class/wysiwyg/formwysiwygtextarea.php line 641
Notice 
[PHP]: Use of undefined constant _WY_CELLALIGNLEFTTOP assumed '_WY_CELLALIGNLEFTTOP' in file class/wysiwyg/formwysiwygtextarea.php line 641
Notice 
[PHP]: Use of undefined constant _WY_CELLALIGNCENTERTOP assumed '_WY_CELLALIGNCENTERTOP' in file class/wysiwyg/formwysiwygtextarea.php line 642
Notice 
[PHP]: Use of undefined constant _WY_CELLALIGNCENTERTOP assumed '_WY_CELLALIGNCENTERTOP' in file class/wysiwyg/formwysiwygtextarea.php line 642
Notice 
[PHP]: Use of undefined constant _WY_CELLALIGNRIGHTTOP assumed '_WY_CELLALIGNRIGHTTOP' in file class/wysiwyg/formwysiwygtextarea.php line 643
Notice 
[PHP]: Use of undefined constant _WY_CELLALIGNRIGHTTOP assumed '_WY_CELLALIGNRIGHTTOP' in file class/wysiwyg/formwysiwygtextarea.php line 643
Notice 
[PHP]: Use of undefined constant _WY_CELLALIGNLEFTMIDDLE assumed '_WY_CELLALIGNLEFTMIDDLE' in file class/wysiwyg/formwysiwygtextarea.php line 646
Notice 
[PHP]: Use of undefined constant _WY_CELLALIGNLEFTMIDDLE assumed '_WY_CELLALIGNLEFTMIDDLE' in file class/wysiwyg/formwysiwygtextarea.php line 646
Notice 
[PHP]: Use of undefined constant _WY_CELLALIGNCENTERMIDDLE assumed '_WY_CELLALIGNCENTERMIDDLE' in file class/wysiwyg/formwysiwygtextarea.php line 647
Notice 
[PHP]: Use of undefined constant _WY_CELLALIGNCENTERMIDDLE assumed '_WY_CELLALIGNCENTERMIDDLE' in file class/wysiwyg/formwysiwygtextarea.php line 647
Notice 
[PHP]: Use of undefined constant _WY_CELLALIGNRIGHTMIDDLE assumed '_WY_CELLALIGNRIGHTMIDDLE' in file class/wysiwyg/formwysiwygtextarea.php line 648
Notice 
[PHP]: Use of undefined constant _WY_CELLALIGNRIGHTMIDDLE assumed '_WY_CELLALIGNRIGHTMIDDLE' in file class/wysiwyg/formwysiwygtextarea.php line 648
Notice 
[PHP]: Use of undefined constant _TABLEBORDERS_TOGGLE assumed '_TABLEBORDERS_TOGGLE' in file class/wysiwyg/formwysiwygtextarea.php line 483
Notice 
[PHP]: Use of undefined constant _TABLEBORDERS_TOGGLE assumed '_TABLEBORDERS_TOGGLE' in file class/wysiwyg/formwysiwygtextarea.php line 483
Notice 
[PHP]: Use of undefined constant _FORECOLOR assumed '_FORECOLOR' in file class/wysiwyg/formwysiwygtextarea.php line 274
Notice 
[PHP]: Use of undefined constant _FORECOLOR assumed '_FORECOLOR' in file class/wysiwyg/formwysiwygtextarea.php line 274
Notice 
[PHP]: Use of undefined constant _FLOAT assumed '_FLOAT' in file class/wysiwyg/formwysiwygtextarea.php line 302
Notice 
[PHP]: Use of undefined constant _FLOAT assumed '_FLOAT' in file class/wysiwyg/formwysiwygtextarea.php line 302
Warning 
[PHP]: render(/home/premierl/public_html/home/class/wysiwyg/formwysiwygtextarea.php/class/colorpalette.class.php): failed to open streamNot a directory in file class/wysiwyg/formwysiwygtextarea.php line 512
Warning 
[PHP]: render(): Failed opening '/home/premierl/public_html/home/class/wysiwyg/formwysiwygtextarea.php/class/colorpalette.class.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php'in file class/wysiwyg/formwysiwygtextarea.php line 512


This is what I did. I did a fresh install of news. I deactivated it from the system and deleted it from my server. I then uploaded the original folder of news 1.2.1 and installed in the modules. It works fine and i was able to post a new article by using the default editor.

The next thing I did was follow the docs in kovi. It says to:
Edit modules/news/admin/storyform.inc.php

You must change this code
:
echo 
"</p><p><b>"._AM_INTROTEXT."</b><br /><br />n";
xoopsCodeTarea("hometext"6015);
xoopsSmilies("hometext");

echo 
"<br /></p><p><b>"._AM_EXTEXT."</b><br /><br />n";
xoopsCodeTarea("bodytext"60152);
xoopsSmilies("bodytext");


With this:
echo 
"</p><p><b>"._AM_INTROTEXT."</b><br /><br />n";
//xoopsCodeTarea("hometext", 60, 15);
//xoopsSmilies("hometext");
include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";
include_once 
XOOPS_ROOT_PATH."/class/wysiwyg/formwysiwygtextarea.php";

$wysiwygHomeText= new XoopsFormWysiwygTextArea(''"hometext"$hometext'100%''400px','');
echo 
$wysiwygHomeText->render();


echo 
"<br /></p><p><b>"._AM_EXTEXT."</b><br /><br />n";
//xoopsCodeTarea("bodytext", 60, 15, 2);
//xoopsSmilies("bodytext");
$wysiwygBodyText= new XoopsFormWysiwygTextArea(''"bodytext"$bodytext'100%''400px','');
echo 
$wysiwygBodyText->render();


This is how my modules/news/admin/storyform.inc.php looks like:
<?php

// $Id: storyform.inc.php,v 1.1 2004/01/29 14:45:49 buennagel Exp $

//  ------------------------------------------------------------------------ //

//                XOOPS - PHP Content Management System                      //

//                    Copyright (c) 2000 XOOPS.org                           //

//                       <https://xoops.org/>                             //

//  ------------------------------------------------------------------------ //

//  This program is free software; you can redistribute it and/or modify     //

//  it under the terms of the GNU General Public License as published by     //

//  the Free Software Foundation; either version 2 of the License, or        //

//  (at your option) any later version.                                      //

//                                                                           //

//  You may not change or alter any portion of this comment or credits       //

//  of supporting developers from this source code or any supporting         //

//  source code which is considered copyrighted (c) material of the          //

//  original comment or credit authors.                                      //

//                                                                           //

//  This program is distributed in the hope that it will be useful,          //

//  but WITHOUT ANY WARRANTY; without even the implied warranty of           //

//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            //

//  GNU General Public License for more details.                             //

//                                                                           //

//  You should have received a copy of the GNU General Public License        //

//  along with this program; if not, write to the Free Software              //

//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //

//  ------------------------------------------------------------------------ //



if ( !preg_match("/index.php/"$HTTP_SERVER_VARS['PHP_SELF']) ) {

    exit(
"Access Denied");

}

include 
XOOPS_ROOT_PATH."/include/xoopscodes.php";

if(!isset(
$submit_page)){

    
$submit_page $HTTP_SERVER_VARS['PHP_SELF'];

}

?>

<table><tr><td>

<form action='<?php echo $submit_page;?>' method='post' name='coolsus'>

<?php

echo "<p><b>"._AM_TITLE."</b><br />";

echo 
"<input type='text' name='title' id='title' value='";

if(isset(
$title)){

    echo 
$title;

}

echo 
"' size='70' maxlength='80' />";

echo 
"</p><p>";



echo 
"<b>"._AM_TOPIC."</b>&nbsp;";

$xt = new XoopsTopic($xoopsDB->prefix("topics"));

if(isset(
$topicid)){

    
$xt->makeTopicSelBox(0$topicid"topicid");

}else{

    
$xt->makeTopicSelBox(00"topicid");

}



echo 
"<br /><b>"._AM_TOPICDISPLAY."</b>&nbsp;&nbsp;<input type='radio' name='topicdisplay' value='1'";

if ( !isset(
$topicdisplay) || $topicdisplay==) {

    echo 
" checked='checked'";

}

ECHO 
" />"._AM_YES."&nbsp;<input type='radio' name='topicdisplay' value='0'";

if (empty(
$topicdisplay)) {

    echo 
" checked='checked'";

}

echo 
" />"._AM_NO."&nbsp;&nbsp;&nbsp;";

echo 
"<b>"._AM_TOPICALIGN."</b>&nbsp;<select name='topicalign'>n";

    if ( 
"L" == $topicalign) {

            
$sel " selected='selected'";

    } else {

            
$sel "";

    }

echo 
"<option value='R'>"._AM_RIGHT."</option>n";

echo 
"<option value='L'".$sel.">"._AM_LEFT."</option>n";

echo 
"</select>n";

echo 
"<br />";



if(isset(
$ihome)){

    
puthome($ihome);

}else{

    
puthome();

}



echo 
"</p><p><b>"._AM_INTROTEXT."</b><br /><br />n";
//xoopsCodeTarea("hometext", 60, 15);
//xoopsSmilies("hometext");
include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";
include_once 
XOOPS_ROOT_PATH."/class/wysiwyg/formwysiwygtextarea.php";

$wysiwygHomeText= new XoopsFormWysiwygTextArea(''"hometext"$hometext'100%''400px','');
echo 
$wysiwygHomeText->render();


echo 
"<br /></p><p><b>"._AM_EXTEXT."</b><br /><br />n";
//xoopsCodeTarea("bodytext", 60, 15, 2);
//xoopsSmilies("bodytext");
$wysiwygBodyText= new XoopsFormWysiwygTextArea(''"bodytext"$bodytext'100%''400px','');
echo 
$wysiwygBodyText->render();


echo 
"</p>"._MULTIPAGE;

if ( !empty(
$xoopsConfig['allow_html']) ) {

    echo 
"<p>"._AM_ALLOWEDHTML."<br />";

    
//echo get_allowed_html();

    
echo "</p>";

}

echo 
"<p><input type='checkbox' name='nosmiley' value='1'";

if(isset(
$nosmiley) && $nosmiley==1){

    echo 
" checked='checked'";

}

echo 
" /> "._AM_DISAMILEY."<br />";

echo 
"<input type='checkbox' name='nohtml' value='1'";

if(isset(
$nohtml) && $nohtml==1){

    echo 
" checked='checked'";

}

echo 
" /> "._AM_DISHTML."<br />";



echo 
"<br /><input type='checkbox' name='autodate' value='1'";

if(isset(
$autodate) && $autodate==1){

    echo 
" checked='checked'";

}

echo 
"> ";

$time time();

if(isset(
$isedit) && $isedit==&& $published >$time){

    echo 
_AM_CHANGEDATETIME."<br />";

    
printf(_AM_NOWSETTIME,formatTimestamp($published));

    echo 
"<br />";

    
$published xoops_getUserTimestamp($published);

    
printf(_AM_CURRENTTIME,formatTimestamp($time));

    echo 
"<br />";

    echo 
"<input type='hidden' name='isedit' value='1' />";

}else{

    echo 
_AM_SETDATETIME."<br />";

    
printf(_AM_CURRENTTIME,formatTimestamp($time));

    echo 
"<br />";

}



echo 
"<br /> &nbsp; "._AM_MONTHC." <select name='automonth'>";

if (isset(
$automonth)) {

    
$automonth intval($automonth);

} elseif (isset(
$published)) {

    
$automonth date('m'$published);

} else {

    
$automonth date('m');

}

for (
$xmonth=1$xmonth<13$xmonth++) {

    if (
$xmonth == $automonth) {

        
$sel 'selected="selected"';

    } else {

        
$sel '';

    }

    echo 
"<option value='$xmonth$sel>$xmonth</option>";

}

echo 
"</select>&nbsp;";



echo 
_AM_DAYC." <select name='autoday'>";

if (isset(
$autoday)) {

    
$autoday intval($autoday);

} elseif (isset(
$published)) {

    
$autoday date('d'$published);

} else {

    
$autoday date('d');

}



for (
$xday=1$xday<32$xday++) {

    if (
$xday == $autoday) {

        
$sel 'selected="selected"';

    } else {

        
$sel '';

    }

    echo 
"<option value='$xday$sel>$xday</option>";

}

echo 
"</select>&nbsp;";



echo 
_AM_YEARC." <select name='autoyear'>";

if (isset(
$autoyear)) {

    
$autoyear intval($autoyear);

} elseif (isset(
$published)) {

    
$autoyear date('Y'$published);

} else {

    
$autoyear date('Y');

}



$cyear    date('Y');

for (
$xyear=($autoyear-8); $xyear < ($cyear+2); $xyear++) {

    if (
$xyear == $autoyear) {

        
$sel 'selected="selected"';

    } else {

        
$sel '';

    }

    echo 
"<option value='$xyear$sel>$xyear</option>";

}

echo 
"</select>";



echo 
"&nbsp;"._AM_TIMEC." <select name='autohour'>";

if (isset(
$autohour)) {

    
$autohour intval($autohour);

} elseif (isset(
$published)) {

    
$autohour date('H'$published);

} else {

    
$autohour date('H');

}



for (
$xhour=0$xhour<24$xhour++) {

    if (
$xhour == $autohour) {

        
$sel 'selected="selected"';

    } else {

        
$sel '';

    }

    echo 
"<option value='$xhour$sel>$xhour</option>";

}

echo 
"</select>";



echo 
" : <select name='automin'>";

if (isset(
$automin)) {

    
$automin intval($automin);

} elseif (isset(
$published)) {

    
$automin date('i'$published);

} else {

    
$automin date('i');

}



for (
$xmin=0$xmin<61$xmin++) {

    if (
$xmin == $automin) {

        
$sel 'selected="selected"';

    } else {

        
$sel '';

    }

    
$xxmin $xmin;

    if (
$xxmin 10) {

        
$xxmin "0$xmin";

    }

    echo 
"<option value='$xmin$sel>$xxmin</option>";

}

echo 
"</select></br />";



echo 
"<br /><input type='checkbox' name='autoexpdate' value='1'";

if(isset(
$autoexpdate) && $autoexpdate==1){

    echo 
" checked='checked'";

}

echo 
"> ";

$time time();

if(isset(
$isedit) && $isedit == && $expired 0){

    echo 
_AM_CHANGEEXPDATETIME."<br />";

    
printf(_AM_NOWSETEXPTIME,formatTimestamp($expired));

    echo 
"<br />";

    
$expired xoops_getUserTimestamp($expired);



    
printf(_AM_CURRENTTIME,formatTimestamp($time));

    echo 
"<br />";

    echo 
"<input type='hidden' name='isedit' value='1' />";

}else{

    echo 
_AM_SETEXPDATETIME."<br />";

    
printf(_AM_CURRENTTIME,formatTimestamp($time));

    echo 
"<br />";

}



echo 
"<br /> &nbsp; "._AM_MONTHC." <select name='autoexpmonth'>";

if (isset(
$autoexpmonth)) {

    
$autoexpmonth intval($autoexpmonth);

} elseif (isset(
$expired)) {

    
$autoexpmonth date('m'$expired);

} else {

    
$autoexpmonth date('m');

    
$autoexpmonth $autoexpmonth 1;

}

for (
$xmonth=1$xmonth<13$xmonth++) {

    if (
$xmonth == $autoexpmonth) {

        
$sel 'selected="selected"';

    } else {

        
$sel '';

    }

    echo 
"<option value='$xmonth$sel>$xmonth</option>";

}

echo 
"</select>&nbsp;";



echo 
_AM_DAYC." <select name='autoexpday'>";

if (isset(
$autoexpday)) {

    
$autoexpday intval($autoexpday);

} elseif (isset(
$expired)) {

    
$autoexpday date('d'$expired);

} else {

    
$autoexpday date('d');

}



for (
$xday=1$xday<32$xday++) {

    if (
$xday == $autoexpday) {

        
$sel 'selected="selected"';

    } else {

        
$sel '';

    }

    echo 
"<option value='$xday$sel>$xday</option>";

}echo 
"</select>&nbsp;";



echo 
_AM_YEARC." <select name='autoexpyear'>";

if (isset(
$autoexpyear)) {

    
$autoyear intval($autoexpyear);

} elseif (isset(
$expired)) {

    
$autoexpyear date('Y'$expired);

} else {

    
$autoexpyear date('Y');

}



$cyear date('Y');

for (
$xyear=($autoexpyear-8); $xyear < ($cyear+2); $xyear++) {

    if (
$xyear == $autoexpyear) {

        
$sel 'selected="selected"';

    } else {

        
$sel '';

    }

    echo 
"<option value='$xyear$sel>$xyear</option>";

}

echo 
"</select>";



echo 
"&nbsp;"._AM_TIMEC." <select name='autoexphour'>";

if (isset(
$autoexphour)) {

    
$autoexphour intval($autoexphour);

} elseif (isset(
$expired)) {

    
$autoexphour date('H'$expired);

} else {

    
$autoexphour date('H');

}



for (
$xhour=0$xhour<24$xhour++) {

    if (
$xhour == $autoexphour) {

        
$sel 'selected="selected"';

    } else {

        
$sel '';

    }

    echo 
"<option value='$xhour$sel>$xhour</option>";

}

echo 
"</select>";



echo 
" : <select name='autoexpmin'>";

if (isset(
$autoexpmin)) {

    
$autoexpmin intval($autoexpmin);

} elseif (isset(
$expired)) {

    
$autoexpmin date('i'$expired);

} else {

    
$autoexpmin date('i');

}



for (
$xmin=0$xmin<61$xmin++) {

    if (
$xmin == $autoexpmin) {

        
$sel 'selected="selected"';

    } else {

        
$sel '';

    }

    
$xxmin $xmin;

    if (
$xxmin 10) {

        
$xxmin "0$xmin";

    }

    echo 
"<option value='$xmin$sel>$xxmin</option>";

}

echo 
"</select><br /><br />";



if(isset(
$published) && $published == && isset($type) && $type == "user"){

    echo 
"<br /><input type='checkbox' name='approve' value='1'";

    if(isset(
$approve) && $approve==1){

        echo 
" checked='checked'";

    }

    echo 
" />&nbsp;<b>"._AM_APPROVE."</b><br />";

} else {

    if(isset(
$isedit) && $isedit==1){

        echo 
"<br /><input type='checkbox' name='movetotop' value='1'";

        if(isset(
$movetotop) && $movetotop==1){

            echo 
" checked='checked'";

        }

        echo 
" />&nbsp;<b>"._AM_MOVETOTOP."</b><br />";

        echo 
"<input type='hidden' name='isedit' value='1' />";

    }

    echo 
"<input type='hidden' name='approve' value='1' />";

}

echo 
"<select name='op'>n";

echo 
"<option value='preview' selected='selected'>"._AM_PREVIEW."</option>n";

echo 
"<option value='save'>"._AM_SAVE."</option>n";

if (!empty(
$storyid)) {

    echo 
"<option value='delete'>"._AM_DELETE."</option>n";

}

echo 
"</select>";

if(isset(
$storyid)){

    echo 
"<input type='hidden' name='storyid' value='".$storyid."' />n";

}

echo 
"<input type='hidden' name='type' value='".$type."' />n";

echo 
"<input type='hidden' name='fct' value='articles' />n";

echo 
"<input type='submit' value='"._AM_GO."' />n";

echo 
"</p></form>";

echo 
"</td></tr></table>";



unset(
$submit_page);



function 
puthome($ihome="") {

        echo 
"<br /><b>"._AM_PUBINHOME."</b>&nbsp;&nbsp;";

        if ((
$ihome == 0) OR ($ihome == "")) {

        
$sel1 "checked='checked'";

        
$sel2 "";

        }

        if (
$ihome == 1) {

        
$sel1 "";

        
$sel2 "checked='checked'";

        }

        echo 
"<input type='radio' name='ihome' value='0' $sel1 />"._AM_YES."&nbsp;";

        echo 
"<input type='radio' name='ihome' value='1' $sel2 />"._AM_NO."<br />";

}



?>


The next thing is to change some lines in news/include/storyform.inc.php
News 1.2.1 Module Integration Example

1º Open file news
/include/storyform.inc.php
2º After line 32 
(include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";) add:
include_once 
XOOPS_ROOT_PATH "/class/wysiwyg/formwysiwygtextarea.php";

3º Remove or comment line 61 ($sform->addElement(new XoopsFormDhtmlTextArea(_NW_THESCOOP'hometext'$hometext1560'hometext_hidden'), true);) and add:
$sform->addElement(new XoopsFormWysiwygTextArea_NW_THESCOOP'hometext'$hometext'100%''400px',''), true); 

4º Remove or comment line 66 ($sform->addElement(new XoopsFormDhtmlTextArea(_AM_EXTEXT'bodytext'$bodytext1560'bodytext_hidden'), false);) and add:
$sform->addElement(new XoopsFormWysiwygTextArea_AM_EXTEXT'bodytext'$bodytext'100%''400px',''), true);


These are the changes that I made:
<?php
// $Id: storyform.inc.php,v 1.9 2004/05/22 16:05:44 mithyt2 Exp $
//  ------------------------------------------------------------------------ //
//                XOOPS - PHP Content Management System                      //
//                    Copyright (c) 2000 XOOPS.org                           //
//                       <https://xoops.org/>                             //
//  ------------------------------------------------------------------------ //
//  This program is free software; you can redistribute it and/or modify     //
//  it under the terms of the GNU General Public License as published by     //
//  the Free Software Foundation; either version 2 of the License, or        //
//  (at your option) any later version.                                      //
//                                                                           //
//  You may not change or alter any portion of this comment or credits       //
//  of supporting developers from this source code or any supporting         //
//  source code which is considered copyrighted (c) material of the          //
//  original comment or credit authors.                                      //
//                                                                           //
//  This program is distributed in the hope that it will be useful,          //
//  but WITHOUT ANY WARRANTY; without even the implied warranty of           //
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            //
//  GNU General Public License for more details.                             //
//                                                                           //
//  You should have received a copy of the GNU General Public License        //
//  along with this program; if not, write to the Free Software              //
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
//  ------------------------------------------------------------------------ //
if (file_exists(XOOPS_ROOT_PATH.'/language/'.$xoopsConfig['language'].'/calendar.php')) {
    include_once 
XOOPS_ROOT_PATH.'/language/'.$xoopsConfig['language'].'/calendar.php';
} else {
    include_once 
XOOPS_ROOT_PATH.'/language/english/calendar.php';
}
include_once 
XOOPS_ROOT_PATH."/class/xoopsformloader.php";
include_once 
XOOPS_ROOT_PATH "/class/wysiwyg/formwysiwygtextarea.php";
$sform = new XoopsThemeForm(_NW_SUBMITNEWS"storyform"XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/submit.php');
$sform->setExtra('enctype="multipart/form-data"');
$sform->addElement(new XoopsFormText(_NW_TITLE'title'5080$title), true);

//Todo: Change to only display topics, which a user has submit privileges for
if (!isset($xt)) {
       
$xt = new XoopsTopic($xoopsDB->prefix("topics"));
}
ob_start();
$xt->makeTopicSelBox(0$topicid);
$sform->addElement(new XoopsFormLabel(_NW_TOPICob_get_contents()));
ob_end_clean();

//If admin - show admin form
//TODO: Change to "If submit privilege"
if ($approveprivilege) {
    
//Show topic image?
    
$sform->addElement(new XoopsFormRadioYN(_AM_TOPICDISPLAY'topicdisplay'$topicdisplay));
    
//Select image position
    
$posselect = new XoopsFormSelect(_AM_TOPICALIGN'topicalign'$topicalign);
    
$posselect->addOption('R'_AM_RIGHT);
    
$posselect->addOption('L'_AM_LEFT);
    
$sform->addElement($posselect);
    
//Publish in home?
    //TODO: Check that pubinhome is 0 = no and 1 = yes (currently vice versa)
    
$sform->addElement(new XoopsFormRadioYN(_AM_PUBINHOME'ihome'$ihome_NO_YES));
}
$sform->addElement(new XoopsFormWysiwygTextArea_NW_THESCOOP'hometext'$hometext'100%''400px',''), true); 

//Extra info
//If admin -> if submit privilege
if ($approveprivilege) {
$sform->addElement(new XoopsFormWysiwygTextArea_AM_EXTEXT'bodytext'$bodytext'100%''400px',''), true);
}

// Manage upload(s)
$allowupload false;
switch (
$xoopsModuleConfig['uploadgroups'])
{
    case 
1//Submitters and Approvers
        
$allowupload true;
        break;
    case 
2//Approvers only
        
$allowupload $approveprivilege true false;
        break;
    case 
3//Upload Disabled
        
$allowupload false;
        break;
}

if(
$allowupload)
{
    if(
$op=='edit') {
        
$sfiles = new sFiles();
        
$filesarr=Array();
        
$filesarr=$sfiles->getAllbyStory($storyid);
        if(
count($filesarr)>0) {
            
$upl_tray = new XoopsFormElementTray(_AM_UPLOAD_ATTACHFILE,'<br />');
            
$upl_checkbox=new XoopsFormCheckBox('''delupload[]');

            foreach (
$filesarr as $onefile)
            {
                
$link=sprintf("<a href='%s/%s' target='_blank'>%s</a>n",XOOPS_UPLOAD_URL,$onefile->getDownloadname('S'),$onefile->getFileRealName('S'));
                
$upl_checkbox->addOption($onefile->getFileid(),$link);
            }
            
$upl_tray->addElement($upl_checkbox,false);
            
$dellabel=new XoopsFormLabel(_AM_DELETE_SELFILES,'');
            
$upl_tray->addElement($dellabel,false);
            
$sform->addElement($upl_tray);
        }
    }
    
$sform->addElement(new XoopsFormFile(_AM_SELFILE'attachedfile'$xoopsModuleConfig['maxuploadsize']), false);
}


$option_tray = new XoopsFormElementTray(_OPTIONS,'<br />');
//Set date of publish/expiration
if ($approveprivilege) {
    
$approve_checkbox = new XoopsFormCheckBox('''approve'$approve);
    
$approve_checkbox->addOption(1_AM_APPROVE);
    
$option_tray->addElement($approve_checkbox);

    
$check=$published>:0;
    
$published_checkbox = new XoopsFormCheckBox('''autodate',$check);
    
$published_checkbox->addOption(1_AM_SETDATETIME);
    
$option_tray->addElement($published_checkbox);

    
$option_tray->addElement(new XoopsFormDateTime(_AM_SETDATETIME'publish_date'15$published));

    
$check=$expired>:0;
    
$expired_checkbox = new XoopsFormCheckBox('''autoexpdate',$check);
    
$expired_checkbox->addOption(1_AM_SETEXPDATETIME);
    
$option_tray->addElement($expired_checkbox);

    
$option_tray->addElement(new XoopsFormDateTime(_AM_SETEXPDATETIME'expiry_date'15$expired));
}

if (
is_object($xoopsUser)) {
    if (isset(
$xoopsConfig['anonpost']) && $xoopsConfig['anonpost'] == 1) {
        
$noname_checkbox = new XoopsFormCheckBox('''noname'$noname);
        
$noname_checkbox->addOption(1_POSTANON);
        
$option_tray->addElement($noname_checkbox);
    }
    
$notify_checkbox = new XoopsFormCheckBox('''notifypub'$notifypub);
    
$notify_checkbox->addOption(1_NW_NOTIFYPUBLISH);
    
$option_tray->addElement($notify_checkbox);
    if (
$xoopsUser->isAdmin($xoopsModule->getVar('mid'))) {
        
$nohtml_checkbox = new XoopsFormCheckBox('''nohtml'$nohtml);
        
$nohtml_checkbox->addOption(1_DISABLEHTML);
        
$option_tray->addElement($nohtml_checkbox);
    }
}
$smiley_checkbox = new XoopsFormCheckBox('''nosmiley'$nosmiley);
$smiley_checkbox->addOption(1_DISABLESMILEY);
$option_tray->addElement($smiley_checkbox);


$sform->addElement($option_tray);

//TODO: Approve checkbox + "Move to top" if editing + Edit indicator

//Submit buttons
$button_tray = new XoopsFormElementTray('' ,'');
$preview_btn = new XoopsFormButton('''preview'_PREVIEW'submit');
$preview_btn->setExtra('accesskey="p"');
$button_tray->addElement($preview_btn);
$submit_btn = new XoopsFormButton('''post'_NW_POST'submit');
$submit_btn->setExtra('accesskey="s"');
$button_tray->addElement($submit_btn);
$sform->addElement($button_tray);

//Hidden variables
if(isset($storyid)){
    
$storyid_hidden = new XoopsFormHidden('storyid'$storyid);
    
$sform->addElement($storyid_hidden);
}
if (!isset(
$type)) {
    if (
$approveprivilege) {
        
$type "admin";
    }
    else {
        
$type "user";
    }
}
$type_hidden = new XoopsFormHidden('type'$type);
$sform->addElement($type_hidden);
$sform->display();
?>



This is my class/wysiwyg/formwysiwygtextarea.php if needed.

4
Widget
Re: upgraded news to 1.2.1 now koivi editor fatal error appears
  • 2004/12/27 9:11

  • Widget

  • Just popping in

  • Posts: 46

  • Since: 2004/12/24


Sorry folks but i solved my problem. I just looked at the error
Fatal errorCannot instantiate non-existent class: wysiwygcolorpalette in /home/premierl/public_html/home/class/wysiwyg/formwysiwygtextarea.php on line 513
and tried replacing the formwysiwygtextarea.php that i had on my server with the orignal file and it worked! I can now see the editor in news! Thanks for everyone who took the time to look at this problem. Without you guys I'm sure many people will be pulling out their hairs!

5
svaha
news 1.2.1 and koivi / htmlarea/fckeditort
  • 2004/12/27 23:34

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


I managed to use Koivi and htmlarea in news 1.2.1 but having trouble with fckeditor.

Fatal error because of Quote:
$value = $myts->undoHtmlSpecialChars($value);

and when I comment this out, I get a fatal error because fckeditor class cannot be redefined.

Looking for clues?

Login

Who's Online

58 user(s) are online (40 user(s) are browsing Support Forums)


Members: 0


Guests: 58


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits