The integration with the Moxiecode's imagemanager is broken.
Have a look at their wiki on how to integrate it:
http://wiki.moxiecode.com/index.php/MCImageManager:Drupal

Thanks, Joep

Comments

rkendall’s picture

- subscribe -
(thanks for the link)

Bodo Maass’s picture

StatusFileSize
new762 bytes

Version 2 of the MCImageManager plugin is working fine on Drupal5.7 with TinyMCE module 5.x-1.9 and TinyMCE 2.1.3. If you want to put your modules into /sites/all/modules instead of /modules, you have to adjust the relative paths in tinymce\tinymce\jscripts\tiny_mce\plugins\imagemanager\classes\Authenticators\DrupalAuthenticatorImpl.php (see attached patch).

Unfortunately, version 3 of the MCImagemanager is not working yet, and my attempts to get it to work have been unsuccessful so far.

Anonymous’s picture

I got version 3 working but with a lot of manual tweaking and configuration changes.
Out of the box it does not work, that is for sure.

Bodo Maass’s picture

Hi JoepH,
Would you mind to share how you got version 3 to work? I'm sure that knowledge would help a lot of people and would be greatly appreciated.

Bodo Maass’s picture

StatusFileSize
new2.46 KB
new8.38 KB

Now that I knew it was definitely possible, I gave it another try and I also got ImageManager 3 to work (with Drupal 5.7, tinymce.module 5.x-1.9 and TinyMCE 2.1.3). Following the instructions on http://wiki.moxiecode.com/index.php/MCImageManager:Drupal does actually work, it just needs attention to detail to do everything correctly.
One step there that is not described fully is that you have to add MCImageManage PHP to the list of plugins in the Drupal TinyMCE profile.

I attached my imagemanager/config.php file for those who want to try this. The base path is set to root/images, assuming the the imagemanager is located in the "\sites\all\modules\tinymce\includes\jscripts\tiny_mce\plugins" folder.

I also had to comment out all references to imagemanager in tinymce.module (see attached patch). The permissions should now be handled by the authenticator module. I haven't played with non-admin users to check if the permissions are fully working, but I'll do that soon.

thierry.beeckmans’s picture

I don't have the authenticator in the imagemanager classes.
Is this still needed an/or can we pass by path data through that way?

I'd like to realize something like http://drupal.org/node/57339 in order to have per-user directories.
I already added some code as given on the other page, but this leaves me with problems.

Bodo Maass’s picture

thierry.beeckmans,
if you are talking about imagemanager3, you need to comment out line 16 of drupal_auth.php to get per-user directories (assuming that you have installed imagemanager3 as described on the moxiecode wiki page).
Did you try this?

Logi-1’s picture

Hi,

I've also been trying to get imagemanager 3 to work on Drupal 5. Bodo has made good effort on this and been successful. Two questions for him:

Did you not install the module in the usual place (\modules\tinymce)? I've got exactly the same setup as you (well, using Drupal 5.6) and I did everything you did, I think. I might be misunderstanding that one thing. I just don't get why we need to use \sites\all\modules at all.

What about DrupalAuthenticatorImpl.php? Did you change that for version 3 also? The paths are different it seems. For version 2 you seem to be using: tinymce\tinymce\jscripts\tiny_mce\plugins\imagemanager and for version 3 it's tinymce\includes\jscripts\tiny_mce\plugins (note: includes folder now). TinyMCE has three plugin folders and if I put the plugin into the folder you suggested for version three is never shows up in the plugin list inside Drupal. But if I put it into the one suggested for version 2 it shows up and I can select it but in never runs - the toolbar for Tiny just disappears.

Please help if you can, I'm kinda lost.

best regards, Logi

Bodo Maass’s picture

StatusFileSize
new45.51 KB
new8.38 KB

Hi Logi,

For drupal 5 it is recommended to separate contributed modules from core modules and put the contributed modules into sites/all/modules. I've recently switched to this structure and it does actually make it easier to upgrade the contrib modules without touching the core and vice versa.

By now I'm running TinyMCE 3.0.5 with Drupal 5.7 and a patched tinymce.module 5.x-1.9. To get the imagemanager to work, you need to use drupal_auth.php and put it in the root of your drupal folder, as described on the moxiecode wiki page. DrupalAuthenticator.impl is not used with ImageManager 3.

By the way, TinyMCE 3.x does work in Drupal, but at this point only without the compressor.

For reference, here are the two files that I have customized: sites\all\modules\tinymce\tinymce\jscripts\tiny_mce\plugins\imagemanager\config.php and sites\all\modules\tinymce\tinymce.module.

Good luck,
Bodo

dkmenace’s picture

Version: 5.x-1.9-1 » 6.x-1.x-dev

Does this work with Drupal 6.x?

peng100’s picture

StatusFileSize
new8.62 KB
new44.56 KB

Hi,

I've also been trying to get imagemanager 3 to work on Drupal 5. but it does not work. please help me?

I can see the "MCImageManager PHP" option on page "admin/settings/tinymce/edit/default"
And my install directory must be: "sites\all\modules\tinymce\tinymce\jscripts\tiny_mce\plugins\imagemanager"

and my using code:
tinyMCE.init({.....plugins : "advlink,autosave,contextmenu,media,paste,print,searchreplace,spellchecker,smimage,imagemanager,safari",....... });

Good luck

nicoloye’s picture

Issue summary: View changes
Status: Active » Closed (outdated)