The original topic for this has grown a bit too far over the past couple of months (mostly due to me correcting my own mistakes in posts, sorry), so its time for a fresh start(topic).
The URLs to specific files relating to the file browser extensions and PHP and ASP connectors in other posts are obsolete, for downloads of these items goto:
http://www.mcpuk.net/fbxp
(I have just updated all the downloads on the site)
The site also contains:-
-Classic ASP and PHP classes for constructing the
FCKEditor.
- developer docs for anyone who wants to make their
own connectors
- an FCKEditor demo with extensions etc.
- some screenshots.
I would also just like to say a big thankyou to everyone who has tested and provided feedback on the connectors & file browser extensions, and for their patience whilst i have been fixing bugs. Special thanks to those who have helped fix bugs and extended the connectors (particularly the ASP connector, tdgraphix)
Sat, 11/27/2004 - 18:55
#1
RE: PHP,ASP Connectors & File Browser Extensions
If you want to see what I'm talking about go to:
http://www.13thirteen.net/sandbox/editor/test.php
RE: PHP,ASP Connectors & File Browser Extensi
RE: PHP,ASP Connectors & File Browser Extensions
1. I've had to modify the file from : /sandbox/editor/editor to get it to work in the root.
2. I tried using the test.php and when I do try to open the File Manager, it appears that there is a debug script that opens a new window everytime you try and perform any operation within the Browser.
3. When creating a new folder, it automatically displays that folder as "noname_dir". And therefore you cannot delete it.
4. I was unable to upload anything other than images. I thought we were supposed to be able to upload other file types as well?
5. And I don't know if this is an error with the FCKEditor or not, but I just happened to add a background color to some text. When I clicked on the Show Me submit button in the test.php a second time around, it no longer showed the background color, but kept adding quotes " and backslashes \ to the code.
If I find anything else, I'll post again.
RE: PHP,ASP Connectors & File Browser Extensi
I think the same problem may also exist with images, tables, smileys ... I get a box on the screen with backslashed quotes inside ...
RE: PHP,ASP Connectors & File Browser Extensi
I got the example to work -- kinda. Once you apply stripslashes to the POSTed string coming from the editor, you can use it properly.
If I were any good at navigating through the js code, I would have found out why ... for now, I'm happy enough that I have a workable solution <g>. Still would like to find out how we can fix it .
My test.php is below;
//---------------
// ...
<form method="post">
<?
$tp = stripslashes($_REQUEST['testpage']);
// ...
$editor->SetValue($tp?$tp:"Enter page data here");
// ...
<?
if (isset($_REQUEST['testpage'])) {
echo $tp;
}
[Suggestion] Php progress bar
Hi grant,
i've found a php progress bar here:
http://holliwell.mirrors.phpclasses.org ... /1964.html
i've not tested it yet,but you may want to replace the existing one (in perl) with this one for a easier usage.
ATB,ralf.
RE: [Suggestion] Php progress bar
Unfortunately the progress bar itself isnt the problem, the problem is that PHP has no way of monitoring uploads, the php script is only executed after all post data has been recieved by the server, hence the neccesity of the perl scripts. The only other option is to run a patched copy of PHP which is even less accessible to most than the perl option. The PHP developers should really get there act together and sort this out, it has been mentions hundreds of times in the php developement forums for years.
Thanks never the less for your suggestion.
Grant
RE: PHP,ASP Connectors & File Browser Extensi
Hi.
I Use you PHP Connector with FCK. It works perfectly
I'd like to customize it in order to allow only users to see their own images. So I've tought creating resources folder for each session_id. In config.php, instead of setting a unique UserFilesPath, i create a tempdir with the session_id and then define the UsersFilePah.
But I have a problem now with the filemanager. When I create a folder or upload an image, it updoad but I can't see them on the file manager. The javascript console tells me that there is an error in frmressourcelist.htm
I think it is a right problem. The user folder i created are chmod in 0755 even if i'd like to set them on 0777.
Can you help ?
PS : I'm very sorry for my english... I'm french
RE: PHP,ASP Connectors & File Browser Extensi
Good luck, always happy to [try and] answer any questions
RE: PHP,ASP Connectors & File Browser Extensi
Thanks for your quick response.
RE: PHP,ASP Connectors & File Browser Extensi
Ok. I have solved the problem thanks to your suggestion.
It was just when I create the folder, there was a Warning sometimes that causes the sent of the headers fails.
I just corrected it with @mkdir.
Sorry again for my english. I'm scared by my english
request: multilingual, upload path
According to fredck's message, a new version will be available next week.
Hope you could make the connector configurable for mulitlange. [I have checked the js files, it could be done by adding a new config. Hope no need to change the js files by the new version.]
For the upload folder, I hope it can be configurable with php parameters and it can be put outside of fckeditor's root path.
RE: request: multilingual, upload path
I'm donating this weekend. The absolute least I can do!
Jake
RE: request: multilingual, upload path
I will write out a list of messages generated by the connectors and post them so others may translate, i will then try an build this into the connectors.
Upon release of the new editor i will update the file browser extensions based on the new version, and hopefully release them a few days after the new editor version.
The current PHP connector has support for latin characters in file names.
As for changing where uploaded files go both the PHP and ASP connectors can be configured to change this in the config.php and config.asp respectively.
Grant
RE: request: multilingual, upload path
default:
$config['UserFilesPath']="/sandbox/editor/data/resources";
could change it to "/resources" which would be outside of the editors base directory.
config.asp
default:
config_UserFiles="/forum/uploads"
Default is already set outside the editors base directory.
RE: request: multilingual, upload path
I need make the $config['UserFilesPath'] to be set when calling the fckeditor class.
The reason: I am adapting fckeditor to our CMS, in which different modules might have different upload folders.
RE: request: multilingual, upload path
RE: request: multilingual, upload path
I was also working on a multilingual filemanager ....
RE: PHP,ASP Connectors & File Browser Extensi
"Hope you could make the connector configurable for mulitlange." Here I am not talking about uploader but the whole editor, to be more specific: the language should be set by the fckeditor.php like other configure parameters.
RE: PHP,ASP Connectors & File Browser Extensi
This should have been following the message:
https://sourceforge.net/forum/message.p ... id=2870716