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:

Modified and enhanced FCKeditor2.0 Final for phpWCMS

Post by pico »

Hi

have build a new Pakage of FCK -

* no configuration needed
* Editing in a new seperate scalable Window
* new ImageManager - browse the Images wich are uploaded with the phpWCMS Filemanager - with relative and absolute URL's
* enhanced Table Functions
* CSS-Editor

more Information see here

download
# unzip it
# rename your old Path ../include/inc_ext/FCKeditor2 to ../include/inc_ext/FCKeditor2old
# upload the new one to your Server to ../include/inc_ext/FCKeditor2

have fun
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

Post by cyrano »

Hi pico,

thanx first for digging this out for all.

i uploaded your last version, can brose through all uploaded images, but don't see the image when loaded in FCK editor - i still see the red x instead of an image - what went wrong here? any idea?

when i open page in frontend mode i see the image well rendered.
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

Hi

do you mean this new Version or the one before ?
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

Post by cyrano »

hi pico,

used your version before and now your posted version a few minutes ago - in 1.2.5 dev release.
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

mhh?

do you use ImageMagick or GD on your Server?

Have it only tested with GD

EDITED

take a look into the confic.inc.php in ../include/inc_ext/FCKeditor2/editor/plugins/ImageManager/
Line 52 ff.

Code: Select all

/* 
 Possible values: 'GD', 'IM', or 'NetPBM'

 The image manipulation library to use, either GD or ImageMagick or NetPBM.
 If you have safe mode ON, or don't have the binaries to other packages, 
 your choice is 'GD' only. Other packages require Safe Mode to be off.
*/
define('IMAGE_CLASS', 'GD');
maybe you have to change this :(
Last edited by pico on Tue 9. Aug 2005, 18:40, edited 1 time in total.
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

Post by cyrano »

using imagemagick.

tried using absURL -no images are shown, with relURL images are rendered well.
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

see Edited Post above - was to slow :wink:
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

Post by cyrano »

no no problem - you work on nother place :-)

so, changed but makes no effect.

can insert, browse images, but do not see them rendered in backend - works in frontend.

perhaps lacks of sessions...?
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

@Cyrano
do you have MSN-Messenger ? or send me a PM with your Login (Backend and FTP) if you want - so that I can see maybe waths going wrong
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 »

Localhost Win XP/IIS setup.

Hi pico. I am looking forward to using this so I downloaded the files, but I have a couple of issues.

1) I'm using PHPWCMS 1.2.3. Does this require 1.2.5?

2) I have been using the FCKeditor that ships with 1.2.3 ( I believe it's the RC) and it works o.k. In your version however, I find any CSS in frontend.css for the 'BODY' tag of the site gets shown in the FCKeditor text window.

E.g. I have CSS to show a left sidebar column running from the top to the bottom of the screen using a repeating GIF image:

Code: Select all

 
body { background: #ffffff url(../../picture/leftcolumn.gif) repeat-y left top } 


Unfortunately, this now also appears in the FCKeditor edit window. It's the same in IE and Firefox. Is this a FCKeditor 2 final 'feature' (to display body tag CSS) or a bug?.

3) I get an error opening the image manager:

Code: Select all

Fatal error: main(): Failed opening required '/config/phpwcms/conf.inc.php' 
(include_path='.;c:\php\includes') 
in c:\inetpub\wwwroot\websitedemo\include\inc_ext\FCKeditor2\editor\plugins
\ImageManager\config.inc.php on line 28
Although I appreciate this may just be a Windows path or PHPWCMS version thing if it works for everyone else.
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

@peekay

1. think that it work also with Version down to 1.2.1

2. I have Linked the CSS to the frontend.css - you can change this in ../include/inc_ext/FCKeditor2/fckconfig.js

Code: Select all

// FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css' ;
FCKConfig.EditorAreaCSS = FCKConfig.BasePath +'../../../../phpwcms_template/inc_css/frontend.css' ;
3. I don't know why this happens ?

Code: Select all

require_once ($_SERVER['DOCUMENT_ROOT'].'/config/phpwcms/conf.inc.php');
maybe your DOCUMENT_ROOT Variable is not set - try to change the Path to your phpWCMS - conf.inc.php in ../include/inc_ext/FCKeditor2/editor/plugins/ImageManager/config.inc.php

hope this solve your Problems
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 »

Thx pico. That did the trick!

I returned the CSS to it's default and that got rid of my repeating GIF column. I had to add absolute paths for the include statement and the filestorage location. The script doesn't seem to pick up the phpwcms VARs on my system (doc root is set properly). Could be just a Windows thing.

If anyone else has similar probs, this works for me, as long as I select 'absURL-OK' when adding the image. My additions in red.
*/
$IMConfig['base_dir'] = 'c:/inetpub/wwwroot/websitedemo/phpwcms_filestorage';

/*
The URL to the above path, the web browser needs to be able to see it.
It can be protected via .htaccess on apache or directory permissions on IIS,
check you web server documentation for futher information on directory protection
If this directory needs to be publicly accessiable, remove scripting capabilities
for this directory (i.e. disable PHP, Perl, CGI). We only want to store assets
in this directory and its subdirectories.
*/
//require_once ($_SERVER['DOCUMENT_ROOT'].'/config/phpwcms/conf.inc.php');
require_once ($_SERVER['DOCUMENT_ROOT'].'c:/inetpub/wwwroot/websitedemo/config/phpwcms/conf.inc.php');
// pk $IMConfig['base_url'] = '/'.$phpwcms['file_path'];
$IMConfig['base_url'] = '/websitedemo/'.$phpwcms['file_path'];

// pk $IMConfig['base_dir'] = $_SERVER['DOCUMENT_ROOT'].$IMConfig['base_url'];

$IMConfig['server_name'] = $_SERVER['SERVER_NAME'];
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post by frold »

@pico regard this new version:

1. does it support public and privat images?
2. if you upload images via the FCKeditor can they then be used in phpwcms's own file system?
http://www.studmed.dk Portal for doctors and medical students in Denmark
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

@frold

1. no - see my Website where I wrote !!! Permissions are not supported !!! also NO Public and Private - Imagemanger shows all Files in phpwcms_filestorage Folder

2. if you upload Images or Files with the FCK-FileBrowser - they are not avaible for phpWCMS Contententparts
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 »

new ImageManager - browse the Images wich are uploaded with the phpWCMS Filemanager - with relative and absolute URL's
what is new then? :?:
http://www.studmed.dk Portal for doctors and medical students in Denmark
Post Reply