All buttons disabled except Refresh, List, Info and Help
Added by Henry Houdmont 5 months ago
Hi,
I've been trying to get CKEditor and FCKEditor and TinyMCE to work but no luck at all.
Then I found elRTE and was able to setup elRTE editor in a couple of minutes and the file manager was able to show the pictures almost instantly.
Although this is great, I still can't upload files.
When I get into the elFinder popup window, all buttons are disabled except "Refresh", "Info", "Show as List" and "Help".
I haven't disabled anything, everything's still pretty standard. How can I solve this?
In the script tag on my page I used the following code to initialize elFinder and elRTE:
var opts = {
lang : 'en',
styleWithCSS : false,
toolbar : 'maxi',
fmAllow : true,
fmOpen : function(callback){
$('<div id="myelfinder" />').elfinder({
url : '../js/elfinder-1.2/connectors/php/connector.php',
lang : 'en',
dialog : { width : 900, modal : true, title : 'Files' }, // open in dialog window
closeOnEditorCallback : true, // close after file select
editorCallback : callback // pass callback to file manager
})
}
}
// create editor
$('.elrteditor').elrte(opts);
In my connector.php file I have the following config:
$opts = array(
'root' => '../../../uploads/images', // path to root directory
'URL' => 'http://localhost/uploads/images/', // root directory URL
'rootAlias' => 'Home', // display this instead of root directory name
'uploadAllow' => array('images/*'),
'uploadDeny' => array('txt'),
'uploadOrder' => 'deny,allow',
'dotFiles' => false, // display dot files
'tmbDir' => '_tmb', // directory name for image thumbnails. Set to "" to avoid thumbnails generation
'defaults' => array( // default permisions
'read' => true,
'write' => true,
'rm' => true
),
);
Thanks for your time!
Replies (2)
RE: All buttons disabled except Refresh, List, Info and Help
-
Added by Troex Nevelin 5 months ago
You say buttons are disabled, but are still able to browse your files and directories? Look like you have a permission problem on server.
RE: All buttons disabled except Refresh, List, Info and Help
-
Added by Henry Houdmont 5 months ago
Thanks, that was indeed the problem. I was convinced the permissions were set correctly but apparently they changed in the whole process. Everything seems to work perfectly now.
If I come across anything else I'll come back ;)
Thanks you very much!
(1-2/2)