1
mboyden
FCKeditor 2.6.0 for XOOPSeditor 1.21 and XOOPS 2.0.x
  • 2008/5/21 21:13

  • mboyden

  • Moderator

  • Posts: 484

  • Since: 2005/3/9 1


I've updated and integrated the latest FCKeditor 2.6.0 into the XOOPSeditor 1.21 release. For more information, visit my FCKeditor for XOOPS page.

Please do give any feedback. I hope it's helpful.

I had the opportunity to implement this for a site that had users that needed some assistance in making it easier to get content to look right, but in a highly stylized manner.

This version brings:
- Image and file uploads work
- Paste from Word works better and auto on IE
- Relative URLs
- Fixes relative DIV issue introduced in FCKeditor 2.4.3 (in 1.21 release)
- Configurable file/folder creation permissions setting
- the XOOPSeditor 1.21 features
- FCKeditor 2.6.0 bug fixes/updates
Pessimists see difficulty in opportunity; Optimists see opportunity in difficulty. --W Churchill

XOOPS: Latest | Debug | Hosting and Web Development

2
Burning
Re: FCKeditor 2.6.0 for XOOPSeditor 1.21 and XOOPS 2.0.x
  • 2008/6/3 0:02

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi Mr Boyden !

Thanks for your long and hard work around FCKeditor : finally we've got an editor with image manager that works fine !

I've read your notice with attention and comments that you put in files... but I'm not able to get 1 folder per module.


What I do with News 1.56 :


1. Modify /news/include/functions.php

Replace :
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;


By
case 'fck':
            if(!
$x22) {
                if ( 
is_readable(XOOPS_ROOT_PATH '/class/xoopseditor/fckeditor/formfckeditor.php'))    {
                    include_once(
XOOPS_ROOT_PATH '/class/xoopseditor/fckeditor/formfckeditor.php');
                    
$editor = new XoopsFormFckeditor(array('caption'=> $caption'name'=>$name'value'=>$value'width'=>'100%''height'=>'400px')); 
                }
            } else {
                
$editor = new XoopsFormEditor($caption'fckeditor'$editor_configs);
            }
            break;


> so, FCKeditor forms appears and works fine


2. Now I would get a specific folder for News.

So I copy of these three files in /news folder :
- fckeditor.config.js
- fckeditor.connector.php
- fckeditor.upload.php

And I verify that I have this line in fckeditor.upload.php :
Quote:

define("FCKUPLOAD_DISABLED", 0);

(I've also try with value 1, but with same result)

Finally I delete news' cache file (in www/cache/)


... but finally when I try to upload an image, an error message appear and no image can be put in manager
> error message


I will be very happy if you could help me to find a solution !!

Thanks in advance.
(sorry for poor english )


Configuration :
XOOPS 2.0.18.1
PHP 5.2.6
MySql 5.0.27
Apache/2.2.8

Elements installed :
Protector 3.16
News 1.56
Framework 1.22
Xoopseditor 1.21 (with your Fckeditor version)
Still learning CSS and... english

3
kris_fr
Re: FCKeditor 2.6.0 for XOOPSeditor 1.21 and XOOPS 2.0.x
  • 2008/6/3 20:39

  • kris_fr

  • Theme Designer

  • Posts: 1009

  • Since: 2005/12/31


Thank's Burning for this feedback

4
btesec
Re: FCKeditor 2.6.0 for XOOPSeditor 1.21 and XOOPS 2.0.x
  • 2008/6/3 21:41

  • btesec

  • Friend of XOOPS

  • Posts: 623

  • Since: 2007/2/20


How do I implement this mod in XOOPS 2.3.3 alpha.

Thanks.

btesec

5
Burning
Re: FCKeditor 2.6.0 for XOOPSeditor 1.21 and XOOPS 2.0.x
  • 2008/6/3 23:01

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi,

I haven't try but it should work on XOOPS 2.3, no ?

If you copy FCKeditor 2.6.0-MB01 (available at the top of page :here) in class/xoopseditor/ (before, you just have to delete existing /FCKeditor folder) ?

.. I'm not sure that it will work, but MBoyden doesn't say it will not

@+
Still learning CSS and... english

6
mboyden
Re: FCKeditor 2.6.0 for XOOPSeditor 1.21 and XOOPS 2.0.x
  • 2008/6/12 5:27

  • mboyden

  • Moderator

  • Posts: 484

  • Since: 2005/3/9 1


OK, after way too much effort on this due to my overlooking the simple aspect of things, I figured out what I missed. I am posting the fix here and will update the editor download tomorrow when I can get to it.

In the ./fckeditor/editor/filemanager/connectors/php/connector.php file, replace the following lines:
require('./config.php') ;
require(
'./util.php') ;
require(
'./io.php') ;
require(
'./basexml.php') ;
require(
'./commands.php') ;
require(
'./phpcompat.php') ;
with:
require('config.php') ;
require(
'util.php') ;
require(
'io.php') ;
require(
'basexml.php') ;
require(
'commands.php') ;
require(
'phpcompat.php') ;

BTW, I've tested this with SmartSection and CBB (not v4), and it works for me, so if not for you, do let me know....

Otherwise it seems to be working fine with module-specific directories. My bad. I made that change (back) just before I released it and kept missing it in my diff views.

As to whether or not it will work in 2.3, I expect it would but haven't had the chance to test all that; I need to, but my time has become even more limited of late. I don't see why it wouldn't.
Pessimists see difficulty in opportunity; Optimists see opportunity in difficulty. --W Churchill

XOOPS: Latest | Debug | Hosting and Web Development

7
mboyden
FCKeditor 2.6.3 - Image/File Upload, Customizations
  • 2009/5/8 15:12

  • mboyden

  • Moderator

  • Posts: 484

  • Since: 2005/3/9 1


FYI, I've modified the FCKeditor 2.6.3 (as released in XOOPS 2.3.3) to include all the mods, fixes and updates as in my original post for FCKeditor 2.6.0.

See the information my Mods to FCKeditor for XOOPS (includes link to download it). Hope it's useful to you and those who like FCKeditor and XOOPS. Of course it wouldn't have been possible without the work of others in the past on the XOOPSeditor framework.

My next work on this is to have different settings and privileges based upon XOOPS user groups which I think will take FCKeditor even further in XOOPS.
Pessimists see difficulty in opportunity; Optimists see opportunity in difficulty. --W Churchill

XOOPS: Latest | Debug | Hosting and Web Development

8
Burning
Re: FCKeditor 2.6.3 - Image/File Upload, Customizations
  • 2009/5/15 11:33

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

Quote:
My next work on this is to have different settings and privileges based upon XOOPS user groups

... wow ! you could do that ?!!!

Many thanks

Still learning CSS and... english

9
mboyden
Re: FCKeditor 2.6.3 - Image/File Upload, Customizations
  • 2009/5/15 12:31

  • mboyden

  • Moderator

  • Posts: 484

  • Since: 2005/3/9 1


Yes, the editor already is designed to allow web designers to do such, but it would require some customizations. I blew it off the last round as the project I was working on didn't need it, but it looks promising. For instance, you could set one upload area for users and another for admins, disable uploads, enable for others, etc.
Pessimists see difficulty in opportunity; Optimists see opportunity in difficulty. --W Churchill

XOOPS: Latest | Debug | Hosting and Web Development

Login

Who's Online

239 user(s) are online (133 user(s) are browsing Support Forums)


Members: 0


Guests: 239


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