Greetings!
I have loaded version 2.0rc2 and have been trying all day to get the link browser to work so that I can select a file on the server to include within a link.
I have set both FCKConfig.LinkBrowserURL and FCKConfig.ImageBrowserURL in fckconfig.js and have tried various combinations for $GLOBALS["UserFilesPath"] in connector.php. However, all of the browsers show a path of "/" and no content.
Maybe I am misunderstanding something. My goal is to allow users to browse file to which they want to link. Is this the correct method? Any help is greatly appreaciated.
Regards,
jimmo
I have loaded version 2.0rc2 and have been trying all day to get the link browser to work so that I can select a file on the server to include within a link.
I have set both FCKConfig.LinkBrowserURL and FCKConfig.ImageBrowserURL in fckconfig.js and have tried various combinations for $GLOBALS["UserFilesPath"] in connector.php. However, all of the browsers show a path of "/" and no content.
Maybe I am misunderstanding something. My goal is to allow users to browse file to which they want to link. Is this the correct method? Any help is greatly appreaciated.
Regards,
jimmo
RE: Getting the PHP file/link browser to work
You may want to lookinto
http://mcpuk.net/fbxp/
As it's a more complete PHP connector. Also has a good testing page. The default PHP connector also has a test page, which you should try as well.
GL!
Sit'n in the rain, sipping on coffee, typing on the laptop... why is all my hair standing on end? Eh...
RE: Getting the PHP file/link browser to work
regards,
jimmo
RE: Getting the PHP file/link browser to work
Probably in the path to the connector in the fckconfig.js file. The test page sets it 'manually' (so to speak) with the pulldown.
Weird constraints tho... they're both sometimes easy to configure... and fbxp has delete/rename...
RE: Getting the PHP file/link browser to work
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + "filemanager/browser/default/browser.html?Connector=connectors/php/connector.php" ;
I added a javascript alert() to fckdialog.html to display dialogArguments.Editor.FCKConfig.LinkBrowserURL, this gives me:
/FCKEditor/editor/filemanager/browser/default/browser.html?Connector=connectors/php/connector.php
This seems to be correct, but I have just started working with this.
RE: Getting the PHP file/link browser to work
regards,
jimmo
RE: Getting the PHP file/link browser to work
You might consider looking atht e fbxp connector. It has authentication stuff build in.
But you may be too pressed for time for that.
At least it's an example of how someone else is doing it... I've found sometimes that's worth quite a bit.
Speaking of, I found a gmail-ish live spell-check! Hacking it up to fit fckeditor is not going to be easy tho. But it is fun as hell. And now I know how to set it up so we can plug in different spellers... XML! Wow, huh? =-)
Well wishes!