71
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




72
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



73
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



74
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



75
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



76
Wonderfish1
Re: v2.3.2 upgrade to 2.4.4

I seem to have a different filename - and it won't allow me to edit the file or change the permissions.

It seems to be called:
xoops_editorlist_http%3A%2F%2Fwww_wonderfish_com_au.php

It won't let me edit it:
[R] STOR xoops_editorlist_http%3A%2F%2Fwww_wonderfish_com_au.php
[R] 553 Can't open that file: Permission denied
[R] Transfer Failed!

Or change the permissions:
[R] SITE CHMOD 777 xoops_editorlist_http%3A%2F%2Fwww_wonderfish_com_au.php
[R] 550 Could not change perms on xoops_editorlist_http%3A%2F%2Fwww_wonderfish_com_au.php: Operation not permitted


I am perplexed.


Thanks,
Tim



77
Wonderfish1
Re: v2.3.2 upgrade to 2.4.4

Having looked at it, I would really like to set TinyMCE as the default editor. If anyone knows how, I would appreciate it.


Thanks,
Tim



78
Wonderfish1
Re: v2.3.2 upgrade to 2.4.4

Hi all,

It seems to have worked. I have used the instructions as indicated by ghia, and it is showing the correct version.

Whew. I am always terrified by this process.

Qestion tho - my news module is not showing the new editors, which I would really love to use. Anyone know how to solve this?

It is also showing that the trust_path and xoops_data dirs are inside the document root no matter where I move them. Do they need to be totally outside public_html?

TIA,
Tim







79
Wonderfish1
Re: v2.3.2 upgrade to 2.4.4

I had this problem also. From the Release Notes....

Upgrading from XOOPS 2.3.3b and 2.4.x (easy way)

Upgrading from XOOPS 2.0.* above 2.0.14 and 2.2.* (using the full package)

Upgrading from any XOOPS ranging from 2.0.7 to 2.0.13.2 (using the full package):

Am I missing how to upgrade from 2.3.2?

I used the 2.3.3 instructions and it failed catastrophically. I have managed to get the site rolled back to a backup from this morning but I would like to upgrade and would like to know how to do so safely. Given that the version I am trying to upgrade is apparently missing from the upgrade paths I would be keen to take advice on the correct way to do it.


Thanks in advance,
Tim




80
Wonderfish1
Re: Admin menu missing

I had a suspicion that posting the solution might help someone


Tim




TopTop
« 1 ... 5 6 7 (8) 9 10 11 ... 14 »



Login

Who's Online

189 user(s) are online (97 user(s) are browsing Support Forums)


Members: 0


Guests: 189


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