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 error: Cannot 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 stream: Not 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 stream: Not 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 ""
._AM_INTROTEXT."
n";
xoopsCodeTarea("hometext", 60, 15);
xoopsSmilies("hometext");
echo "
"
._AM_EXTEXT."
n";
xoopsCodeTarea("bodytext", 60, 15, 2);
xoopsSmilies("bodytext");
With this:
echo ""
._AM_INTROTEXT."
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 "
"
._AM_EXTEXT."
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:
// $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 //
// //
// ------------------------------------------------------------------------ //
// 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'];
}
?>
";
unset($submit_page);
function puthome($ihome="") {
echo "
"._AM_PUBINHOME." ";
if (($ihome == 0) OR ($ihome == "")) {
$sel1 = "checked='checked'";
$sel2 = "";
}
if ($ihome == 1) {
$sel1 = "";
$sel2 = "checked='checked'";
}
echo "$sel1 />"._AM_YES." ";
echo "$sel2 />"._AM_NO."
";
}
?>
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', $hometext, 15, 60, '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', $bodytext, 15, 60, 'bodytext_hidden'), false);) and add:
$sform->addElement(new XoopsFormWysiwygTextArea( _AM_EXTEXT, 'bodytext', $bodytext, '100%', '400px',''), true);
These are the changes that I made:
// $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 //
// //
// ------------------------------------------------------------------------ //
// 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', 50, 80, $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_TOPIC, ob_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,'
');
$upl_checkbox=new XoopsFormCheckBox('', 'delupload[]');
foreach ($filesarr as $onefile)
{
$link=sprintf("%sn",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,'
');
//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 ? 1 :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 ? 1 :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.