Modified and enhanced FCKeditor2.0 Final for phpWCMS

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

* Editing in a new seperate scalable Window
* new ImageManager - browse the Images wich are uploaded with the phpWCMS Filemanager
* enhanced Table Functions
* CSS-Editor
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post by frold »

never mind....
http://www.studmed.dk Portal for doctors and medical students in Denmark
Peekay
Posts: 286
Joined: Sun 25. Jul 2004, 23:24
Location: UK

Post by Peekay »

* CSS-Editor
I confess I don't quite understand the point of this feature. It appears to be a point-n-click CSS code 'builder', but I don't see how the code could be used in FCKeditor. Is it just a handy utility, or am I missing something?
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

@peekay

for inserting the Code into FCK you have to Click first the 'Preview' and then the 'Insert' Button
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
rushclub
Posts: 915
Joined: Tue 17. Feb 2004, 18:52

Post by rushclub »

hi there,

have installed the new fckeditor as described but i still get the old screen. no css-button and no new imagebutton. over the old image button i dont get the images. what am i doing wrong? phpwcms 1.2.4 and firefox under osx.

is my path wrong:

Code: Select all

FCKConfig.CustomConfigurationsPath = 'www.domain.de/pathtocms/include/inc_ext/FCKeditor2/fckconfig.js' ;
cheers
rush
3 (!) Jahre warten reichen mir. Ich bin erst mal weg.
rushclub
Posts: 915
Joined: Tue 17. Feb 2004, 18:52

Post by rushclub »

rushclub wrote:hi there,

have installed the new fckeditor as described but i still get the old screen. no css-button and no new imagebutton. over the old image button i dont get the images. what am i doing wrong? phpwcms 1.2.4 and firefox under osx.

is my path wrong:

Code: Select all

FCKConfig.CustomConfigurationsPath = 'www.domain.de/pathtocms/include/inc_ext/FCKeditor2/fckconfig.js' ;
cheers
rush
after clearing the cache i have the new interface, but the new imagefeature did not work. only a blank screen opens after a click ;(

cheers
rush
3 (!) Jahre warten reichen mir. Ich bin erst mal weg.
Apollo2000
Posts: 56
Joined: Thu 7. Jul 2005, 16:05

Post by Apollo2000 »

cyrano wrote: can insert, browse images, but do not see them rendered in backend - works in frontend.
Did you find a solution for this? I got the same problem and don´t know how to move on. :(
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

@apollo2000

sorry - no - didn't here anything from cyrano - and can't reproduce this Problem.

wich Browser on what OS are you using?

maybe send a PM with login-Data for Backend and FTP so I can take a look to it.
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
Apollo2000
Posts: 56
Joined: Thu 7. Jul 2005, 16:05

Post by Apollo2000 »

wich Browser on what OS are you using?
Win2k Prof. SP4 / IExplorer 6.0 / Firefox 1.03
phpWcms 1.25-DEV with your modified FCKEditor 2.0

And I discovered another problem that did not show with the FCKEditor that was integreted in phpwcms 1.23-DEV: When I use contenpart pictures or text with picture the thumbnail can´t be created.
In preview I get this message:
Warning: getimagesize(/home/www/myaccount/html/phpwcms_filestorage/image_placeholder.png): failed to open stream: No such file or directory in /home/www/myaccount/html/include/inc_lib/imagick.convert.inc.php on line 71
imagick.convert.inc.php line 70-75:
// check if it is useful only to copy the image
$check_image = getimagesize($imagick["image_dir"].$imagick["image_name"]);

$channel_check = (isset($check_image['channels']) && $check_image['channels'] == 3) ? true : false;

if($channel_check && $check_image && ($check_image[2] == 1 || $check_image[2] == 2 || $check_image[2] == 3)) {
Zym0tiC
Posts: 13
Joined: Tue 2. Aug 2005, 16:33

Post by Zym0tiC »

I have a problem in fckeditor in the imagepreview dialog where I don't see any images. after selecting a image, without knowing which one exactly :? , and inserting it into the editor itself it will appear.


This is my phpinfo() output related tot GD:

Code: Select all

GD Support  enabled  
GD Version  bundled (2.0.12 compatible)  
FreeType Support  enabled  
FreeType Linkage  with freetype  
GIF Read Support  enabled  
JPG Support  enabled  
PNG Support  enabled  
WBMP Support  enabled  
XBM Support  enabled  
The occurs on Windows + IE/FF and Linux FF
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

Hi

wired Problems -
one can see the Images in the Browser but not in the Editor -
and the next can see the Images in the Editor but not in the Browser
and anotherone gets only a empty Box for the Browser

I'm confused - for me and a lot of others it works
and I can't reproduce this Problems in any kind :?:

are there any Scripterrors visible ?
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
Peekay
Posts: 286
Joined: Sun 25. Jul 2004, 23:24
Location: UK

Post by Peekay »

It worked fine for me on my Win XP/IIs system with dev 1.2.3, but only if I hard-code the paths (see earlier post).

@apollo2000
You seem to have a unix path in your error
Warning: getimagesize(/home/www/myaccount/html/phpwcms_filestorage/
is that right for Windows 2000?. It's looking for PHPWCMS in the root, not a sub directory, so I wondered if it might be a path thing. Also, do you use ImageMagick instead of GD? I just wondered what the 'imagik' mentioned in the error is.
Zym0tiC
Posts: 13
Joined: Tue 2. Aug 2005, 16:33

Post by Zym0tiC »

Yeah I have it working!!! :lol:

Here the steps that I followed. I'm sure that not all of them are very usefull but because I don't know wat exactly did it I post it all.

I used Firefox to do this

Code: Select all

1) Open /var/www/html/include/inc_ext/FCKeditor2/editor/plugins/ImageManager/config.inc.php

2) Change the following: 
$IMConfig['safe_mode'] = true;
$IMConfig['thumbnail_dir'] = false;
(This is because I have safe mode enabled on my server

3) Open the imagemanager dialog, richtclick on the place where an image preview should appear. Choose view image. Now you you have to see a small picture of that image.

4) Close the window with that image, exit imagemanager. 

5) Try to upload a new image to your filestorage as usual.

6) Open the imagemanager and pray  :twisted: 
I hope I helped someone with this.
Apollo2000
Posts: 56
Joined: Thu 7. Jul 2005, 16:05

Post by Apollo2000 »

hmm...I made a rightclick on the image names in imagemanager with Firefox and got another error message which complains about a missing directory in phpwcms_filestorage

So I created that directory phpwcms_filestorage/.thumbs, chmod 777, and the problem is solved :D
Now I can see the preview pics in image manager and also in content part "pictures" or "text with picture". :)
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

Hi

I found that on some Servers the .thumbs Folder is not visible by the Server configuration.

So try to change the default Name of the '.thumbs' Directory to something like 'thumbs' and create a Folder with this Name in phpwcms_filestorage and set the Permissions to 777.

You'll find this in ../include/inc_ext/FCKeditor2/editor/plugins/ImageManager/config.inc.php

also the prefix for the thumb-Filenames

hope it solves some Problems.
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
Post Reply