hi, after couple of hours struggling with FCK and also unofficial filemanager i found this:
1/ edit connector.php (filamanager/browser/default/connectors/php)
my files folders are in /home/html/somedomain.sk/public_html/atlantis/obrazky/
(create directories: Image, File - these are defaults and chmod 777 (make it world writeable))
edit lines 27 - 37
// Get the "UserFiles" path.
$GLOBALS["UserFilesPath"] = '/atlantis/obrazky/' ;
if ( isset( $_GET['ServerPath'] ) )
{
$GLOBALS["UserFilesPath"] = $_GET['ServerPath';
if ( ! ereg( '/$', $GLOBALS["UserFilesPath"] ) )
$GLOBALS["UserFilesPath"] .= '/' ;
}
else
$GLOBALS["UserFilesPath"] = '/atlantis/obrazky/' ;
2/ visit FCKeditor/editor/filemanager/browser/default/connectors/test.html
this tests if all settings are ok
well... it works for me )
advice: you can set ServerPath variable in fckconfig.js (in connectors config), if you have done so, remove it! because it will override settings in connector
Wed, 03/02/2005 - 08:31
#1
RE: solution to image upload in FCK RC2.0 (PH
I am reselling my webspace so I don't want to show everyone my whole entire directory root...
Marcus
re: directory root
as you can see, this isn't directory root
RE: solution to image upload in FCK RC2.0 (PHP)
$GLOBALS["UserFilesDirectory"] = ????
RE: solution to image upload in FCK RC2.0 (PH
I didn't set it directly in the connector.php
but I set the ServerPath in the file fckconfig.js.
My webspace folders look like that:
the absolut path to my fckeditor folder is something like:
customers/me/webpages/mywebsite/admin/fckeditor/
The admin folder is password protected - therefore I need to put the images into a folder that is not password protected so that the visitors can see them.
I want to upload my pictures into
customers/me/webpages/mywebsite/fckdata/
my url http://www.myurl.com points to:
customers/me/webpages/mywebsite/
Here's what I set in the file fckconfig.js
Under Link Browsing I got:
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Type=File&Connector=connectors/php/connector.php&ServerPath=/fckdata/
Under Image Browsing I got:
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Type=Image&Connector=co
nnectors/php/connector.php&ServerPath=/fckdata/";
When uploading a picture, it puts them into the folder
customers/me/webpages/mywebsite/fckdata/Image
That is okay, though not perfect - I would prefer to have them directly in /fckdata and without capital letters in the folder name.
But however, when I select an uploaded image it does not get displayed in the window where you see the
latin text "Magnus es, domine, et laudabilis valde:" and when you submit it neither appears in my textbox.
Also, I need to be able to view this message with the uploaded image from different parts of the website - in my admin menu AND on the user site - so I guess this would only work with absolut paths.
Any ideas?
Thanks,
Marcus