1
HazardEffect
Cloned Content module + new FCK editor

Very impressed with XOOPS and the Content module, but I found the version of FCK editor lacking in some areas. I also wanted multiple Content modules, that could share the same upload folder.

So I have replaced FCK editor with the version from http://mcpuk.net/fbxp/?page=home
(the File Browser Extension Project)
This version has much better file upload handling, it allows for deleting files from the server and has some decent graphics. I've added a .zip icon as well as making changes to allow multiple editors to share the same file upload folders.

The Content Module is now 'cloned'. Rather than changing the code to allow multiple modules to exist together, I've just renamed many variables and constants with a suffix _01. Just change _01 everywhere to _02, _03 etc. to make multiple 'clones'. There are about 170 suffixes, 1 folder and 4 files. Also change the table name in sql.mysql
I would recommend a text editor that can do search and replace across multiple files, like Dreamweaver. Then it's all very straightforward.

I also changed system_blocks.php, so the content menus are not included in the main menu.

I've put my hacked Content module (2 'clones') and sundry other files in a .zip:
Content hacks
All XOOPS changes are marked with //rw
If anyone want to see what I've used this for, heres our site (still under development)
Ponterwyd Community Web Site

This all works with 2.0.5, don't know about later versions.
Hope this is all useful to someone else!

2
HazardEffect
Re: Cloned Content module + new FCK editor

Should have mentioned that you also need to set $fckphp_config['urlprefix'] in admin\fckeditor\editor\filemanager\browser\default\connectors\php\config.php for each Content module.
I had to do this to get it to work with domain aliases

3
dargosch
Re: Cloned Content module + new FCK editor
  • 2006/6/2 18:55

  • dargosch

  • Friend of XOOPS

  • Posts: 118

  • Since: 2004/12/21


Hi,

I really like this idea, but I cannot get the upload area to work. Where is it supposed to be?????



/Fredrik
My Gentoo + PVR-350 + IVTV + MythTV blog is on
http://gentoomythtv.blogspot.com/

4
HazardEffect
Re: Cloned Content module + new FCK editor

All the uploads should go into fck_common/users/admin/File, or fck_common/users/admin/Image. Have you got write permissions set for these folders? (i.e. site chmod 777 users)

5
dargosch
Re: Cloned Content module + new FCK editor
  • 2006/6/13 18:18

  • dargosch

  • Friend of XOOPS

  • Posts: 118

  • Since: 2004/12/21


Hi,

I am having problems with this. I have a site at http://www.mysite.com/xoops

the config file of the filemanager contains:
$fckphp_config['UserFileBase']="/modules/content_09/admin"

$fckphp_config['urlprefix']="http://www.mysite.com";

$fckphp_config['UserFilesPath']="/xoops/fck_common";



~/public_html/xoopsls fck_common/ -al
total 12
drwxrwxrwx   3 kunweb users   58 Jun  2 20
:31 .
drwxr-xr-x  16 kunweb users 4096 Jun  2 21:42 ..
-
rwxrwxrwx   1 kunweb users 2475 Jun  2 20:31 fckstyles.css
-rwxrwxrwx   1 kunweb users 1584 Jun  2 20:31 fckstyles.xml
drwxrwxrwx   4 kunweb users   34 Jun 13 20
:22 users
~/public_html/xoopsls fck_common/ -alR
fck_common
/:
total 12
drwxrwxrwx   3 kunweb users   58 Jun  2 20
:31 .
drwxr-xr-x  16 kunweb users 4096 Jun  2 21:42 ..
-
rwxrwxrwx   1 kunweb users 2475 Jun  2 20:31 fckstyles.css
-rwxrwxrwx   1 kunweb users 1584 Jun  2 20:31 fckstyles.xml
drwxrwxrwx   4 kunweb users   34 Jun 13 20
:22 users

fck_common
/users:
total 0
drwxrwxrwx  4 kunweb users 34 Jun 13 20
:22 .
drwxrwxrwx  3 kunweb users 58 Jun  2 20:31 ..
drwxrwxrwx  6 kunweb users 53 Jun 13 20:23 admin
drwxrwxrwx  6 kunweb users 53 Jun  2 20
:31 admin_bak

fck_common
/users/admin:
total 4
drwxrwxrwx   6 kunweb users   53 Jun 13 20
:23 .
drwxrwxrwx   4 kunweb users   34 Jun 13 20:22 ..
drwxrwxrwx   2 kunweb users    6 Jun 13 20:22 File
drwxrwxrwx   2 kunweb users    6 Jun 13 20
:22 Flash
drwxrwxrwx  13 kunweb users 4096 Jun 13 20
:23 Image
drwxrwxrwx   2 kunweb users    6 Jun 13 20
:23 Media

fck_common
/users/admin/File:
total 0
drwxrwxrwx  2 kunweb users  6 Jun 13 20
:22 .
drwxrwxrwx  6 kunweb users 53 Jun 13 20:23 ..

fck_common/users/admin/Flash:
total 0
drwxrwxrwx  2 kunweb users  6 Jun 13 20
:22 .
drwxrwxrwx  6 kunweb users 53 Jun 13 20:23 ..

fck_common/users/admin/Image:
total 32
drwxrwxrwx  13 kunweb users 4096 Jun 13 20
:23 .
drwxrwxrwx   6 kunweb users   53 Jun 13 20:23 ..
-
rwxrwxrwx   1 kunweb users 1487 Jun 13 20:23 .thumb_klubbar_title.gif
-rwxrwxrwx   1 kunweb users 1385 Jun 13 20:23 .thumb_sverigekarta_kk.jpg
drwxrwxrwx   4 kunweb users   45 Jun 13 20
:23 Arvidsjaur
drwxrwxrwx   5 kunweb users   60 Jun 13 20
:23 Degerfors
drwxrwxrwx   4 kunweb users   45 Jun 13 20
:23 Fagersta
drwxrwxrwx   4 kunweb users   45 Jun 13 20
:23 Hudiksvall
drwxrwxrwx   4 kunweb users   45 Jun 13 20
:23 Karlskoga
drwxrwxrwx   4 kunweb users   45 Jun 13 20
:23 Karlstad
drwxrwxrwx   4 kunweb users   45 Jun 13 20
:23 Tamashii
drwxrwxrwx   4 kunweb users   45 Jun 13 20
:23 Tranemo
drwxrwxrwx   4 kunweb users   45 Jun 13 20
:23 Umea
drwxrwxrwx   4 kunweb users   45 Jun 13 20
:23 Vaxholm
-rwxrwxrwx   1 kunweb users 4467 Jun 13 20:22 klubbar_title.gif
-rwxrwxrwx   1 kunweb users 9754 Jun 13 20:22 sverigekarta_kk.jpg
drwxrwxrwx   2 kunweb users    6 Jun 13 20
:23 temp


.. and so on.

What am I doing wrong?

/Fredrik
My Gentoo + PVR-350 + IVTV + MythTV blog is on
http://gentoomythtv.blogspot.com/

6
dargosch
Re: Cloned Content module + new FCK editor
  • 2006/6/14 7:52

  • dargosch

  • Friend of XOOPS

  • Posts: 118

  • Since: 2004/12/21


Hi again,

My users also have been complaining on a the FCK editod not showing up and there being a 'FCKLang undefined' message in IE.

According to this doc:
http://cmsinfo.org/scripts/fckeditor/_documentation/WhatsNew.html

this is a bug that should have gone away withthe 2.0b version of fckeditor. Is it possible to switch version to the 2.3 release?

The cloned version of contents works ok, but the editor is troublesome.

/Fredrik
My Gentoo + PVR-350 + IVTV + MythTV blog is on
http://gentoomythtv.blogspot.com/

7
dargosch
Re: Cloned Content module + new FCK editor
  • 2006/6/14 11:57

  • dargosch

  • Friend of XOOPS

  • Posts: 118

  • Since: 2004/12/21


Hi (again),

More on this issue. I used to have Firefox 1.0.6 installed on my linux box, and in this browser, teh editor worked. However, I find that the 1.5 version of the browser does not work with this version of the editor. The newest version of the FCKeditor works ok, though..

http://www.fckeditor.net/demo/default.html

Koivi works ok.

/Fredrik
My Gentoo + PVR-350 + IVTV + MythTV blog is on
http://gentoomythtv.blogspot.com/

8
HazardEffect
Re: Cloned Content module + new FCK editor

The problems you are getting with the file upload (I assume this is not working for you) are because the path to the upload folders is not correct (probably). I'm guessing here, but I would think $fckphp_config['basedir'] is not correct, you could try setting it to $_SERVER['DOCUMENT_ROOT'] or taking the leading backslash off $fckphp_config['UserFilesPath'] (../../../fck_common). These are some of the problems I had configuring the editor to get it working with domain aliases, but it might now be broken for normal domain names!
In fckeditor/editor/filemanager/browser/default/connectors/php/Commands/GetFoldersAndFiles.php, I added a couple of attributes to send debugging info back to default/frmresourceslist.html, and some additions in GetFoldersAndFilesCallback() and AddFile() to output this info to the browser. This may help you debug the problem.


Regarding FCKeditor, I have problems using it with Firefox (it gives up after a while) but IE6 (on XP pro) is fine, so I have no plans to upgrade the 2.3 release.

Regarding 'FCKLang undefined': Have you got english installed as a language?

9
borpin
Re: Cloned Content module + new FCK editor
  • 2006/6/14 19:25

  • borpin

  • Just popping in

  • Posts: 13

  • Since: 2006/2/4 2


Quote:

HazardEffect wrote:

The Content Module is now 'cloned'. Rather than changing the code to allow multiple modules to exist together, I've just renamed many variables and constants with a suffix _01. Just change _01 everywhere to _02, _03 etc. to make multiple 'clones'. There are about 170 suffixes, 1 folder and 4 files. Also change the table name in sql.mysql
I would recommend a text editor that can do search and replace across multiple files, like Dreamweaver. Then it's all very straightforward.

Why do you need cloned modules?

Quote:

I also changed system_blocks.php, so the content menus are not included in the main menu.

If you use the site menu option this is configurable in the module.
[/quote]

I am intending to include the latest FCKEditor with the next release of Content module. I have currently incorporated V2.2.

10
borpin
Re: Cloned Content module + new FCK editor
  • 2006/6/14 19:31

  • borpin

  • Just popping in

  • Posts: 13

  • Since: 2006/2/4 2


Quote:

borpin wrote:
Quote:

HazardEffect wrote:

The Content Module is now 'cloned'. Rather than changing the code to allow multiple modules to exist together, I've just renamed many variables and constants with a suffix _01. Just change _01 everywhere to _02, _03 etc. to make multiple 'clones'. There are about 170 suffixes, 1 folder and 4 files. Also change the table name in sql.mysql
I would recommend a text editor that can do search and replace across multiple files, like Dreamweaver. Then it's all very straightforward.

Why do you need cloned modules?


OK I just had a look at your site (very nice!). I think what you need is multiple menus rather than a complete duplication of the module. The disadvantage of the cloned module is that you cannot easily move a page between them (plus all the extra overhead of 2 modules).

Am I right?

Login

Who's Online

261 user(s) are online (95 user(s) are browsing Support Forums)


Members: 0


Guests: 261


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