Hello - I am trying to search sourceforge for hints on how to get the images browser for uploads to work, but it looks like it is a combination between fckconfig.js and other files. I am not sure if it is a bug or something I simply am not doing. I get the feeling it is trying to load them up to the root of the webserver, but I have no access there on my shared host.
Can you kindly include a few words about how to do this in the readme file? I cannot find any comprehensive docs on this at all. Any advice appreciated!
Thanks very much.
Regards
Rick
Comments
Comment #1
jtite commentedNow you can download the lastest version from CVS, it includes a server side integration pack that allows to browse and upload files to server
Comment #2
Rick Cogley commentedTHank you JTite.
I downloaded and installed the CVS version, and looked around but don't find anything that states specifically how to make this work. Are you talking about configuring the fckconfig.js file?
Please advise.
Cheers,
Rick Cogley
Tokyo
Comment #3
jtite commentedTo enable the File Browser (server side integration pack) follow these steps
1. Make sure you download the sspi folder from the CVS to your modules/fckeditor directory.
2. Edit the fckconfig.js file under modules/fckeditor/lib directory and set the FCKConfig.LinkBrowserURL and FCKConfig.ImageBrowserURL properties to:
Note: If you are running Drupal under a directory replace '[context_path]' with yours directory's name (ie. /drupal ), otherwise simply remove it
3. Edit properties.inc file under modules/fckeditor/ssip to set the 'context_path' property. if you are running Drupal under a directory you need to set the 'context_path' property to the ditectory's name
otherwise replace it with an empty string ('')
4. Edit properties.inc file under modules/fckeditor/ssip to set the resorce type path properties to the specific server path.
Possible scenario
Supose you have drupal running under http://www.domain.com/drupal and this url is mapped by your web server to "C:\Inetpub\wwwroot\webapp\drupal-45X" as document root. Under the document root you have three directories 'images', 'media' and 'library', each directory contains a specific type(s) of resource that you want to be able to browse through fckeditor file browser. To enable fckeditor server side integration you shall do the following:
1. Download sspi directory from CVS to "C:\Inetpub\wwwroot\webapp\drupal-45X\modules\fckeditor"
2. Edit fckconfig.js ("C:\Inetpub\wwwroot\webapp\drupal-45X\modules\fckeditor\lib") to set the properties FCKConfig.LinkBrowserURL and FCKConfig.ImageBrowserURL properties to:
3. Edit properties.inc ("C:\Inetpub\wwwroot\webapp\drupal-45X\modules\fckeditor\ssip") and set the 'context_path' property to:
4. Set resorce type path properties to:
Comment #4
jtite commentedCorrection: the directory's name in the CVS is ssip
Comment #5
Rick Cogley commentedThis is excellent, jtite; thank you so much.
mOm <= Japanese emoticon "deep bow" where the m's are hands on the floor and the O is my head!
I will give it a try right away.
Regards
Rick Cogley
Tokyo, Japan
Comment #6
Rick Cogley commentedHello - thanks very much for making the effort to put this together.
I was able to download and install, but am getting errors and am not able to see the folders. I downloaded the module again from the normal drupal.org list, choosing the cvs one, and the the ssip folder directly from cvs.drupal.org.
I get this in my log whenever I click the insert image button, and then do browse server:
It is a bit strange that the path has a // in it, and someone referenced this as just being cosmetic and needed for uploading images. I think the admin/settings/fckeditor allows you to change this but I have not fiddled with it. Should I?
When the server browser window comes up, in Firefox I can look at frame information, and it does indeed look like it is loading the correct connector.php as specified. However, inside that dialog, nothing works, I cannot see any images that I know exist in the path I specified, and I get no errors doing an add image or create folder.
In properties.inc there is a place to specify the separator, and it is defaulting to:
I am on a LAMP server, so do I change this to
= '\/'(escaping the forward slash) or= '/'?Any ideas of what I can try to do? Really sorry to keep pestering, but I would like to get this right.
Kind regards,
Rick Cogley
Tokyo, Japan
Comment #7
Rick Cogley commentedOK, this is really good! It works now after I did this, having finally found where my logs are (my ISP provides CPanel but it is in Japanese).
I set the path separator to
/I chmod'ed the directory correctly
CPanel was adding extraneous ending spaces to the .inc file, at the bottom after the
?>.THANK YOU!!
Regards
Rick Cogley
Tokyo, Japan
Comment #8
(not verified) commentedIs it possible to add some kind of security to the upload functionality? I.e. only users belonging to a certain role can upload images or something similar... otherwise the security implications are horrible.
Comment #9
ontwerpwerk commentedplease do not hijack threads .. and yes, the fckeditor filebrowser is very powerful and should not be granted to all users