11
ghia
Re: v2.3.2 upgrade to 2.4.4
  • 2010/5/25 14:28

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


The file is created by the Apache user ('nobody'?). It seems your hoster haven't given rights to the FTP user to these files.
Can you download it by FTP? Then try to edit it local, delete it on the server and upload it.

12
Wonderfish1
Re: v2.3.2 upgrade to 2.4.4

I needed to have my hosting company change the owner of the file.

I have now edited those values to "1" and they don't appear in the dropdown for the "News" module. Is there something else I need to do?

TIA,
Tim

13
oswaldo
Re: v2.3.2 upgrade to 2.4.4
  • 2010/5/26 1:36

  • oswaldo

  • Quite a regular

  • Posts: 215

  • Since: 2008/8/22


It´s seem that you have a IIS server, and don´t let you to use the CHMOD command, your hosting have to give the permits for full access to xoopsdata folders.

I try to do updates in IIS and it was difficult, because from the version 2.32b only find support for apache.

Solution for me to switch to apache server or have a lower xoops version in IIS.

P.D. If anyone knows how to do it will be great to know

14
Wonderfish1
Re: v2.3.2 upgrade to 2.4.4

The server is Apache. I couldn't edit because, as Ghia pointed out, it was owned by "Nobody" It is edited now. To summarise my outstanding issues:

1: I have edited xoops_editorlist_http%3A%2F%2Fwww_wonderfish_com_au.php so it contains this:

1306342176
return array (
'dhtmlext' =>
array (
'title' => 'Extended DHTML Form',
'nohtml' => 1,
),
'dhtmltextarea' =>
array (
'title' => 'DHTML Form with xCode',
'nohtml' => 1,
),
'textarea' =>
array (
'title' => 'Plain Text',
'nohtml' => 1,
),
'ckeditor' =>
array (
'title' => 'CK Editor',
'nohtml' => 1,
),
'fckeditor' =>
array (
'title' => 'WYSIWYG FCKeditor',
'nohtml' => NULL,
),
'FCKeditor' =>
array (
'title' => 'WYSIWYG FCKeditor',
'nohtml' => NULL,
),
'koivi' =>
array (
'title' => 'Koivi WYSIWYG Editor',
'nohtml' => NULL,
),
'tinymce' =>
array (
'title' => 'TinyMCE',
'nohtml' => 1,
),
);


TinyMCE and CKEditor still do not appear in the Editor drop-down for the News module. I have updated the module and cleared the cache.

I would really like to use TinyMCE in News.





I still have diagnostics telling me when I go to the Admin screen that there is something wrong with where I have the xoops_data and trust_path directories. It looks like:

WARNING: Folder /home/public_html/trustpath_dir1/dir2 is inside DocumentRoot!
For security considerations it is highly suggested to move it out of DocumentRoot.

WARNING: Folder /home/public_html/Dir1/xoops_data is inside DocumentRoot!
For security considerations it is highly suggested to move it out of DocumentRoot.

Where do I need to put them to be considered out of "DocumentRoot"?



Other than these issues, it seems pretty good....


TIA for any help,
Tim

15
Mamba
Re: v2.3.2 upgrade to 2.4.4
  • 2010/5/26 8:28

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


1) Try to change it to:

'tinymce' =>
array (
'title' => 'TinyMCE',
'nohtml' => 0,
),

2) Read the Installation Instructions. There is a section explaining the Root Directory.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

16
ghia
Re: v2.3.2 upgrade to 2.4.4
  • 2010/5/26 9:20

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


'nohtml' => 0,
No it should be 1

Quote:
Where do I need to put them to be considered out of "DocumentRoot"?
Probably aside public_html or in one of the directories that already exist in home.

17
Wonderfish1
Re: v2.3.2 upgrade to 2.4.4

Thanks guys,

The Trustpath and xoops_dir problems are now solved.

However, changes to xoops_editorlist_http%3A%2F%2Fwww_wonderfish_com_au.php don't seem to make any difference

It is now:

),
'tinymce' =>
array (
'title' => 'TinyMCE',
'nohtml' => 0,
),


I also tried the value of NULL and that made no difference either.

At least I am down to one problem


Thanks,
Tim

18
Wonderfish1
Re: v2.3.2 upgrade to 2.4.4

I don't mean to ask for help and then claim to know what I am doing, but it looks like the editors for News are set in"

modules/news/include/functions.php

in this section:
function &news_getWysiwygForm($caption$name$value ""$width '100%'$height '400px'$supplemental='')
{
    
$editor false;
    
$x22=false;
    
$xv=str_replace('XOOPS ','',XOOPS_VERSION);
    if(
substr($xv,2,1)=='2') {
        
$x22=true;
    }
    
$editor_configs=array();
    
$editor_configs["name"] =$name;
    
$editor_configs["value"] = $value;
    
$editor_configs["rows"] = 35;
    
$editor_configs["cols"] = 60;
    
$editor_configs["width"] = "100%";
    
$editor_configs["height"] = "400px";


    switch(
strtolower(getmoduleoption('form_options'))){
    case 
"spaw":
        if(!
$x22) {
            if (
is_readable(XOOPS_ROOT_PATH "/class/spaw/formspaw.php"))    {
                include_once(
XOOPS_ROOT_PATH "/class/spaw/formspaw.php");
                
$editor = new XoopsFormSpaw($caption$name$value);
            }
        } else {
            
$editor = new XoopsFormEditor($caption"spaw"$editor_configs);
        }
        break;

    case 
"fck":
        if(!
$x22) {
            if ( 
is_readable(XOOPS_ROOT_PATH "/class/fckeditor/formfckeditor.php"))    {
                include_once(
XOOPS_ROOT_PATH "/class/fckeditor/formfckeditor.php");
                
$editor = new XoopsFormFckeditor($caption$name$value);
            }
        } else {
            
$editor = new XoopsFormEditor($caption"fckeditor"$editor_configs);
        }
        break;

    case 
"htmlarea":
        if(!
$x22) {
            if ( 
is_readable(XOOPS_ROOT_PATH "/class/htmlarea/formhtmlarea.php"))    {
                include_once(
XOOPS_ROOT_PATH "/class/htmlarea/formhtmlarea.php");
                
$editor = new XoopsFormHtmlarea($caption$name$value);
            }
        } else {
            
$editor = new XoopsFormEditor($caption"htmlarea"$editor_configs);
        }
        break;

    case 
"dhtml":
        if(!
$x22) {
            
$editor = new XoopsFormDhtmlTextArea($caption$name$value1050$supplemental);
        } else {
            
$editor = new XoopsFormEditor($caption"dhtmltextarea"$editor_configs);
        }
        break;

    case 
"textarea":
        
$editor = new XoopsFormTextArea($caption$name$value);
        break;

    case 
"koivi":
        if(!
$x22) {
            if ( 
is_readable(XOOPS_ROOT_PATH "/class/wysiwyg/formwysiwygtextarea.php"))    {
                include_once(
XOOPS_ROOT_PATH "/class/wysiwyg/formwysiwygtextarea.php");
                
$editor = new XoopsFormWysiwygTextArea($caption$name$value'100%''400px''');
            }
        } else {
            
$editor = new XoopsFormEditor($caption"koivi"$editor_configs);
        }
        break;
    }
    return 
$editor;
}


This seems to cover the editors I can get in the dropdown in the News module. Please note that CKEditor and TinyMCE are missing.

Am I totally wrong here? I don't know how to hack the other editors in here even if I am right.

If I am wrong I will shut the hell up and wait for help


Thanks,
Tim

19
ghia
Re: v2.3.2 upgrade to 2.4.4
  • 2010/5/26 11:53

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Yes, that code is actually calling the editor that was set up in the preferences and retrieved by getmoduleoption('form_options') .

But the point is you have to be able to select it in the preferences.
Are you sure, that was the only xoops_editorlist file?
Try also once an update of the News module in admin.

20
Wonderfish1
Re: v2.3.2 upgrade to 2.4.4

Hi ghia,

I have updated the News module and emptied the cache each time I updated the editorlist file.

The files in caches/xoops_cache/ are:

xoops_adminmenu_xoopsguidefault_http%3A%2F%2Fwww_wonderfish_com_au.php

xoops_captcha_captcha_fonts_http%3A%2F%2Fwww_wonderfish_com_au.php

xoops_editorlist_http%3A%2F%2Fwww_wonderfish_com_au.php

xoops_system_modules_active_http%3A%2F%2Fwww_wonderfish_com_au.php

Is there somewhere else I should be looking for an editorlist file?


Thanks,
Tim


Login

Who's Online

135 user(s) are online (103 user(s) are browsing Support Forums)


Members: 0


Guests: 135


more...

Donat-O-Meter

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

Latest GitHub Commits