31
Widget
How do you restore database after upgrading?
  • 2005/1/9 10:35

  • Widget

  • Just popping in

  • Posts: 46

  • Since: 2004/12/24


Hi folks,

I just recently upgraded from 2.0.7 to 2.0.9. It was a successful upgrade but I have to reinstall all my modules and add new information. I then logged into my phpMyAdin and found out that my databases for those modules contain my old information but I don't know how to restore it. How do I go about restoring my database?

Thank you for taking the time to read this.



32
Widget
Re: Upgrading from 2.0.7 to 2.0.9
  • 2004/12/29 15:16

  • Widget

  • Just popping in

  • Posts: 46

  • Since: 2004/12/24


Well I have upgraded! My version is now 2.0.9. Well that is what it said when I first logged into my website. It is strange that it doesn't show that I'm running a 2.0.9 xoop website but a 2.0 is that normal? How can I tell my current version?

I'm not very happy with the upgrade though. Somehow I did something wrong during the installation and erased my database. When I finally completed the install and logged in everyting was erased. All the new information that I have included on my website had been deleted. It's funny that I managed to save my modules though!

I just have a few questions. Does anyone know of a link or tutorial that teaches how to upgrade? What files to save and how to go about doing it? Then restoring it properly once again? This would be a time saver if I could find one. Instead of inputting files manually again incase I need to upgrade once more.

Good thing that the website that I upgraded was just a test website.

Another question, I installed XOOPS using Fantastico. My first installation was 2.0.3 then upgraded to 2.0.7 using fantastico as well. I noticed that when I log into fantastico and check my XOOPS link the installation still indicates that im 2.0.7. Will this affect my site in anyway?

I know this is a lot of questions. I hope someone has the patient to read it through!



33
Widget
Re: Upgrading from 2.0.7 to 2.0.9
  • 2004/12/29 13:25

  • Widget

  • Just popping in

  • Posts: 46

  • Since: 2004/12/24


Thanks for your reply once again! :) Will upgrade and hope everything comes out smoothly!



34
Widget
Re: Real Estate Module
  • 2004/12/29 12:35

  • Widget

  • Just popping in

  • Posts: 46

  • Since: 2004/12/24


Excellent find! This is what I have been looking for! Why isn't this one in module repository? Thanks for the tip nevertheless. :)



35
Widget
Re: Upgrading from 2.0.7 to 2.0.9
  • 2004/12/29 12:16

  • Widget

  • Just popping in

  • Posts: 46

  • Since: 2004/12/24


Thank you for your quick response. I realize that it could be very tedious to do it this way but I just want to know if I do overwrite my main XOOPS folder in my server will it just overwrite the existing folders and leave the extra folders likes modules etc intact? I ask this because I upgraded from 2.0.3 and was surprised that the module folders that I have installed were gone. I managed to fix the problem by uploading the modules in the server.



36
Widget
Upgrading from 2.0.7 to 2.0.9
  • 2004/12/29 11:04

  • Widget

  • Just popping in

  • Posts: 46

  • Since: 2004/12/24


I am currently running 2.0.7 and would like to upgrade to 2.0.9. I have downloaded the patch but haven't installed yet. Before installing, I want to ask if it is possible to copy and drag all file from the 2.0.9 patch folder to the existing folders in my server? For example in the 2.0.9 patch there is a folder called class can i just drag that folder and over write the existing class folder in my server. Then just simply follow this method until i have over written each and every folder and file? Will that upgrade my version to 2.0.9?

I also read thei FAQhttps://xoops.org/modules/smartfaq/faq.php?faqid=83 and found it some what confusing so I wanted to verify here.

Thanks in advance for taking the time to read this.



37
Widget
Re: Grrrr ... theme logo problem
  • 2004/12/29 10:42

  • Widget

  • Just popping in

  • Posts: 46

  • Since: 2004/12/24


I just want to say that I really like how your website looked! Great work! :) Happy Holidays!



38
Widget
Re: System --> Templates - Viewing Only or can you edit?
  • 2004/12/29 2:52

  • Widget

  • Just popping in

  • Posts: 46

  • Since: 2004/12/24


I'm also new to XOOPS but correct me if I am wrong here. Cloning allows you to modify or customize your template without having to mess up the default template. Anyways, it helps you put the code into you favorite web editor then make the changes using a browser. I think this feature is pretty good since you can see the changes right away. It will be difficult to see the changes if your not online...not unlesss you have you PC setup to see php code. IE install mysql, apache and so on.



39
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!



40
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.




TopTop
« 1 2 3 (4) 5 »



Login

Who's Online

175 user(s) are online (98 user(s) are browsing Support Forums)


Members: 0


Guests: 175


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