Hi!
I got RC2 and everything works smooth with my own cms-system. Everything except the image browser and upload stuff. I have been browsing around all the forum topics without being able to find anything.
I have tried to set
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Connector=connectors/php/connector.php&ServerPath=/images/" ;
and
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Type=Image&Connector=connectors/php/connector.php&ServerPath=/images/" ;
in fckconfig.js but nothing happens. It just wont show my images...
I've also tried the UserFile folder in the root of the site. Nothing happens. It is chmod:ed to 777.
My path is: /home/.sites/90/site62/web/admin/FCKeditor/
and all my images is in:
/home/.sites/90/site62/web/images (also chmod 777)
The server is apache and using php4.
Everyone else seems to get this working but how? It's really annoying when this is such a great app in all else means...
I would really apriciate help with configuring this so i can:
1) see my images in the file browser
2) upload new images
This is the last outpost in my descision in switching 20 cms-systems running htmlarea by interactivetools+imagemanager to finally only FCK.
I got RC2 and everything works smooth with my own cms-system. Everything except the image browser and upload stuff. I have been browsing around all the forum topics without being able to find anything.
I have tried to set
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Connector=connectors/php/connector.php&ServerPath=/images/" ;
and
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Type=Image&Connector=connectors/php/connector.php&ServerPath=/images/" ;
in fckconfig.js but nothing happens. It just wont show my images...
I've also tried the UserFile folder in the root of the site. Nothing happens. It is chmod:ed to 777.
My path is: /home/.sites/90/site62/web/admin/FCKeditor/
and all my images is in:
/home/.sites/90/site62/web/images (also chmod 777)
The server is apache and using php4.
Everyone else seems to get this working but how? It's really annoying when this is such a great app in all else means...
I would really apriciate help with configuring this so i can:
1) see my images in the file browser
2) upload new images
This is the last outpost in my descision in switching 20 cms-systems running htmlarea by interactivetools+imagemanager to finally only FCK.
RE: The image browser does not work
RE: The image browser does not work
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Type=Images&Connector=connectors/php/connector.php&ServerPath=" ;
Type=Images will be the last sub directory!
RE: The image browser does not work
I have tried and tried to get the php connector working. I went to test.html in the connectors directory and the php connector wasnt generating the correct xml. In fact it was falling over.
I think this is a problem with the encoding of the files and a utf8 php encoding function that doesnt work in certain cases.
I have rewritten the php connector slightly to get it to work on my test machine. It now works fine and it may be a solution if your php connector doesnt work.
its available at http://brunton.ath.cx
cheers.
RE: The image browser does not work
RE: The image browser does not work
I have made some progress and I think part of the problem is that by default the php connector looks in <webroot>/UserFiles/Images for images.
If that directory doesn't exist it appears to just bomb. It also has to be writable by the webserver in order for upload to work.
I'm still trying to figure out where the config options are to point it at a different directory. Hopefully others will be able to help out there... ?
RE: The image browser does not work
Server logs show ASP module being called. I guess this will be a long trawl through the source code to find out why its not happening!
RE: The image browser does not work
PS
Here's the server log snippet when in use with PHP module - you can see its calling the ASP module. Probalby needs a config detection method somewhere. I
[28/Feb/2005:18:50:02 +0000] "GET /fckeditor/editor/filemanager/browser/default/connectors/asp/connector.asp?Command=GetFoldersAndFiles&Type=Image&CurrentFolder=/ HTTP/1.1" 200 2770 "-" "Mozilla/5.0
I'd expect the connection method to be set up in the object maybe like ?
$oFCKeditor->ConnectorMode="PHP";
to match...
$oFCKeditor->BasePath = $sBasePath ;
RE: The image browser does not work
Uncomment the relevant line - you will see that PHP is disabled. I wonder if it might be possible to think of a more elegant solution to this so the correct block of code is selected depending on which language is in use?.
// Link Browsing
FCKConfig.LinkBrowser = true ;
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Connector=connectors/asp/connector.asp" ;
//FCKConfig.LinkBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Connector=connectors/asp/connector.asp&ServerPath=/CustomFiles/" ;
//FCKConfig.LinkBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Connector=connectors/aspx/connector.aspx" ;
//FCKConfig.LinkBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Connector=connectors/php/connector.php" ;
RE: The image browser does not work
RE: The image browser does not work
I had the problem and it have been solved by pyrat patch :
http://brunton.ath.cx
RE: The image browser does not work
RE: The image browser does not work
RE: The image browser does not work
Victory is mine!
I checked the security options in Mozilla and unchecked all the usual options you'd have enabled to prevent porno popups and the like and its now calling the PHP connector ... AND... I get an image preview and it inserts the image okay - woohoo!!!.
Only problem is - there is no way I would recommend anyone to use Moz without popup blocking and other security options. Maybe a bit of a rethink of the code might get around it. I have 100% PHP code which works just fine ffor browsing and uploading images. There are examples all over the net. Why use Javascript which may get trapped by popup-blockers??
Gnash!!. Shame as this edting interface is sooooo... good!!.
RE: The image browser does not work
Your mileage may vary, hope it helps!
RE: The image browser does not work
It is true there is a default folder and it is UserFiles - note the case, it is important for unix servers!
The folders inside should have the right case
The other thing is the javscript config file does not appear to refresh easily, I am still trying to work out where it is being stored as I have cleared my cache in several places.
RE: The image browser does not work
PLEASE HELP US! We are one step closer of becoming the happiest people in the world! We just need to get the image browsing and upload working!
The whole FCKEditor is located at www/editor/
I would like them to browse and upload images and/or add folders at www/editorimages/
I have tried the followings but they dont seem to work:
1. In the fckconfig.js, I added the Server Path so it becomes the following:
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/php/connector.php&ServerPath=editorimages/' ;
2. I have CHMOD editorimages folder to 777.
I even tried the other alternative at connector.php by changing it as follows:
$GLOBALS["UserFilesDirectory"] = GetRootPath() . 'editorimages/';
It is still not working!
I dont know where UserFiles are so I havent tried this option. Where is it by the way? If they are not already there, where should I put it?
At the moment, all the image browse window seems to be loading properly without error but I just dont know which folder it is diplaying. When I tried to create a new folder, it says permission denied (or sth like that). When I tried to upload images, it seems like uploading but then it is not displayed there after the uploads and it is nowhere in the server (so I guess it didnt really upload after all).
Please please help. I am sure lots of others are looking for the exact same solutions!
Cheers! FCKEditor rocks!
RE: The image browser does not work
LOL! Just a minute after my request for help, I got it working!!!! I asked for help and I found it! Literally
Here's what I did:
1. I created a folder called UserFiles on my webroot
2. Inside that UserFiles folder, I created another folder called Images
3. I CHMOD both folders to 777.
It works now!
RE: The image browser does not work
Anyways, although I got it working on one server, I cannot get it working on a different server. It just wont display the files and it gives an "unknown error creating folder" when creating a folder.
Surprisingly, when I tried to upload a file with the same name ads one of the files inside the UserFiles/Image folder, it could detect it and said that the uploaded image will be renamed. Yet, after that, the image that has just been uploaded is not there in the server.
Does anyone know the solution to this? Or is it permission problem?
RE: The image browser does not work
The image browser is not working for me either. I'm using the default configuration, asp connector and ServerPath="/UserFiles/".
But the connector doesn't generate a suitable output, when I'm running "test.html" in the connectors folder I don't receive any output at all. The image browser is empty as well when I run it.
I'm running a Domino server with full permissions. Thanks in advance, your help is appreciated!!
RE: The image browser does not work
i have same error:
I study the following error from apache error_log:
[client 192.168.0.1] PHP Warning: opendir(/home/luis/public/CustomFiles/Image/): failed to open dir: No such file or directory in /home/luis/public_html/admin_testes/fckeditor/editor/filemanager/browser/default/connectors/php/commands.php on line 52, referer: http://servidor/luis/admin_testes/fcked ... stomFiles/
i think function GetRootPath() doesnt returns a valid path when user homedir is configured to /home/user/public_html/
If you see, fckeditor try to open opendir(/home/luis/public/CustomFiles/Image/), when my webpage is in /home/user/public_html/ .
RE: The image browser does not work
i have dowloaded the files in the http://brunton.ath.cx
but i still have the problem.please help !
RE: The image browser does not work
I am running XP Pro, IIS and have <webroot>/UserFiles/Image write enabled.