Forums / Install & configuration / File upload in FCKEditor

File upload in FCKEditor

Author Message

Vidar Østevik

Monday 03 April 2006 4:01:11 am

Hi!
I have installed FCKEditor (http://ez.no/community/contribs/applications/fckeditor_transparent_integration), and it works almost perfectly. The problem is I am not able to upload pictures to my web server via the "upload" page when I want to insert a picture.
Do I have to configure some append files or something. I have configured the files mentioned in the INSTALL file, so the path are correct, and I have created the UserFiles folders (UserFile/Image, UserFile/File and so on), as described in this forum message
(http://ez.no/community/forum/setup_design/some_questions_about_fckeditor/re_some_questions_about_fckeditor__7)

Still no result. When I try to push "Upload to server" (Not shure if thats the correct phrase in english, my version is in Norwegian), nothing happens.

When I want to insert pictures, I get a text field in the lower part of the page, asking for a username? I have tried with different usernames (eZ username, server username) without any result. And I am not able to see any pictures (althoug I have manually uploaded pictures in the "UserFile/Images").

BUT, the "Link" tab is working correct, and I am able to link to pictures manually up-loaded.

What am I doing wrong here?

Best Regards Vidar

Alexandre Nion

Monday 03 April 2006 9:01:30 am

Hi Vidar,

Since image handling has changed since version 0.3.3 of the contribution, you should check which version you're using. The new system uses shared images from media library, when the old one was handling native files on the disk (not shared from ezpublish content).

This said, to be able to use the new upload system, you've to be sure that the user has got full access on the module "fckeditor", since upload is now handled by views in this module. Moreover, if you played with sections, it seems that a few problems could happen when using "content/edit" rights on specific sections, I don't know if it could be some of your issues. As far as I see, it should be rights issues in your case.

If you wish to use the external image browsing (traditional FCKeditor browser) without sharing in the media library, you've to disable ezFileManager in file fckeditor.ini.append , but you'll lose content handling in ezPublish.

Hope this will help you to solve your problem.

Vidar Østevik

Monday 03 April 2006 12:32:23 pm

Hello Alexandre!

Thank you very much for your reply!
Granting the right access on the extension solved the problem!
Now the only problem is the language.
When I click "Browse" (Again, I`m not shure if thats the correct phrase, as my language on the extension is Norwegian), I get the folder tree with Images,Files and Multimedia.
And on the bottom page, I have a button labled "Créer une nouvelle image", witch I beleve is French? clicking this button, the French language continues, and I am able to upload files to the server.

I have tried to look trough the php files for the FCKEditor, with no luck tracing back the language.

Do you have any ideas why this is happening, and do you know what file to modify to get it to speak English? ;)

Vidar

Alexandre Nion

Tuesday 04 April 2006 4:01:06 am

Hi Vidar,

About the language you're right!.. it comes in french on some things.. we didn't think about international context yet.
To cutomize the forms, you should find all html data that have to be changed in files module/fckeditor/createUpload.php and module/fckeditor/upload.php
These are views of module, used to replace the upload mecanism and interact with content.
I hope you'll reach your goal with it. Otherwise, as I got back in the code, a few things might be cleant in coming days ;)

Happy edit

Alexandre

Vidar Østevik

Wednesday 26 April 2006 11:58:51 am

Hi again!
I'm now finished with the "development" stage on my computer, and have uploaded the files to my web server.

As earlier, I'm not able to upload files in FCKEditor, when EzFileManager is set as "true".
I have CHMOD the extension folder to 777, so everybody should have read/write permissions.

This problem occours ONLY in IE... Firefox handles this OK.

What am I doing wrong??

Regards

Vidar

eZ debug

Timing: Jan 18 2025 04:17:18
Script start
Timing: Jan 18 2025 04:17:18
Module start 'content'
Timing: Jan 18 2025 04:17:19
Module end 'content'
Timing: Jan 18 2025 04:17:19
Script end

Main resources:

Total runtime0.8477 sec
Peak memory usage4,096.0000 KB
Database Queries200

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0105 588.8516180.8281
Module start 'content' 0.01050.7302 769.6797504.8125
Module end 'content' 0.74070.1070 1,274.4922338.1250
Script end 0.8477  1,612.6172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00480.5659210.0002
Check MTime0.00160.1934210.0001
Mysql Total
Database connection0.00100.123310.0010
Mysqli_queries0.775791.50192000.0039
Looping result0.00180.20811980.0000
Template Total0.811195.720.4055
Template load0.00370.433220.0018
Template processing0.807495.239420.4037
Template load and register function0.00020.027510.0002
states
state_id_array0.00200.239010.0020
state_identifier_array0.00190.220520.0009
Override
Cache load0.00300.3595450.0001
Sytem overhead
Fetch class attribute can translate value0.00160.190930.0005
Fetch class attribute name0.00120.138750.0002
XML
Image XML parsing0.00050.056430.0002
class_abstraction
Instantiating content class attribute0.00000.001350.0000
General
dbfile0.00150.1795210.0001
String conversion0.00000.001030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs