1
riomx
How to get HTML editor in News 1.3.1 ?
  • 2005/7/5 19:37

  • riomx

  • Just popping in

  • Posts: 52

  • Since: 2005/3/24


Guys:

Maybe I'm making this harder than it seems, but when I try to post a story in the News module, I only get an option to upload a file.

Is this the way News works ?

I thought it would be possible to type text and publish as well.

I've already chosen my preferred editor in the form option criteria of the general settings for the module and no success.

Anyway, I would greatly appreciate if someone could tell me if there is a way to use an HTML editor to publish news.

Thanks,

- Joe

2
hervet
Re: How to get HTML editor in News 1.3.1 ?
  • 2005/7/7 10:42

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


You should re upload the whole module to your site

3
riomx
Re: How to get HTML editor in News 1.3.1 ?
  • 2005/7/7 23:00

  • riomx

  • Just popping in

  • Posts: 52

  • Since: 2005/3/24


Quote:

hervet wrote:
You should re upload the whole module to your site


I just did that, but nothing changed.

I AM using the Xoopseditor package for WYSIWYG editors, which resides in /XOOPSROOT/class/xoopseditor

In there is DHTML, fckeditor, htmlarea, koivi, spaw, etc

Is there a way I can make the news module recognize this, perhaps changing a line in /admin/index.php ?

Thanks,

- Joe

4
riomx
Re: How to get HTML editor in News 1.3.1 ?
  • 2005/7/7 23:08

  • riomx

  • Just popping in

  • Posts: 52

  • Since: 2005/3/24


Here is a screenshot of what I get

Resized Image

5
tl
Re: How to get HTML editor in News 1.3.1 ?
  • 2005/7/8 2:08

  • tl

  • Friend of XOOPS

  • Posts: 999

  • Since: 2002/6/23


Quote:
Is there a way I can make the news module recognize this, perhaps changing a line in /admin/index.php ?


You will have to customize the function call in the file
include/functions.php

Editors are listed under
function &news_getWysiwygForm

but you will have to match up the editor with the correct locations.
Xoops Tips - Tip It and Use It

6
riomx
Re: How to get HTML editor in News 1.3.1 ?
  • 2005/7/8 21:57

  • riomx

  • Just popping in

  • Posts: 52

  • Since: 2005/3/24


Hmmm I just did the fixes and it seems that the news module doesn't get along very well with the Xoopseditor package:

Warning [PHP]: Invalid argument supplied for foreach() in file class/xoopseditor/koivi/formwysiwygtextarea.php line 65
Notice 
[PHP]: Undefined variablecaption in file class/xoopseditor/koivi/formwysiwygtextarea.php line 73
Notice 
[PHP]: Undefined variablename in file class/xoopseditor/koivi/formwysiwygtextarea.php line 74
Warning 
[PHP]: Invalid argument supplied for foreach() in file class/xoopseditor/koivi/formwysiwygtextarea.php line 65
Notice 
[PHP]: Undefined variablecaption in file class/xoopseditor/koivi/formwysiwygtextarea.php line 73
Notice 
[PHP]: Undefined variablename in file class/xoopseditor/koivi/formwysiwygtextarea.php line 74
Notice 
[PHP]: Undefined propertyvalue in file class/xoopseditor/koivi/formwysiwygtextarea.php line 94
Notice 
[PHP]: Undefined propertyvalue in file class/xoopseditor/koivi/formwysiwygtextarea.php line 94


The form appears now, but those errors appear at the bottom of the add story page.

Does anyone know of alternatives for the news module ?

- Joe

Login

Who's Online

179 user(s) are online (102 user(s) are browsing Support Forums)


Members: 0


Guests: 179


more...

Donat-O-Meter

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

Latest GitHub Commits