1

Topic: mcimage-/mcfile- manager, mc_access file question

Hello,

I'm not sure where to post these questions, I have searched the forums but I haven't found a good answer.

I have mcimagemanager and mcfilemanager. They both work great.

1. Issue:
I found a bug(??) when I use filemanager/imagemanager in an Iframe: when I'm in image- or filemanager (in an Iframe) and I click on the button to switch to image or filemanger the iframe goes 100% [ link: javascript:execFileCommand('imagemanager'); ] .
When I'm using the managers with tiny_mce it's works ok (the managers open in a new window).

2. Question:
My filemanager root ($mcFileManagerConfig['filesystem.rootpath']) is  '/var/www/html/images/'
This is also the imagemanager rootpath.

In images folder I have 3 subfolders: news, gallery, agenda (and icons, but this folder will not be used by tiny).
Gallery has a thumbs subfolder.

For news and agenda I don't need to have thumbs on upload, for gallery I do.
I was planning to use mc_access file in all folders (except images/gallery/thumbs) to specify the thumbs options.

Is this a correct way to accomplish this?
Should I otherwise use a custom php class (check URL -> set thumb vars)?

Tnx.

2

Re: mcimage-/mcfile- manager, mc_access file question

1) If you replace top.location.href = url; to parent.location.href in frameset.php in the filemanager it should only switch the iframe and not the root document.

2) Yes, mc_access files sounds like they would work fine for your needs. Remembed to place one in the root too so that the users can't remove or add directories at root level. Custom auth classes should only be used if they are realy needed but it gives total control over this.

Best regards,
Spocke - Main developer of TinyMCE

3

Re: mcimage-/mcfile- manager, mc_access file question

1) Do you mean frameset.tpl.php? I found switchToImageManager function there, but changing top.location.href = url; to parent.location.href; doesnt do anything (it 'kills' the button)

2) I was experimenting with ms_access file and for some reason it doesnt work as I thought:
For example: it shows various upload sizes, but it stills makes thumbs in all subfolders (even with thumbnail.gd.auto_generate=false in mc_access).

I suspect the full config.php. I will make a minimal config.php (with shared vars) and add needed thumb vars in mc_access.