Hello, I'm new to posting here, but have been reading and following along for a while.
I've been using the MCPUK file browser for a while in conjunction with thr RC versions the last couple of months. Everything works great, and I've had no problems with this browser. I was very happy to see it included with the final release.
In the Final Release version however, two noticable bugs turned up that were not there before.
1) Just as CouchMouse describes, in FF only, uploading a new image will not refresh the screen. You cannot tell that the image has uploaded until you manually refresh.
2) If you are browsing into a folder, and accidentally "DoubleClick" the folder icon, it duplicates everything you see on the screen. In the left folder list, all folders are listed twice. In the main area, there are two complete sets of thumbnails for every folder and image. This can be cleared by going up a level, and then clicking into the folder again, but making sure you only "SingleClick" it.
Both of these problems did not exist under RC2 & RC3, and they do not happen in IE from what I can tell, only in FF. Otherwise FCKeditor and MCPUK's browser are fantastic!
Two minor "wish list" items: 1) Display the filesize under the thumbnails 2) A button to "Refresh" the thumbnail images. ( I sometimes mass upload revised images via FTP into the images folder. The thumbnails then no longer represent the same picture. I manually delete the .thumb files and then they get recreated the next time I browse, but it would be handy to have a button to rebuild all the .thumbs at will.)
mtoboll, thankyou for your comments. This provides me with a starting point for trying to find the refresh problems.
The file sizes are displayed in the tooltip of the thumbnails, but point taken on having them below, something that you should be able to look forward to in the new file browser.
Just a followup from my earlier post regarding the bug where the screen doesn't refresh after an upload in FF.
I've been looking closer, and it appears that when the upload finishes, it DOES refresh the main screen, however it does not re-read the directory and just comes up with a blank screen (All thumbnails and folders dissapear).
I can recreate the problem, without even uploading, by being in any of the directories, and seeing it's contents, I can right-click, and choose to Reload that frame. I get the same results, that frame refreshes, but everything inside just goes blank.
Just a wild guess, but it seems that when the refresh occurs, it loses track of which folder it is in. So it has no filelist to display.
Thanks for the tip about the filesize in the Title attribute. I had just never hovered over an image long enough to see that pop up before.
Just seeing if this has been resolved at all and I overlooked it. Basically I'm working in FF and don't mind right clicking refreshing or F5'ing it but I have some clients who well, are quite forgetful. They are on Macs and use FF there -- haven't tested it with them yet but I'm assuming the same problem will happen. Any luck?
Matt, there is a CFM version of the connector for the MCPUK file manager it is not developed by my but you may be able to do something with it, you can find it at: http://www.mcpuk.net/fbxp/?page=downloads
I am not sure if it implements all the extras but it should have the rename/delete etc.
Failing that on the same site there is documentation on the connector responses so you could develop your own connector (from scratch or based on the cfm connector on the site)
(Also for those wondering there is a classic ASP connector on the same page, i am also unsure of its completeness of status (hence them not being included in this release))
I just don't get what I'm doing wrong... I can't get the filebrowser to work AT ALL....
The variables that I have set so far are: fckconfig.js:
FCKConfig.BaseHref = 'http://127.0.0.1/blfaq/FCKEditor/' ; I set this to where I keep FCKeditor, I don't know where to set FCKConfig.BasePath - so I dont BasePath is used throughout this file while BaseHref is not used anywhere... so mabye it's a typo? any way, moving on...
FCKConfig.LinkBrowser = true ; //Seems to be a good thing FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/mcpuk/browser.html?Connector=connectors/php/connector.php' ; //This should do it I thought... FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/mcpuk/browser.html?Type=Image&Connector=connectors/php/connector.php' ; //Not to forget!
and in FCKeditor\editor\filemanager\browser\mcpuk\connectors\php\config.php
$fckphp_config['basedir']=$_SERVER['DOCUMENT_ROOT']; I also tried $fckphp_config['basedir'] = "C:\Program Files\Apache Group\Apache2\htdocs\blfaq\FCKeditor\editor\filemanager\browser\mcpuk" ; no luck... $fckphp_config['UserFilesPath'] = "/blfaq/UserFiles" ; //Yes, the folder C:\Program Files\Apache Group\Apache2\htdocs\blfaq\Userfiles exists... I use $fckphp_config['auth']['Req']=false; however I only created the UserFiles directory. The readme says something about other folders but it is pretty vauge what I should do... so I didn't add them for now (so I need to?)
That's about it, the rest is left to it's default values...
I am running windows 2000, apache and php4
I suppose I am missing something REALY simple, but I have no idea what it could be...
If authentication is enabled the resource folders (Image,File....) are automatically created, if authentication is not enabled you must create these manually., and as xenden said check the permissions.
I tried ot change the values in the config.js file... but no matter what i do .. it either changes the locaion of the where the files are located (nothing is shown) or it just removes the server name from the displayed url..
If you look at line 64 of the GetFoldersAndFile.php file in the connectors/php/Commands folder, this is where the url path is specified for the files, if you manually change this you should be ok.
Actually on reflection you should have a problem, the document root should never be disclosed in the url preceding the file's names. The url sent back to the image dialog is composed of what you put in the urlprefix i.e. http://intranet then the userfiles directory /UsersFiles then the resource area /Files then the file name /personal.doc. So the final URL should be http://intranet/UsersFiles/Files/personal.doc anyway.
What have you got the $fckphp_config['basedir'] , $fckphp_config['urlprefix'] and $fckphp_config['UserFilesPath'] variables set to in the config.php file?
/*------------------------------------------------------------------------------*/ /* The physical path to the document root, Set manually if not using apache */ /*------------------------------------------------------------------------------*/ //$fckphp_config['basedir']=$_SERVER['DOCUMENT_ROOT']; $fckphp_config['basedir'] = '\\networkdrive\editor\filemanager\browser\mcpuk' ; /*==============================================================================*/
/*------------------------------------------------------------------------------*/ /* Prefix added to image path before sending back to editor */ /*------------------------------------------------------------------------------*/ $fckphp_config['urlprefix']=$fckphp_config['prot'].$_SERVER['SERVER_NAME']; /*==============================================================================*/
/*------------------------------------------------------------------------------*/ /* Path to user files relative to the document root (no trailing slash) */ /*------------------------------------------------------------------------------*/ $fckphp_config['UserFilesPath'] = "/UserFiles" ; /*==============================================================================*/
Ok, i'm not sure where that basedir came from. Judging by your previous posts this should be set to: \\filer\web$ (remembering to escape the slashes php style) the other settings should be fine. however i can't see how the filebrowser was returning a path of http://Intranet\\filer\web$\UserFiles/Files/personal.doc from the configuration you have posted, as it doesnt even mention web$. If you still encounter this please set the url prefix in the configuration manually to http://intranet to see if that makes a difference.
The GD library is used to generate the thumbs. The PHP connector with the MCPUK file browser currently does not support sorting of folder contents or searching for files, but both will be noted for future development.
I also get "Unable to determine the size of a folder.". $fckphp_config['auth']['Req']=false; All folders exists, and are chmodded to 0777. Have tested with exact same paths on my laptop with winxp, and it works here..
Its just occured to me that there is no example of how to initiate the mcpuk editor with the authentication enabled, or not that i saw anyway. so i have uploaded a sample file you can take a look at here: http://www.mcpuk.net/fbxp/downloads/sample05.phps obviously you need to rename it to a .php extension to try it. The paths in the sample are setup for the script to run from the _samples/php folder, under the FCKeditor folder.
This example also demostrates changing the FCKEditor toolbar dynamically at runtime, without loosing any unsaved content from the editor window. And how to use the FCKEdtitor to edit multiple data sources on the same page, using a single instance.
has anyone tried using MCPUK File browser as a standalone app outside of FCKeditor. it's a great file manager and users may want to manage files without starting up FCKeditor.
MCPUK File browser doesn't seem to convert special characters like germans "", "", "" or ""... I think there should be a little modification in "File Upload"-script. I did not yet take a look where to place this modification, so if someone already did, please let me/us know... If not, I will take the time the next weekend to find a workaround and share it here...
It doesnt convert them but it has been designed to work with other characters, as defined in the DTD within the connector, this prevents errors occuring through the use of such characters in file names.
that's right, currently MCPUK File browser works perfectly with special characters - that's not the problem. But have you ever tried e.g. to download a file with these characters? Doesn't work for example with Netscape 4.7x, if there is a "blank" in the file name... (unfotunately this browser still exists and is still in use... :-/ ).
That's why I included a conversation script in my own file tool of my own WYSIWYG-Editor. Before switching to FCKeditor and MCPUK File browser - and I really would like to...! - I immediatly need a script to convert special characters and "blanks" to "_".
At last it should be just a str_replace, shouldn't it? So before I start to go through the script and analyse it, maybe you can tell me where to include it...
RE: MCPUK File browser in 2.0FC
I've been using the MCPUK file browser for a while in conjunction with thr RC versions the last couple of months. Everything works great, and I've had no problems with this browser. I was very happy to see it included with the final release.
In the Final Release version however, two noticable bugs turned up that were not there before.
1) Just as CouchMouse describes, in FF only, uploading a new image will not refresh the screen. You cannot tell that the image has uploaded until you manually refresh.
2) If you are browsing into a folder, and accidentally "DoubleClick" the folder icon, it duplicates everything you see on the screen. In the left folder list, all folders are listed twice. In the main area, there are two complete sets of thumbnails for every folder and image. This can be cleared by going up a level, and then clicking into the folder again, but making sure you only "SingleClick" it.
Both of these problems did not exist under RC2 & RC3, and they do not happen in IE from what I can tell, only in FF. Otherwise FCKeditor and MCPUK's browser are fantastic!
Two minor "wish list" items:
1) Display the filesize under the thumbnails
2) A button to "Refresh" the thumbnail images. ( I sometimes mass upload revised images via FTP into the images folder. The thumbnails then no longer represent the same picture. I manually delete the .thumb files and then they get recreated the next time I browse, but it would be handy to have a button to rebuild all the .thumbs at will.)
Thanks for the great work!!
RE: MCPUK File browser in 2.0FC
The file sizes are displayed in the tooltip of the thumbnails, but point taken on having them below, something that you should be able to look forward to in the new file browser.
Kind Regards,
Grant
RE: MCPUK File browser in 2.0FC
Just a followup from my earlier post regarding the bug where the screen doesn't refresh after an upload in FF.
I've been looking closer, and it appears that when the upload finishes, it DOES refresh the main screen, however it does not re-read the directory and just comes up with a blank screen (All thumbnails and folders dissapear).
I can recreate the problem, without even uploading, by being in any of the directories, and seeing it's contents, I can right-click, and choose to Reload that frame. I get the same results, that frame refreshes, but everything inside just goes blank.
Just a wild guess, but it seems that when the refresh occurs, it loses track of which folder it is in. So it has no filelist to display.
Thanks for the tip about the filesize in the Title attribute. I had just never hovered over an image long enough to see that pop up before.
regards-
Mark
RE: MCPUK File browser in 2.0FC
RE: MCPUK File browser in 2.0FC
Any idea when versions of this browser will be released for platforms other than PHP? I'm a CF developer.
Cheers,
--Matt--
RE: MCPUK File browser in 2.0FC
Matt, there is a CFM version of the connector for the MCPUK file manager it is not developed by my but you may be able to do something with it, you can find it at: http://www.mcpuk.net/fbxp/?page=downloads
I am not sure if it implements all the extras but it should have the rename/delete etc.
Failing that on the same site there is documentation on the connector responses so you could develop your own connector (from scratch or based on the cfm connector on the site)
(Also for those wondering there is a classic ASP connector on the same page, i am also unsure of its completeness of status (hence them not being included in this release))
Hope this is of some use to you,
Grant
RE: MCPUK File browser in 2.0FC
I just don't get what I'm doing wrong... I can't get the filebrowser to work AT ALL....
BasePath is used throughout this file while BaseHref is not used anywhere... so mabye it's a typo? any way, moving on...

The variables that I have set so far are:
fckconfig.js:
FCKConfig.BaseHref = 'http://127.0.0.1/blfaq/FCKEditor/' ;
I set this to where I keep FCKeditor, I don't know where to set FCKConfig.BasePath - so I dont
FCKConfig.LinkBrowser = true ; //Seems to be a good thing
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/mcpuk/browser.html?Connector=connectors/php/connector.php' ; //This should do it I thought...
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/mcpuk/browser.html?Type=Image&Connector=connectors/php/connector.php' ; //Not to forget!
and in FCKeditor\editor\filemanager\browser\mcpuk\connectors\php\config.php
$fckphp_config['basedir']=$_SERVER['DOCUMENT_ROOT'];
I also tried
$fckphp_config['basedir'] = "C:\Program Files\Apache Group\Apache2\htdocs\blfaq\FCKeditor\editor\filemanager\browser\mcpuk" ;
no luck...
$fckphp_config['UserFilesPath'] = "/blfaq/UserFiles" ; //Yes, the folder C:\Program Files\Apache Group\Apache2\htdocs\blfaq\Userfiles exists...
I use $fckphp_config['auth']['Req']=false; however I only created the UserFiles directory. The readme says something about other folders but it is pretty vauge what I should do... so I didn't add them for now (so I need to?)
That's about it, the rest is left to it's default values...
I am running windows 2000, apache and php4
I suppose I am missing something REALY simple, but I have no idea what it could be...
Oh, and as you see, I'm new to FCKEditor
~J
RE: MCPUK File browser in 2.0FC
Also check that the user the webserver is running as has r/w access to those directories.
I haven't tested the latest incarnation of mcpuk connector, sorry no sample config to post or whatever.
I feel you are close to getting it working... =-)
MTFBWY!
RE: MCPUK File browser in 2.0FC
RE: MCPUK File browser in 2.0FC
This new version ROCKS!!!!
the MCPUK works great.. but... because of my implimentation (not my choice) of it I can not get the returned URL in the text box right..
Running IIS6
PHP5
all webpages are stored on the network ie:
\\filer\web$\editor\ ($ = hidden share)
\\filer\web$\UserFiles
Server name is
http://Intranet (local only)
Userfiles dir:
/UsersFiles
once the file is selected it comes back with this url in the text field:
http://Intranet\\filer\web$\UserFiles/Files/personal.doc
I tried ot change the values in the config.js file... but no matter what i do .. it either changes the locaion of the where the files are located (nothing is shown) or it just removes the server name from the displayed url..
can someone help please?
RE: MCPUK File browser in 2.0FC
If you look at line 64 of the GetFoldersAndFile.php file in the connectors/php/Commands folder, this is where the url path is specified for the files, if you manually change this you should be ok.
Regards
Grant
RE: MCPUK File browser in 2.0FC
If you dont mind....what changes do u recommend?
<CurrentFolder path="<?php echo $this->raw_cwd; ?>" url="<?php echo $this->fckphp_config['urlprefix'] . $this->actual_cwd; ?>" />
Thanks for your time MCukstorm!
RE: MCPUK File browser in 2.0FC
Actually on reflection you should have a problem, the document root should never be disclosed in the url preceding the file's names. The url sent back to the image dialog is composed of what you put in the urlprefix i.e. http://intranet then the userfiles directory /UsersFiles then the resource area /Files then the file name /personal.doc. So the final URL should be http://intranet/UsersFiles/Files/personal.doc anyway.
What have you got the $fckphp_config['basedir'] , $fckphp_config['urlprefix'] and $fckphp_config['UserFilesPath'] variables set to in the config.php file?
RE: MCPUK File browser in 2.0FC
RE: MCPUK File browser in 2.0FC
HOwdy Mcukstorm.. Thanks so much for your reply... here is some of the contents of the config.php
_______________
$fckphp_config['prot']="http";
$fckphp_config['prot'].=((isset($_SERVER['HTTPS'])&&$_SERVER['HTTPS']=='on')?"s":"");
$fckphp_config['prot'].="://";
/*==============================================================================*/
/*------------------------------------------------------------------------------*/
/* The physical path to the document root, Set manually if not using apache */
/*------------------------------------------------------------------------------*/
//$fckphp_config['basedir']=$_SERVER['DOCUMENT_ROOT'];
$fckphp_config['basedir'] = '\\networkdrive\editor\filemanager\browser\mcpuk' ;
/*==============================================================================*/
/*------------------------------------------------------------------------------*/
/* Prefix added to image path before sending back to editor */
/*------------------------------------------------------------------------------*/
$fckphp_config['urlprefix']=$fckphp_config['prot'].$_SERVER['SERVER_NAME'];
/*==============================================================================*/
/*------------------------------------------------------------------------------*/
/* Path to user files relative to the document root (no trailing slash) */
/*------------------------------------------------------------------------------*/
$fckphp_config['UserFilesPath'] = "/UserFiles" ;
/*==============================================================================*/
/*------------------------------------------------------------------------------*/
/* Progressbar handler (script that monitors upload progress) (''=none)
/*------------------------------------------------------------------------------*/
$fckphp_config['uploadProgressHandler']=''; //No upload progress handler
//$fckphp_config['uploadProgressHandler']=$fckphp_config['prot'].$_SERVER['SERVER_NAME']."/cgi-bin/progress.cgi"; //Perl upload progress handler
/*==============================================================================*/
RE: MCPUK File browser in 2.0FC
Ok, i'm not sure where that basedir came from. Judging by your previous posts this should be set to: \\filer\web$ (remembering to escape the slashes php style) the other settings should be fine. however i can't see how the filebrowser was returning a path of
http://Intranet\\filer\web$\UserFiles/Files/personal.doc from the configuration you have posted, as it doesnt even mention web$. If you still encounter this please set the url prefix in the configuration manually to http://intranet to see if that makes a difference.
Totally confused regards,
Grant
RE: MCPUK File browser in 2.0FC
what are the library required for generate the image on the fly?
It's possible order folder and file ascending mode?
It's possible find an image throught the image filename or part of it?
RE: MCPUK File browser in 2.0FC
Regards,
Grant
RE: MCPUK File browser in 2.0FC
running php 4.3 on unix
added a files directory under the root which is
home/miker/fck/files
fckconfig.js contains:
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/mcpuk/browser.html?Type=Image&Connector=connectors/php/connector.php' ;
config.php under connector contains:
$fckphp_config['UserFilesPath'] = "/files" ;
files directory is owned by the webserver and chmod 777:
drwxrwxrwx 2 www staff 512 May 14 14:58 files
when i try to create a directory it says i don't have permissions
when trying to upload says it can't read directory size.
i'm sure i must have one of the config setting wrong as the permissions are correct.
any help would be appreciated.
RE: MCPUK File browser in 2.0FC
All those go under your aformentioned /files directory.
That could be part of it. We'll see if Grant see's something else. Good Luck!
-ps as yer unix, case is important!
RE: MCPUK File browser in 2.0FC
i now get an "invalid XML response from connector when uploading" and an "error creating folder - error code -1" when creatin folder.
thanks again
RE: MCPUK File browser in 2.0FC
the testme.php file helps a lot to debug, to find if your basedir is correct etc.
it helped me to see i need to the full path:
$fckphp_config['basedir'] = '/home2/bizbc2/public_dir/site_working/richedit' ;
as opposed to just the doc root, which misses the sub directories
RE: MCPUK File browser in 2.0FC
'Error, "Over disk quota,
unable to determine the Size of a Folder"
when I upload Images with FTP into the Folder the Thumbs are generated and I can see it all.
All Folder have CHMOD 777
any help ?
RE: MCPUK File browser in 2.0FC
If off, have you created all resource type folders? Image,Media,Flash,File
The error is usually a result of the connector being unable to open on of the resource type folders.
RE: MCPUK File browser in 2.0FC
$fckphp_config['auth']['Req']=false;
All folders exists, and are chmodded to 0777. Have tested with exact same paths on my laptop with winxp, and it works here..
RE: MCPUK File browser in 2.0FC
Its just occured to me that there is no example of how to initiate the mcpuk editor with the authentication enabled, or not that i saw anyway. so i have uploaded a sample file you can take a look at here: http://www.mcpuk.net/fbxp/downloads/sample05.phps obviously you need to rename it to a .php extension to try it. The paths in the sample are setup for the script to run from the _samples/php folder, under the FCKeditor folder.
This example also demostrates changing the FCKEditor toolbar dynamically at runtime, without loosing any unsaved content from the editor window. And how to use the FCKEdtitor to edit multiple data sources on the same page, using a single instance.
RE: MCPUK File browser in 2.0FC
it's a great file manager and users may want to manage files without starting up FCKeditor.
RE: MCPUK File browser in 2.0FC
If not, I will take the time the next weekend to find a workaround and share it here...
Roland
RE: MCPUK File browser in 2.0FC
It doesnt convert them but it has been designed to work with other characters, as defined in the DTD within the connector, this prevents errors occuring through the use of such characters in file names.
RE: MCPUK File browser in 2.0FC
Hi Grant,

that's right, currently MCPUK File browser works perfectly with special characters - that's not the problem. But have you ever tried e.g. to download a file with these characters? Doesn't work for example with Netscape 4.7x, if there is a "blank" in the file name... (unfotunately this browser still exists and is still in use... :-/ ).
That's why I included a conversation script in my own file tool of my own WYSIWYG-Editor. Before switching to FCKeditor and MCPUK File browser - and I really would like to...! - I immediatly need a script to convert special characters and "blanks" to "_".
At last it should be just a str_replace, shouldn't it? So before I start to go through the script and analyse it, maybe you can tell me where to include it...
Thx, Roland