1
sadistiko
News 1.63 module 2.4.0 Final problem
  • 2009/10/28 14:52

  • sadistiko

  • Friend of XOOPS

  • Posts: 477

  • Since: 2004/12/13


I still use News module because it's simple and enough powerfull for my needs.
I found that on new clean installation of XOOPS 2.4.0 Final and News 1.62 I can't use nothing but DHTML and Compact editor. Anyone else have this isue?


EDIT: I tried News 1.53 AdSence version and AMS 2.52 Final. Also same problem. I can't use editors. Is there any editor in XOOPS pakage now or they are removed in final version?

EDIT2: Now I see there is only tinymce editor in final version. But even if I try to use it I don't see editor part. Here's picture:

Resized Image

2
Anonymous
Re: News 1.63 module 2.4.0 Final problem
  • 2009/10/28 15:48

  • Anonymous

  • Posts: 0

  • Since: 0


Edit modules/news/include/functions.php and replace:

Quote:
*/
function news_isX23()
{
$x23 = false;
$xv = str_replace('XOOPS ','',XOOPS_VERSION);
if(substr($xv,2,1) == '3') {
$x23 = true;
}
return $x23;
}


with:

Quote:
*/
function news_isX23()
{
$x23 = false;
$xv = str_replace('XOOPS ','',XOOPS_VERSION);
if(substr($xv,2,1) >= '3') {
$x23 = true;
}
return $x23;
}


Also you need to modify tinyeditor url in same file to be:

le="color: #000000"><?php case 'tinyeditor': case 'tinymce': if ( is_readable(XOOPS_ROOT_PATH.'/class/xoopseditor/tinymce/formtinymce.php')) { require_once XOOPS_ROOT_PATH.'/class/xoopseditor/tinymce/formtinymce.php'; $editor = new XoopsFormTinymce(array('caption'=> $caption, 'name'=>$name, 'value'=>$value, 'width'=>'100%', 'height'=>'400px')); } break;




3
sadistiko
Re: News 1.63 module 2.4.0 Final problem
  • 2009/10/28 17:23

  • sadistiko

  • Friend of XOOPS

  • Posts: 477

  • Since: 2004/12/13


Thanks Mowaffaq!

Thats it!
Why nobody put this pached version of news online?
I can do it if nobody else don't want