Webmaster Note: this post was originally written in 2006. IMCE is still around, but it integrates with other WYSIWYG and media handling projects. Please look at the WYSIWYG API for D6, and at the work done with the Media module for D7. Much of the content in this thread is out of date - End Note.

See IMCE project page for updated info

i want to share a module that i use for uploading images with tinymce. it's a very lightweight module working with 4.7.x.
Features:
- doesnt require any other image related modules since image handling is minimal. no image nodes. no thumbnail creation.
- allows only .jpg, .png, and .gif formats.
- upload, list, view and delete images.
- uploads images to personal directories. (system_file_directory/u.userid)
- configurable upload limits: Filesize per upload(default:100kb), image dimensions(default:500x500), total quota per user(default:500kb).
- upload and administer permissions for user roles. administer permission removes upload limits.
- detects tinymce action and automatically throws necessary .js to activate image browser. it uses tinymce's "file_browser_callback" setting to be activated in tinymce's image popup window. By this method, nothing needs to be done in order to use the module except enabling the module in modules page.

Installation:
- download imce.module
- extract to modules directory.(files should be in modules/imce)
- go to admin/modules page and activate imce.
- to change default settings go to admin/settings/imce

after activating the module you should see the browse icon in tinymce's image popup window. Click it and upload images. you can view images in the list by clicking rows. you can add path and dimension information to tinymce's popup by clicking the add link or the image in preview area. here's a screenshot of working module from my local site.

Comments

eagereyes’s picture

Great stuff! Simple and useful, I love it. Just one thing: Would it be hard to use the username for the directory, instead of u<userid>?

Edit: Actually, I just hacked it to just use a static directory, which works better for my purposes anyway. It would be nice to be able to configure the path, e.g., like pathauto, where you could enter a static path, or one with placeholders like [user], [uid], etc.

blalond’s picture

I think that imce works a lot easier than img_assist for the main reason that imce is easier to get up and running. Thanks ufku. Any plans to get this into the contributed modules section on this website?

I too figured out the hack that eagereyes applied. This allows you to have all users (in my case, it's just the "editors" that I'm allowing to add images anyway) work out of a static directory (in this case it's files/images).

//old line (lines 46 and 66 in imce.module):    
$dir = file_directory_path().'/u'.$user->uid;
//new line (lines 46 and 66 in imce.module):
  $dir = file_directory_path().'/images';

Thanks again!

cnburnett’s picture

New location for project... http://drupal.org/project/imce

ALPH’s picture

Just one word :
exactly what I expect from an image uploader.
Thanks

asdasd08’s picture

www.resimupload ücretsiz resim upload servisi.free image upload service.

joemoraca’s picture

It was just what I was looking for ... my latest client is totally not interested in any "geeky" stuff just wants to type blog posts and add pictures.

Thanks

Joe Moraca
http://www.moraca.org

ufku’s picture

thanks for the comments.

eagereyes; i think username is not very reliable for personal folder names since users may be allowed to change their names. some flexibility can be added for the "u" part. but ID is indispensible for differentiating the folders.
and the static folder issue; at first sight, making it optional doesnt seem to be a big deal. I didnt think about this thoroughly, but using a shared folder will probably require a delete permission to prevent misusage.
ok, i'll look into these issues.

blalond; about drupal module conribution. first i should have enough free time and then learn how to contribute and then i can do it :)

eagereyes’s picture

I didn't really think this through. I guess if you choose one (global) folder, nobody (except user 1) would be allowed to delete or overwrite anything, otherwise you could do all kinds of code insertion by just replacing an image with some php code or something similar (not sure if that would really work, but I recently read something about cross-site scripting, and now I'm getting paranoid). My site only has one editor for the time being, so I was really only thinking of myself. This might not be practical for a true multi-user environment.

But don't get me wrong, I've been using your module since I found it, and can't imagine living without it anymore. ;)

Adam Messinger’s picture

I'm no security expert, but I think the XSS issue is addressed by the restrictions on which file types can be uploaded.

Leave the "Non-image file support" field blank, and only image files are supported by the module. If you add other extensions, just make sure .php isn't one of them.

Can anybody back up my assumptions on this?

jbjaaz’s picture

Is the site temporarily down, or has this "module" been undownloadable for awhile? I really really hope not.

~John

eagereyes’s picture

I just tried it, and had no problems downloading the file. Send me a message and I'll email it to you if you can't get through to the server.

jbjaaz’s picture

I just tried it again... it was temporarily down. I should of been more patient :-)

~John

jbjaaz’s picture

This module is exactly what I was looking for. I've been struggling most of this morning trying to get image && image_assist to work. They worked, but the UI was just horrible. Plus creating an image as a node just doesn't seem right.

What would be really cool is if you made a clone of this module for file uploading and selection. I quickly looked through imce.module to see if there was a way to make it hook into the Insert/Edit Link dialogue, but I'm a drupal newbie and haven't yet dived into the world of creating modules.

Absolute awesome job!

~John

ufku’s picture

i have some hosting problems nowadays. the file may not be avaliable time to time. sorry for that.
anyway i decided to contribute to drupal modules. as soon as i finish reading the contributers guide i'll apply for a cvs account. than the module will probably be avaliable at project pages.

jbjaaz; if you want to enable link browser. just delete the line
if (type!='image') return;//work for only images
in imce_set.js file. imce can work as a file browser too. but not supporting files other than images. Extending imce as a file uploader... ummm... lets say simple is better for now :)

jbjaaz’s picture

I agree it would make imce rather complicated. Thats why I suggested making a second module which was strictly for file uploading.

~John

jeffleeismyhero’s picture

I am also not able to download this file. Please email it to me at jeff@fireball3d.com.

I can also re-host it if you want.

JonathanDStopchick’s picture

100% pure awesome in a nice little package. This module is true to the way modules should be. Simple, efficient, compatible!

.o.oOo.o.

Me I'm dishonest, and a dishonest man you can always trust to be dishonest. Honestly it's the honest ones you have to watch out for, you never can predict if they're going to do something incredibly stupid. -Jack Sparrow

bonobo’s picture

This module ROCKS!

It integrates cleanly with TinyMCE, and it makes sense to use. Very nice work.

Cheers,

Bill

-------
http://www.funnymonkey.com
Tools for Teachers

elv’s picture

It works, it's quite simple.
I'm not sure about the storage in different user folders though. It could be an option, in case you need several people to be editors of the website, and have a common image repository.

ufku’s picture

fnally in projects!
http://drupal.org/project/imce

differences from this unofficial release:

- added configurable prefix for personal directory names. default is "u".
- added support for a common(shared) directory( to be used instead of personal directories) for all users. it can be activated in the configuration page.
- user permissions changed: view files, upload files, delete files, limitless upload.
- added non-image file uploading/browsing support that can be activated by defining allowed extensions in configuration page.

if you upgrade you'll only need to assign new permissions to user roles. no other configuration chages required.

jeffleeismyhero’s picture

Excellent module. This will allow my users to maintain their own sites easier than before.

publishing’s picture

Hello All,

Ufku, thank u for the imce module. Got everything installed including tinymce which can be a bit tricky. However, when going to image icon, in tinymce, then clicking "browse" button, I get the below error messg, instead of being redirected to say, my local directory where an image may be selected for upload:

======
Warning: Invalid argument supplied for foreach() in /home/bfnnetwo/public_html/drupal/modules/imce/imce.module on line 73
======

Has anyone experienced this????? -- thank u in advance for your help.

ufku’s picture

most probably the directory of your choice (personal or shared) is not accessible(not exists or not readable). try changing the directory name(if you use a shared folder) or prefix(if you use personal folders) in settings page. check(by ftp) if drupal creates the directory you want. (note: the directory is created after you run imce.)

publishing’s picture

Ukfu,

Thank u for your time and reply. As a news site whereby there are multiple contributors and syndicated content, I thought it more appropriate for us to utilize a shared directory as opposed to each contributor having a personal directory.

As such, I utilized the "files/images" directory format (files permission 777-files/images permission 777) in my imce settings which is similar to the format utilized by Drupal/ftp ---- I just thought that since Drupal (image.module) already recognized this format, that I would continue to utilize even though at the same time, I discontinued the utilization of the image.module. Imce seemed to provide users with some leeway to establish personal/shared directory, so it was my thinking that the files/images setting would be ok.

"the directory is created after u run imce" ----- I do not really understand this process, could u expound a bit? If the directory is created after imce is run, does this mean that the field in imce settings, can be left blank???

Please advise and again thank u for your time and reply,

publishing’s picture

Ukfu,

I was jus thinking that maybe I have acted to make a simple module complicated. Maybe instead of utilizing a imce directory setting of files/images, I should of maybe just used files or images, singularly.

Would this make a diffence in terms of the invalid argument ???

Thanking u in advance for your time and reply,

ufku’s picture

imce first gets the shared folder. if it is not declared it uses personal folders. these folders are relative to your files directory(to use "files/images", just enter "images").
"the directory is created after u run imce" ; when you click the browse button, imce creates the directory if it isnt there.

in your case, a folder with permission 777 wouldnt be a problem. what about the chmod of image files in that folder? are they accessible by php?

publishing’s picture

Ufku,

In my case, I had entered files/images in imce @ "use a shared folder" and images @ personal folder.

have updated my settings to: personal folders = blank; use shared folders= images

I WILL ATTEMPTED TO UPLOAD AN IMAGE WITH NEW SETTINGS AND CHECK RESULT. I am sooooooooo anxious to use this most wonderful module.

chmod? is this the same as changing permissions? permissions for image files, within, file folder is also set @ 777. Should I be looking in another area for chmod settings? -- please advise.

Really appreciate your assistance -- thank U!!!.

ufku’s picture

chmod=permissions. permissions can be set for every single file. previously created files may not be accessible even if your folder is 777. drupal and imce set chmod 664 for uploaded files to make them accessible for everyone.

publishing’s picture

ufku ---Mucho, Mucho Gracious (thank u very, very much!!!! :)

publishing’s picture

Hello All,

Just wanted to report back. Image upload with imce module worked like a charm once I set "shared directory to "images", instead of, files/images. Since the shared directory is already set relative to the files directory, only the input of "images" was necessary.

Ufku really did a nice job with this module(thank u Ufku!!!!). It was as if he really designed it with the user in mind --- simple and straight forward----. Perhaps IMCE module, in conjunction with Tinymce as an editor, could/should be made part of Drupal core as the core package really should be accompanied by an image tool to really complete it as a basic CMS. The Drupal core install beginning with 4.7,IMHO, is really smooth and becoming better all the time.

Only one word of note: While the imce module is simple, it works in conjunction with and requires the tinymce module, which itself requires installation of the tinymce engine(not included with contributed Drupal, tinymce module). The installation of the tinymce module, in conjunction with the tinymce engine is detailed oriented and the install instructions should be followed closely and carefully ---- it is not hard!!!! you just should follow instructions closely and carefully as depositing the right files/file folders into the right directories is important, and makes the difference(I installed twice before I got it right--I had placed the engine too deep into the module/tinymce directory).

Hint: Generally, when I extract a zip, I extract to my desktop instead of directly to modules for instance. In this process, I will generally create a new folder on my desk top to extract the zip to. Well, this really creates an extra folder for which the extracted folder is actually extracted to. Just make sure when you upload (ftp is best) the folder to your modules that u upload the actual and whole tinymce folder and/or tinymce engine folder's respectively, into the correct directories.

Ranajee’s picture

It's really a nice work. Very Helpful module

For the Basic Users It is really helpful to give them interface instead of physical work.

syedasad’s picture

When we are developing a site for a community of users, you want to keep it simple so that they can upload/edit their post with a minimum of complexity or fuss.

I think this module accomplishes that.

Thank you for such a great module.

larss’s picture

Hi there,

I just installed IMCE but I don't get the "browse" button in the TINYMCE image pop-up window.

Any help appreciated.

Thanks!!

JonathanDStopchick’s picture

Did you remember to turn access control for your chosen user on for the imce module?

.o.oOo.o.

Me I'm dishonest, and a dishonest man you can always trust to be dishonest. Honestly it's the honest ones you have to watch out for, you never can predict if they're going to do something incredibly stupid. -Jack Sparrow

syedasad’s picture

Just wanted to discuss the future direction of IMCE. My 2 cents

http://drupal.org/node/79932

I am also pasting it here, so that the whole discussion here is in context.

-------------------------------------------------------------------------------------------------
It will be really useful if users are given the facility to create/delete/organize their files using folders. Just imagine, over a period of time, each user may have hundreds of images, all in one folder. That would be difficult to navigate eventually. So I think, folder management will be great.
Updates
#1 submitted by ufku on August 22, 2006 - 15:15

These kind of features will lead imce to be a comlete file manager. Actually i think that imce shouldnt be a fat full-featured file browser. or should it?
#2 submitted by syedasad on August 23, 2006 - 00:28

I am just thinking from the perspective of an end user. It doesn't matter how one implements it, but as far as the user is concerned, he/she is just able to maintain his own files in a folder hierarchy, navigate using a file manager interface and then insert the image.

This simplifies things for him/her.

Secondly, I am thinking of a point in time, when each user has hundreds if not thousands of images. He/She will need a way to organize all those. This module will be a victim of its own success if it does not scale up and provide a method to organize huge amount of files.

File manager features allows it to scale to handle any number of files.
#3 submitted by syedasad on August 23, 2006 - 21:09 updated

I had been thinking about this a lot. Finally, what you said in your first comment made sense. It's better to create a completely new module which only does file management.

Does drupal have one? At least not that I am aware of and if yes, could it be seamlessly integrated with IMCE for browsing folders of images?

In fact, the TinyMCE project has 2 such plugins

1. MCFileManager (http://tinymce.moxiecode.com/paypal/item_filemanager.php)
2. MCImageManager (http://tinymce.moxiecode.com/paypal/item_imagemanager.php)

We seem to have a McDrupalImageManager now. :)

What we need now.....
1. We need a generic file manager module and
2. Integrated with IMCE

---------------------------------------------------------------------------

brenda003’s picture

This is not possible now, is it? That's unfortunate, as it seems to be a necessity right now. How difficult would this type of feature be?

sketch1’s picture

have they come up with a user folder creation module yet so that users can organize there own files? if so please let me know what it is

larrynichols’s picture

I have the same problem. I've installed, activated and configured the module, and set the access control, but no browse button appears in the image popup in tinymce. Is anyone else having this problem? I've tried it on different browsers, and tried clearing the cache. Pretty sure I have the most recent version of imce, and am running tinymce for 4.7. Can't figure out what else to try.

ufku’s picture

make sure you dont have any other image browser plugins like ibrowser. make sure you dont have plugin names as "imagemanager" or "filemanager". these are tinymces default browsers. and imce doesnt replace them if they are active in order to prevent conflicts.

Scolo’s picture

I can't see the browse icon in image or link popup of tinymce. I followed the steps in install.txt. Tried earlier versions of TinyMCE. Tried FF and IE browsers. I've tried a new install of drupal 4.7.3, without any other plugins or modules, the icon just won't show up.. What to do?

ufku’s picture

are you using xtemplate?

Scolo’s picture

Okay i found the problem. With bluemarine theme it's working, but with the ADC theme its not.. its the same engine: phptemplate. There are two .js files in adc theme, maybe it has conflict with the theme's js?

ufku’s picture

do you see any javascript error with the other theme? if not, do you see imce_set.js is present in the source code?
why i asked about xtemplate is that imce_set.js is never added to the page becouse xtemplate calls header/footer functions in different order. i fixed this in cvs version.

Scolo’s picture

No JS errors, but imce_set.js is missing from the source. I've installed the CVS version, same problem.

ufku’s picture

make sure you have the $closure variable in your page.tpl.php file. it contains the html that footer hook returns.

larrynichols’s picture

My java console shows a variety of "Unknown property" errors pertaining to the editor_content.css in my tinymce/tinymce/jscripts/tiny_mce/themes/advanced/css folder. I have no idea what this means. I'm a bit lost. My theme is chameleon. Anyone come up with any solutions for this?

Rob T’s picture

I use a modified version of Aqua-soft. Sure enough, the closure statement wasn't in the page.tpl.php file. Once I added it, the browse button appeared.

Thanks.

drea-1’s picture

Can you copy the exact code we should put in that file, and where we should put it?

Thanks,
Andrea

hsfdrupal’s picture

I've been using the ADC theme and I also don't see the IMCE browse button. Has anyone identified the problem? It looks like the template has the call to closure. . .

Thx,

-Bob

veeaa’s picture

Images do not show in Image Preview window and on page, only image frame. Path is correct and I have checked the restrictions, they should be adequate: upload and imce: image size 2000x2000 pixels etc...
I do not have any other image modules.

GiorgosK’s picture

Check to see that the input format for the node allows images or does it
strip them away,
Filtered HTML for example by default does not allow img tags
Full HTML on the other hand does

(FYI: Its a generic setting it has nothing to do with tinyMCE or IMCE)
--
Chios Greece sightseeings

------
GiorgosK
Web Development

gargsuchi’s picture

This is an excellent module - does exactly what i need - except for one issue.
My site takes in articles from anonymous users - and they need to upload images accordingly. Now - i dont want them to see all the images. Is it possible to change the module a bit so that there is no image browser - just an "Upload" Button instead of the browse button on the default tinyMCE image pop up.

elv’s picture

If you users always upload new images, and never use existing ones, you could have a look at inline module.
They upload images like any other atached file, but you can choose to display images automatically in the content.

mejmo’s picture

I've already posted this in development thread but one more time :)

When the dimensions of an image are larger than allowed values and Scale if necessary is checked, it gives me an error Error scaling image. Do you know where would be a problem ?

Even though, I think this module really rocks ! Img_assist was quite complicated for lame user, this is simple, robust, useful, ... Thanks buddy

fronbow’s picture

Just agreeing with everyone else! This is a better module than img_assist. (I've been having trouble with img_assist not cooperating with tinymce so finding this was a bonus)

And it's brilliant. Cheers for writing+releasing it!

drupalluver’s picture

I just installed this program to my drupal and couldn't find the browser button in tiny mce.

Based on a comment above, I changed the theme to bluemarine and it showed up!

But it wouldn't show up in chameleon or marvin. I really wish to use the marvin theme. Is there anything that I can do?

Thank you.

ufku’s picture

you should have closure in your theme. it is inserted in different ways. some themes use theme_closure() function directly, and some use $closure varible. almost all themes including marvin and chameleon have the closure by default. if it's not there add 'theme_closure()' just before the body closing tag.

drupalluver’s picture

Thank you for your reply. I looked for a page.tpl.php but it didn't exist. I did find default.tpl.php and added the closure line that you recommended.

Unfortunately, it didn't fix the problem. Do you have any other suggestions?

ufku’s picture

theme file for chameleon is chameleon.theme

larrynichols’s picture

Don't know how much use this will be, or if it just goes without saying, but run try running update.php if the browse button isn't showing up. I'm using chameleon too, and nothing else would get imce working. Maybe the system thinks it's an update for tinymce. I've since installed it on three sites, with the same result each time. It doesn't work at all until I run the update, and then it works perfectly. Sorry again if this is obvious stuff. Just didn't see it mentioned above so I thought I'd throw it out there.

btw, i didn't need to do anything with the theme file or the closure line.

drupalluver’s picture

I tried adding the closure line to chameleon.theme as well as running update.php

Neither are working for me under chameleon or marvin themes.

ufku’s picture

strange! my chameleon works fine. if you are not using latest version download it from project page. otherwise, if including imce_set.js in every single page doesnt bother you, include it manually in your theme using the correct path.

publishing’s picture

ufku, first off, thank u for your interest, time, effort and the 'can do spirit' in putting together the imce module. It is an absolute blessing for many.

Just to be certain as to the correct version of imce, is the 4.7 version or the cvs version dated 8/30/06 the correct and most updated version of the imce module which users should be using at this time?

Please advise

Thanks again,

Please put this on your chest: (SH) --- You are our SuperHero!

ufku’s picture

cvs is 4.7.x + some extra features (file sorting, higlighting of new files, scaling of big images) + a fix for xtemplate + a fix for view permission. i'm using the old 4.7 version and had none of the problems that users reported. It's about user's server, themes, etc. I'm trying to make imce work with as many configurations as possible. Therefore, your feedbacks are valuable. If you have problems with 4.7 you can safely try cvs version which has a few fixes for some configuration differences.
thanks.

Christefano-oldaccount’s picture

I was a little confused by the odd timestamps on the project page, but I downloaded and installed the CVS version anyway. The browse button is back. Thanks!

Ashford’s picture

Below is the error I get and the section of the imce.module it references. I am using the CivicSpace theme (phptemplate theme engine).

One more question. Do I need to create a new database table or field for the user_id and image relationship?

Fatal error: Call to undefined function: drupal_add_js() in /home/www/path/to/docs/modules/imce/imce.module on line 19

/**
* Implementation of hook_footer().
*/
function imce_footer() {//set imce if tinymce is in action
if (strpos(drupal_set_html_head(), 'tinyMCE.init') && user_access('view files')) {
drupal_add_js(drupal_get_path('module', 'imce').'/imce_set.js');
}
}

ufku’s picture

imce doesnt work with versions before 4.7

publishing’s picture

The Imce module is sweet! Thanks again, ufku --- I have experienced the below error upon going to -- admin/settings/imce --- configuring, then pressing enter key. Has anyone experienced this error? -- what is the corrective solution?

Please advise ---

Thanking all in advance for your reply.

=======error below=====
Warning: Duplicate entry '190' for key 1 query: INSERT INTO menu (mid, pid, path, title, description, weight, type) VALUES (190, 11, 'admin/settings/imce', 'imce', '', 0, 22) in /home/bfnnetwo/public_html/drupal/includes/database.mysql.inc on line 120

ufku’s picture

do you experience the same problem with other admin/settings/module pages?

publishing’s picture

ufku, I have not experienced any problems currently, but yes, along the way, I have seen a similar issue with a few other modules. While not always the same, it is usually the result of a specific issue with scripts and/or settings which cause a conflict, and thus the error messg. The issues are not always the same. However, I have found that the specific issues are generally experience by multiple users. Thus, I have reached out to ascertain if any have had the same problem.

Everything else re the imce module and its installation seems to have gone smoothly. Have this issue sort of keeps u from confirming the initial settings for the module. For instance, when u go to save the imce settings, the below error messg is returned:

=====
Warning: Duplicate entry '194' for key 1 query: INSERT INTO menu (mid, pid, path, title, description, weight, type) VALUES (194, 11, 'admin/settings/imce', 'imce', '', 0, 22) in /home/bfnnetwo/public_html/drupal/includes/database.mysql.inc on line 120

Warning: Cannot modify header information - headers already sent by (output started at /home/bfnnetwo/public_html/drupal/includes/database.mysql.inc:120) in /home/bfnnetwo/public_html/drupal/includes/common.inc on line 266
=====

As always, I appreciate any information on this matter that anyone has.

Thanks,

Ashford’s picture

No idea if that is the cause of your errors, but here's a Documentation link for you.

http://drupal.org/upgrade/do-i-upgrade-the-db

publishing’s picture

Ash, Thank u for the link. I actually did/have run the update.php script, yet the error still displays. I will have a look at the link as a chance to really get clear on the whole update.php process. I am 8 months deep into the Drupal process, starting as a new, and I have come a long, long, long way.

Again, thank u for your time, interest and reply.

publishing’s picture

First off, while the duplicate error could be caused by the imce module, it is an error which can and does involve any module in relationship with its database table, in conjunction with the specific module's id sequence # located in the sequences table in the database.

The explaination of the problem is straight forward and the solution to adjust is fairly simple. Both can be found at: drupal.org/node/69722.

How this helps someone get over a small speed bump, smoothly and quickly.

Ashford’s picture

Civicspace 0.8.5
----------------------------
- Includes Drupal patches from 4.6.8

I downloaded CivicSpace as a package. My understanding was it is the basic Drupal program with the recommended modules for a community web site. What do I need to upgrade to keep all the current modules working and use imce?

publishing’s picture

Ash,

Just to add Imce to your base 4.6.8 install, you will need to install tinymce.module which is a contributed module. Also, you will need to install the tinymce engine (this is a separate product from the tinymce.module) which u can/will find information as to location in the tinymce install/readme file.

regarding installing the tinymce engine, please pay careful attention to the install of the, tinymce engine plugin, "Drupalimage directory", as it was initially installed in the wrong folder ---- don't be intimidated with this, just follow the instructions. it is just a matter of uploading the "Drupalimage" directory to the correct folder.

Also, FYI, the Imce module on ly works with Drupal 4.7 or higher. I would recommend if you are only doing a basic Drupal install, with not many contributed modules to load, that u consider a fresh 4.7 install. If not, you will have to make use of some of the other image modules, which I have personally found very difficult to get functioning properly.

the_goose’s picture

hey guys,

this sounds like that what i am lookin for ;-)
is there a way to integrate the module in the TinyMCE without using Drupal? i use the editor for my own CMS and need this file browsing module very irgent!

thanks in advance to all of u

whatistocome’s picture

"after activating the module you should see the browse icon in tinymce's image popup window."

how do I access TincyMCE's image popup window?!? I don't have an option to turn it on in admin/settings/tinymce" -> "button and plugins". Is it another module I have to download from moxie/3rd party/drupal.org?

- Jason

JonathanDStopchick’s picture

It should be automatic, do you have a populblocker on?

.o.oOo.o.

Me I'm dishonest, and a dishonest man you can always trust to be dishonest. Honestly it's the honest ones you have to watch out for, you never can predict if they're going to do something incredibly stupid. -Jack Sparrow

whatistocome’s picture

I don't have an image button on my TinyMCE toolbar when editing a text box. Is "advimage" the image plugin I should be using that comes with TinyMCE? If so, I can't get that to show; even after enabling it in /admin/settings/tinymce. If it is this module, please share your lines in plugin_reg.php to get this working (and any other steps necessary), if it's a different module/steps, please share.

ufku’s picture

you dont need advanced image plugin.
in your tinymce profile page, there should be an image button under "buttons and plugins" section.
note: tinymce simple theme does not show this button.

whatistocome’s picture

man, i knew i was missing something that everyone else has with no problem. a clean re-install of tincymce/tinymce module gave me the image icon plus fixed A LOT of other little issues I've been having with TinyMCE for months.

So, now that I've used imce module, I can add to the chorus - bravo to ufku - it's perfect in it's usage and simplicity - it just works. i've finally found my drupal image solution i've been looking for.

- Jason

marafa’s picture

hi
i was hoping someone could tell me what themes are "imce safe themes"

i know bluemarine is, but what else?

__________
http://namima.in-egypt.net اجدد اخبار ممثلين

http://www.echognumix.com

zeeman’s picture

A small but perfect imageuploader.
Great!

Thanks

ufku’s picture

recently, imce has been announced to have some security vulnerabilities. especially if you give delete permission to someone who you may not trust, you should download the 4.7 version from project page
CVS versions before $Id: imce.module,v 1.6 2006/09/29 13:50:57 ufku Exp $ are vulnerable.

--
ufku
Geneticists from METU

scillyguy’s picture

I get the following error on clicking the browse/insert icon in IMCE

warning: getimagesize(): Read error! in /home/parry/public_html/drupal/modules/imce/imce.module on line 243.

Could anyone advise why I might be getting this error, please.
Thanks

ufku’s picture

If accessing the image is impossible, or if it isn't a valid picture, getimagesize() will return NULL and generate a warning.
if the image is uploaded by drupal/imce there wouldnt be any problem regarding access permissions.

--
ufku
Geneticists from METU

scillyguy’s picture

Hi Ukfu
I can access the image even though i get the error message and indeed it appears in the tinymce text area but it doesn't appear in the published page/story. I'd really like to sort this out as I think the imce module is ideal for what I need (good work ufku).
Look forward to your reply. Thanx.

ufku’s picture

this is generally due to input formats. check yours if it allows img tags.

--
ufku
Geneticists from METU

ufku’s picture

j0k3z’s picture

How can I use this module in additon to setting up user galleries on my website?

I want each user to be able to organize photos in their own personal galllery and also be able to easily insert those images into blog posts/forums topics. This module seems to do the latter but is there a way to get it to share images that are in their gallery?

Please help, im so confused.

PhilipReed’s picture

I'm getting this upon install:

Fatal error: Call to undefined function: drupal_get_token() in /drupal-4.7.3/modules/imce/imce.module on line 71

Did I miss a step in installation?

--

http://philipreedtech.com

ufku’s picture

redownload the module please.

--
Geneticists from METU

publishing’s picture

Hello ufku,

I have the imce module in place and operating and have recently installed the video module which states that the image module must be installed as well in order for the video module to function.

My ? is: are u aware if the image capabilities of imce can work in the place of the image module for this function. My past experience with the image.module was not very successful. In fact, I aborted the install in favor of the much efficient and less time consumer imce module.

Please advise when u get a chance. Thanks again for imce module, it is so sweet.

ufku’s picture

imce has minimal image capabilities(resizing and image info) and this is not enough for video module. You can enable image.module and prefer not to use it. you may let only the video module or other image dependent modules use it.

--
Geneticists from METU

publishing’s picture

Enable it and not use it! Makes sense, I didn't think of this.

Thanks Ufku!

PhilipReed’s picture

Thanks. After I posted, I learned that this was a bug fix, apparently within 24 hours of my download.

Are there any plans to attach a version number to imce for easier reference?

Thanks,

Philip

http://philipreedtech.com

VM’s picture

there is a new project release module going to be incorporated into drupal.org which will open up and benefit the entire community. it may roll out with 5.0 from what i've read in the dev areas

PhilipReed’s picture

Ack! This error is recurring, same line number.

Now, I had the then-latest imce working and was testing it fairly heavily. I had missed the "limitless upload" access control setting, so the last thing I did before seeing this error recur was to UNCHECK that setting for a certain profile. Then, still logged in as admin (but I think with that same profile), I started getting a recurrence of this error. RECHECKING the setting doesn't appear to be fixing it either, nor does logging in as a user that I know has this profile I'm changing.

For all I know the setting could have nothing to do with it and something else salient changed in my configuration, but at any rate the access control / limitless upload was the last thing to have changed.

I'll hack away and see what I can find, but meanwhile any background info on drupal_get_token would be helpful. TIA.

http://philipreedtech.com

ufku’s picture

To state shortly, drupal_get_token is a security related function to make sure the user views a form before submitting it. it comes with 4.7.4 and wont work with previous releases. current version of imce doesnt use this function and works with all 4.7.x.

--
Geneticists from METU

Heine’s picture

One can always use:

if (function_exists('a_function')) {
  a_function($parameters)
}

--
The Manual | Troubleshooting FAQ | Tips for posting | How to report a security issue.

ssace’s picture

Well thanks to this thread I am straight.

My image browse button was not working in the Bluemarine theme...hehe (everything should work in that theme). It was not a theme problem.

Here's what I did:

1) added images folder to my files folder: /files/images (chmodded both to 777)
2) In IMCE settings, I left "personal folder names" blank; and set "use a shared folder" to: images
3) In TinyMCE settings - Buttons & Plugins section, I unchecked "Advanced Image". (For me everything else is checked)

Thanks again :)

spiney@linux.spiney.org’s picture

I've been using Drupal quite some time now, but one of the reasons why one of my installations is still running an ancient version (plus security updates) is that I had not found an alternative to the version of HTMLArea (plus some ImageManager extension) that I was using and hacked up to do something similar to the one-directory-per-user thing like this module does. Alas, my "hack" happened not to work with newer HTMLArea versions anymore (and lacking time I didn't update), and other solutions like image.module etc. were not to the taste of my users.

So thank you very much for providing me with an upgrade path. :)

ufku’s picture

the next version will introduce a small api like feature that will allow custom imce calls. if you open imce in any pop-up that has a name (window.open('imce/browse', 'popupName')), imce will search for your custom finishing function named as popupNameImceFinish and call it with parameters of image path, image width, image height, and imce window when the user clicks the add link. You will be able to do anything with these parameters in your custom function. This will make imce work with any wysiwyg editor or even with plain textareas(inline img or link insertion). tinymce, fckeditor and plain textarea support will be included as default.

--
Geneticists from METU

PhilipReed’s picture

From the above discussion about IMCE versus image module, I got the impression that IMCE doesn't really support resizing. If I'm misunderstanding, please correct my understanding.

I need to be able to upload an image and have it resized to some max. size while scaling. I have Gallery2 installed and I'm pretty sure if I dig around the code enough, I'll find a library that is of use -- any suggestions, Gallery users?

Also, it doesn't look like the settings for max height and width are being observed. I have only one profile and I logged in as the user with the profile assigned, so I don't think that's the issue. Should I expect it to complain and not let me do the upload? The settings are right there in plain view (I made them 20x20 to cause an obvious conflict) but the upload goes on without a hitch.

Thanks.

http://philipreedtech.com

ufku’s picture

imce will only resize an image to allowed dimensions if the dimensions exceed the limits. and also "enable resizing" option should be checked. next version will support both thumbnail creation and custom resizing of any image. i plan to make new features avaliable for 4.7 version before releasing 5.0

--
Geneticists from METU

Anonymous’s picture

Is there any way to insert an image with the full site URL? Reason for this is when I use TinyMCE and IMCE to create a newsletter the images will not show up unless it is an absolute URL.

Let me know when you get a chance.

ufku’s picture

there should be something about url conversion in tinymce documentation. since the default settings in tinymce doesnt convert relative urls to absolute ones, i think you'll need to hack it if you want to change the configuration.

--
Geneticists from METU

ufku’s picture

you can check new features and try out a demo at http://drupal.ufku.com.
For drupal4.7 users who want to try 5.0 features there is a special release in the site.

--
Geneticists from METU

drupalluver’s picture

When I try to download the 4.7 special release, I get a page not found?

By the way, thank you for this wonderful module. I have used it quite a bit.

ufku’s picture

link was incorrect.
thanx.
--
Geneticists from METU

drupalluver’s picture

Downloading it now. Thanks!

Christefano-oldaccount’s picture

Fantastic, IMCE supports FCKeditor! That's the best of both worlds. Thanks, ufku!

marafa’s picture

i set a quota of 500k for a user. it turns out this user is the biggest contributor to my site. suddenly pictures from the earlier articles he posted have begun disappearing.
when i checked his directory on the server, i did not find the earlier pictures. in fact his directory had pictures that had a total disk usage of 488k.

i believe imce deletes older files when the quota is reached. i did not know this would happen. i made the quota for this user 5mb. i need to know how to remove quota for this particular user.

i would also like to know whenever a user approaches his client. this default action of deleting older pictures is disastrous. the administrator should be able to set the default action or pick an action depending on his preference per user.

thanks

__________
http://namima.in-egypt.net اجدد اخبار ممثلين

http://www.echognumix.com

ufku’s picture

IMCE has no automatic file deletion feature. The user himself probably deleted the files.

IMCE 5 supports role based settings. You can define a role for a particular user or a user group and set quota etc. for it. You can also disable deleting.
For 4.7 users there is a special edition of IMCE having latest added features. You can try it at http://drupal.ufku.com.

--
Geneticists from METU

marafa’s picture

how then is quota implemented?
does it give a warning to the user?
is there a log message?
is there an email sent to user/1 ?

__________
http://namima.in-egypt.net اجدد اخبار ممثلين

http://www.echognumix.com

ufku’s picture

quota exceed warning is displayed only to the user.

--
Geneticists from METU

thepeter’s picture

Hi I like IMCE very much ... and after the security patch I cannot solve one small problem ... its not possible to upload images thru it using my template (means that the button to show directory with uploaded pictures doesn't appear) ... is there some kind of solution? I've tryed to switch template to bluemarine and there it works. if someone know where is problem with template or other modules used it will be great

ufku’s picture

make sure your template contains $closure variable in it. you can see it in bluemarine at the end of the page.tpl.php

--
Geneticists from METU

thepeter’s picture

well thank you ... did I missed some paper where it was explained?
eiitherway THX

ufku’s picture

in install.txt and in this page :)

--
Geneticists from METU

tburton’s picture

Loaded IMCE and can see browser button but when I click on the button I get this error:

"The requested URL /sites/default/index.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."

Any thoughts ?

ufku’s picture

is your tinymce folder located under sites/default/modules/ ? are you using multiple sites?

--
Geneticists from METU

tburton’s picture

Yes , it is located at mysite.com/publichtml/sites/default/modules/tinymce

I have two sites but each has a separate file structure and database based on the same server . The second site has files located in the same, but separate set up ie: mysite#1.com/publichtml/mysite#2.com/sites/default/modules/tinymce

Thanks for your consideration of this issue

ufku’s picture

then i think you can safely move tinymce folder into "(drupal-root)/modules/" directory. did you try it?
placing modules under sites directory is generally used for enabling site-specific modules. one site cant see the other site's modules and they share the modules in root/modules directory. and of course this is the case for multi-sites sharing the same codebase. yours is not multi-sites.

--
Geneticists from METU

patch-works’s picture

Hi,

I've got the same problem than tburton.

I tested IMCE on my test server (MacOSX 10.3.9 with MAMP): it worked really fine.

I then installed it on the production server and got an error message when I press on the icon in order to browse for images.

The error message is the following:
"The requested URL /v5/sites/default/index.php was not found on this server."

There is indeed no index.php at this location, as on my testserver.

I would like to keep IMCE into sites/default/modules/

Any idea?

Patch

ufku’s picture

download imce 4.7.x-1.0. this issue was fixed at http://drupal.org/node/87672.

--
Geneticists from METU

patch-works’s picture

Hi ufku

Thanks for replying so fast.

I missed this latest version (well one day...)

It works perfectly now

Nice to be able to use this so nice module.

Thanks again

Patch

zyurph’s picture

I just got drupal 5, fckeditor and imce setup. Everything works fine, but when I go to view my content the images don't show up. I look at the source and the image code isn't even there.

Dose anyone have any ideas?

MsDetta’s picture

Files folder was set to 777, lower folders showed 775. Tried to change permission to 777, but they were actually 777.

For Windows server, there is a string about "silently failing" if magic_qts was turned on. Though I'm on Apache server, this was the case! Could see that it was on in htaccess , but I couldn't change it.

Finally contacted my host who fixed the problem with the files permissions.

Diane "Detta"
MsDetta, Inc.

zyurph’s picture

Thanks for the reply!!

I am on a virtual hosting server, and they do use Apache. I checked and my files folder is set to 777, as well as all of the folders under it. But it did create a folder call u1, and it was set to 755. I changed it to 777, but it made no difference.

Also this is my setting in htaccess for php_value magic_quotes_gpc is zero.

Am I missing something?

Thanks,
Zyurph

ufku’s picture

make sure your default input format allows img tag. if so, just to acquit fckeditor/imce, add a ftp-uploaded image to your content without using fckeditor. ex: <img src="/misc/druplicon.png" />

--
Geneticists from METU

zyurph’s picture

Sorry, I'm still a little new to Drupal.

RaRi’s picture

This was sooooo easy ..

tburton’s picture

Have upgraded to 4.7.1 imce version . Sadly still getting "directory error" message . As noted above I have two sites and would rather not move tineymce files

ufku’s picture

there is an issue on this. you can have a look at it and post your situation in details.
http://drupal.org/node/87466.

--
Geneticists from METU

tburton’s picture

Thanks ufku for your help (again). Changed the shared folder setting from "file/images" to "images" and all is working fine

rajug’s picture

rajug
I download,unzip,pasted in the modules folder as modules/imce. And i did activate the mcie module from admin/modules too. But i cant see anything as menu to upload files.

Do i have to do anything to access the page for uploading image?
Its damn urgent. Please help me.

Pleeeeeeeeeeeeeeeeeeeease give me the step-full instructions.

Thank you very much in advance.

danlandrum’s picture

I've downloaded and installed the imce.module and followed the instructions up to here:

"after activating the module you should see the browse icon in tinymce's image popup window. Click it and upload images. you can view images in the list by clicking rows. you can add path and dimension information to tinymce's popup by clicking the add link or the image in preview area."

But my plain, old editing tool has not changed. There are just two input boxes, one for Title and one for Body. I don't see anything like a "tinymce's popup by clicking the add link or the image in preview area." Or any other editing tools for that matter.

What am I missing?

TIA,
Dan Landrum
www.appleEYEdesign.com

bonobo’s picture

At the risk of asking an obvious question:

Do you have tinymce or fckeditor installed and configured correctly?

imce requires either of these WYSIWYG editors.

Cheers,

Bill

-------
http://www.funnymonkey.com
Tools for Teachers

danlandrum’s picture

I did but my

administer » settings

give me this error message:

"Could not find the TinyMCE engine installed at modules/tinymce/tinymce/. Please download TinyMCE, uncompress it and copy the folder into modules/tinymce."

But that IS where I put the 'tinymce' engine folder I downlaoded and uncompressed.

Hmmm...

Dan

Dan Landrum
www.appleEYEdesign.com

danlandrum’s picture

Bill ... anyone??

Okay, it looks like I have TinyMCE in the right place,
Home » administer » settings

TinyMCE settings
$Revision: 1.90 $ $Date: 2006/04/25 11:23:47 $

But my plain, old editing tool has not changed. There are just two input boxes, one for Title and one for Body. I don't see anything like a "tinymce's popup by clicking the add link or the image in preview area." Or any other editing tools for that matter.

Any clues?

Dan Landrum
www.appleEYEdesign.com

ufku’s picture

did you manage to run tinymce?
you should see a browse button next to URL field in tinymce's image insertion interface(pop-up).
you can see it in action at http://drupal.ufku.com/imce-demo.

--
Geneticists from METU

bonobo’s picture

Two things to check:

first, in admin --> access control, make sure you have assigned at least one role to access tinymce.

second, in the tinymce settings, make sure you have created a default profile that can be used by the role (as defined in step 1)

Cheers,

Bill

-------
http://www.funnymonkey.com
Tools for Teachers

danlandrum’s picture

No ufku, I did NOT manage to run tinymce?
That is the problem.

Yes Bill,

Home » administer » settings

Profile Roles
061201 TinyMCE anonymous user authenticated user administrator

Home » administer » Permission
tinymce module
access tinymce: administrator anonymous user authenticated user
administer tinymce: administrator

Very frustrating. Thanks for trying, Bill.
I think I'm going to give up on this.

Dan Landrum
www.appleEYEdesign.com

goosey’s picture

Hi,

I've got IMCE working with tinymce but I'd like to be able to use it with plain text areas (as shown on the demo page).

However when I disable the tinymce module I don't get the "insert image or link" text appearing at the bottom of the plain text area.

Is there something else I need to do in order to use imce with plain text areas??

Thanks, G

ufku’s picture

plain textarea feature is introduced in 5th version to be used for drupal5. for drupal4.7 user there is a special release of IMCE to experience new features. You can download it at http://ufku.com/drupal/imce/47se. it allows you define the textarea IDs into which you want to integrate IMCE.

--
Geneticists from METU

goosey’s picture

Great, thanks. Your site seems to be down at the moment but I'll try again tomorrow.

cheers, G

ps. thanks for the speedy response!

ryo’s picture

Thanks for a great module.
By the way, what do you mean by the words "textarea IDs"?

Sorry for my ignorance...

ryo’s picture

"edit-body" is for "most" node types.

The word "most" is a little bit ambiguous for non-tech people...
It would be more user friendly if the wording were more specific.

Anyway, thanks again for the great work!

enkie_ua’s picture

first of all I'd like to sorry for my English. secondly I want to thank you for the great module! and thirdly have a little issue here...
when i add an image into the text with right or left alignment, IE messes up with the text near this image. In Firefox everything is fine - the text nicely wraps the image as it should be. Is there a way to fix this? Thanks in advance!

faqing’s picture

When I upgrade Drupal5, the first module I am looking for is IMCE module. Thank you ufku!

If IMCE can support image caption then it will be perfect!

Nikkol’s picture

Yes ... captions would be wonderful!

leeaston’s picture

I've installed imce in D5 but it's not showing in modules so I can not enable it, any suggestions to what I've done wrong.

Should the imce folder be put in/modules or in sites/all/modules? I've tried both!

Thanks, Lee

NicolasH’s picture

To have the module showing up in the list, the imce.info file needs to be present. I don't use IMCE, so not sure if that's missing. If it is, just copy one from another module and change the details.

That would make it at least appear in the list - of course that doesn't mean it will work with version 5.

/sites/all/modules is preferable to the /modules folder

AmandaJane’s picture

I've enabled and set permissions, the image folder is CHMOD correctly, the settings update but the Create IMCE Gallery doesn't save. I am running Drupal 5.1 with mysql 127.0.0.1. Any ideas anyone?

AmandaJane’s picture

Never mind, I've sussed it, seems I was somewhat confused.

rucx’s picture

Does this module need any other modules then IMCE to work correctly?

_nicky_’s picture

No, it doesn't require any other related modules!
------
JFK Airport ; LAX airport

Mighty’s picture

Running Drupal 5.1. Have moxie up and running.

Tinymce compressor turned off. Never could get moxie to work with it. Seems to be an issue with imce anyway, per http://drupal.org/node/117689

Followed instructions for installing imce.

Enabled module. Set roles. Configured settings.

Verified that Advanced Image is unchecked in moxie.

Using Garland theme, which does have $closure call. Tried bluemarine theme, also.

Changed line 11 of imce.module to module_exists('moxie') per http://drupal.org/node/116837

No browse button in either image nor link boxes.

Browsing to imce/browse works.

Obviously, I've been searching around looking for ideas. Anyone have any other things I can try?

GiorgosK’s picture

did you try editing an admin

If you have lots of other contributed modules enabled try disabling them or do a fresh install of 5.1 and install only the modules in question,

I did manage to set it up http://drupal.org/node/86927#comment-201173

----
world experts tag cloud

------
GiorgosK
Web Development

Mighty’s picture

I only have two users. User 1 I've named "Developer" and it has rights to everything. The other user is "Administrator" and it also has has rights to everything.

I just verified by logging in as each user and trying again. Still not there.

The only two modules I've downloaded and installed are moxie and imce.

Thanks for the ideas. Anyone else?

Drake

Mighty’s picture

I've looked at the page source and the only mention I see of imce is in the "Menu Settings" dropdown. It's never getting incorporated into the page.

I've also tried disabling and re-enabling imce, hoping to trigger some sort of initialization. (I haven't studied how modules are incorporated into Drupal, yet.)

Mighty’s picture

This is getting frustrating.

Got the site back up and running. Moxie is working. Still no browse button.

Any other ideas on what could be my problem? I'm sure it's going to be something simple I'm overlooking.

GiorgosK’s picture

Mighty,

in the IMCE settings, common settings put edit-body

If you overlooked this it could be your only problem

GiorgosK

------
Good read for newbies > http://drupal.org/node/120612
Lots of Discussion and help is going on in http://groups.drupal.org/ too, join in

------
GiorgosK
Web Development

Mighty’s picture

That's not mentioned in INSTALL.TXT. But I happened to be looking over the field descriptions yesterday. I actually tried this. Tried it again just now. Still no button.

GiorgosK’s picture

Go in the actuall module's issue queue maybe someone else had this problem already
otherwise post a support request

there is two more tinyMCE modules to look into, tinyMCE I thick was committed a few days ago.

GiorgosK
------
Good read for newbies > http://drupal.org/node/120612
Lots of Discussion and help is going on in http://groups.drupal.org/ too, join in

------
GiorgosK
Web Development

drupalegg’s picture

Thank you Mighty for writing this!
I was using custom theme...and I could not make the image upload link to show up.
I saw your post and added print $closure on the bottom of the page.tpl.php of the custom theme....and YES! It works.

Thank you for taking time to write this *key*!!

dvende’s picture

Hi all,

I feel very stupid but... I've downloaded the module, extract into modules\imce and... it doesn't appear into modules list... What's my mistake(s)?

GiorgosK’s picture

you should have this file structure

/public_html/drupal/modules/imce/imce.css
/public_html/drupal/modules/imce/imce.info
/public_html/drupal/modules/imce/imce.module 
...

right ?

admin/build/modules does not let you see the module to enable ?

see the IMCE module (http://drupal.org/project/imce)
issues (http://drupal.org/project/issues/imce)
and if you can't find something similar to your problem
fill out an issue with details of your problem (drupal version, imce version, exactly the steps you followed)

you can also try a clean install with just the necessary modules enabled (drupal and IMCE in this case) and see
maybe the drupal installation you are using was screwed ...

----
world experts tag cloud

------
GiorgosK
Web Development

dvende’s picture

Ehm... i'm so sorry... my mistake, everything works fine now. Great module, thanks a lot

ndorfnz’s picture

Love the module, have read through the other Browse issues, can't find resolve.

Using the latest version with the 4.7 version.

Do not use drupal, using the API method.

http://ufku.com/drupal/imce/api

How does IMCE get configured since I don't have a drupal admin area, etc?

Can you provide some additional guidance (excuse my ignorance!) the above api link doesn't explain where to install IMCE and how to configure it to work with tinymce.

Much Thanks!!

ufku’s picture

being a drupal module, imce depends on drupal. it has no external use. API is avaliable only for drupal.

---
ufku.com - IMCE - BUEditor

ndorfnz’s picture

so even where the demos are for version 4.7 drupal is installed?

it appears like the textareas are completely independent.

could I actually install drupal (not use "it") but then enable the imce for my textareas?

is that a crazy thought or not?

my site is all pretty much complete with navigation, content, etc. and don't want to change it...

but I want to use imce very, very badly! ;)

ufku’s picture

Ok, if drupal is installed you can use IMCE as a file browser. Before accessing IMCE you should login to drupal and configure your system file path and IMCE settings, and you should stay logged in.

Then, in your non-drupal page you should include these js scripts(dont forget to change "your_drupal_directory" strings):

<script type="text/javascript" src="your_drupal_directory/misc/drupal.js"></script>
<script type="text/javascript" src="your_drupal_directory/modules/imce/imce_set_tinymce.js"></script>
<script type="text/javascript"> var imceBrowserURL = 'your_drupal_directory/?q=imce/browse'; </script>

yeah, that's kinda crazy :)

--
ufku.com - IMCE - BUEditor

thepeter’s picture

Hi I like IMCE very much Iam wonderring if it is possible to use imce as an image module without TinyMCE = means that I could create user content type (by CCk) with image added as an attachment usign imce (could be great with that feature what has attch to add next and next and next ... ;))

kmillecam’s picture

thepeter,

I'm using IMCE without TinyMCE and it works like a charm.

All you have to do is add edit-body into the field on the "common settings" area of the IMCE settings page.

You end up with an "insert link or image" at the bottom of our body textarea field.

HTH,
Kevin

http://www.webwiseone.com
It's all about community.

https://bkjdigital.com
We make magic.

Lowell’s picture

I have installed IMCE and prefer it over other methods of file uploads
(would be nice to upload multiple files)

Anyway, the images are stored in the files directory and are apparently accessible by anyone knowing the url path through Drupal

example.com/system/files/image.jpg

I need a way to restrict this access based upon the nodeaccess table settings

Any Ideas?

kmillecam’s picture

Lowell,

It appears (by the /system/ in your path) that you have enabled the "private" file upload functionality.

The other thing you can do when this option is chosen is move your /files directory somewhere on your system that is not accessible to the web server. (outside the doc root).

HTH,

Kevin

http://www.webwiseone.com
It's all about community.

https://bkjdigital.com
We make magic.

bonobo’s picture

but on the (pretty good) chance that I'm being dense I'm cross-posting in this thread:

The issue (and a screenshot) is here.

Currently using IMCE 5.x-1.x-dev, TinyMCE 5.x-1.x-dev, on a Drupal 5.x.dev (the latest nightly build) install.

I'm using the Zen theme, and the $closure variable is in the page.tpl.php file.

I have also used IMCE on various sites in the past, and have enabled it with no issues.

However, on this site, when creating a post, (at node/add/page) I am not presented with the option to upload an image while using firefox 2.

It works fine in IE 7.

It also works in both browsers at user/*/imce

Thanks for any help anyone can bring on this.

Cheers,

Bill

-------
http://www.funnymonkey.com
Tools for Teachers

abv’s picture

I've been experiencing the same problem. Has anyone found a good solution yet?

udijw’s picture

I love this - simple setup, very user friendly interface. just what I need.

my sites
- DIY Studio Photography and lighting
- micro stock photography

koda’s picture

IMCE is a great stuff, but I have some bug
after uploading image and inserting in text

I would click on image and link with a bigger one by clicking on tne link icon. But when I click on the link icon it dont do anything.
I use opera as browser and windows as main system.

Thx for your work!

koda’s picture

IMCE is a great stuff, but I have some bug
after uploading image and inserting in text

I would click on image and link with a bigger one by clicking on tne link icon. But when I click on the link icon it dont do anything.
I use opera as browser and windows as main system.

Thx for your work!

zbricoleur’s picture

My predecessor set up FCKeditor and IMCE, and it worked like a charm for a while. Now, however, none of the images show up in the nodes.

What's happening is that the image tags are coming out like this: <img alt="" src="/index.php?q=system/files/images/picture.gif" height="320" width="240"> Why would this happen?

mrsocks’s picture

Will this module allow me to upload files like pdfs and docs?

If so, I cannot figure out how to get this to work.

drupal 5.1 and i have tinymce installed and running correctly.
I can upload images no problem, but cannot do files. I get an error stating that only gif, jpgs and pngs are allowed.

the module says it's installed and the if($type!='image') is commented out.

Any suggestions?

Thanks.

schwa’s picture

@mrsocks: in the 4.7 version, you can specify whether/which non-image files are allowed under admin>settings>IMCE.

mrsocks’s picture

Thanks for the reply.

I have instead switched to FCKEditor and everything is great now.
easy file upload and ability to link text and images to pdfs and docs.

justchil’s picture

How would go about setting the "dimensions" when pasting a URL in the Image URL filed? IMCE works great if I browse and attach a local image but I still have the problem of users posting huge images if they simple paste a Image URL into the field.

I will keep looking around.. thought I'd ask here while doing so.

ppmax’s picture

You cant resize an image that's hosted on someone else's box. Think about it: your browser requests a file from xyz.com and gets loaded and stored in your browser cache. You can set arbitrary dimensions on the img element, but that's not the same thing.

All you have to do is assign an overflow:hidden; property to the container that may contain a reference to a big image referenced elsewhere. This will hide anything that might overflow the parent container...

innovationcreation’s picture

Turning on the IMCE module effects the Upload module access control permissions. With IMCE module off the Upload module has two permission lines to configure view uploaded files and upload files. With IMCE module on the Upload module line upload files is no longer available in access control permissions.

Any thoughts on if this is normal?

WeRockYourWeb.com’s picture

Hey guys,

I had a similar "no browse button" problem - albeit with FCKEditor/ IMCE and only in IE. The solution was to disable "enable extras" in the IMCE settings. Hope this helps someone.

Alex
----------
Contract Web Development, Inc.

WeRockYourWeb.com’s picture

Take that back - all it did was bring back the "browse" button. On clicking the button, however, the following error gets thrown:

/dialog/fck_image.html - "no such interface supported" (line 154, char 3). I didn't see anything on line 154, char 3 (just a table closing tag), so it must be referencing something else.

Some background:
- The browse button shows up and works fine in Firefox.
- I'm using FCKEditor, since people here are having the same issue with TinyMCE, I'm guessing maybe the problem lies with IMCE?
- I've tried suggested solutions such as adding <?php print $closure ?> but no luck.

Will continue to troubleshoot and post back...

Alex
----------
Contract Web Development, Inc.

WeRockYourWeb.com’s picture

Hmmm, the browse button appeared and worked in IE 6 for one page load, after I changed absolutely nothing, and on the next page load was gone again...??

Alex
----------
Contract Web Development, Inc.

kosmik’s picture

Here's what I observed:

1. using first user login (admin), amadou theme - the browse button appears
2. using authenticated user login, amadou theme - button disappears
3. using authenticated user login, garland theme - button appears again.

I ensured access control has been set properly.

I need help as I wanted to keep amadou theme.
BTW, I checked that the $closure is there.

Thanks!

Hilmy.
---------------------
"Live Until You Die"

www.imfreetools.com

WeRockYourWeb.com’s picture

As far as I can tell it appears that this issue is isolated to Internet Explorer 6 and below? Can anyone confirm this?

Alex
----------
Contract Web Development, Inc.

btoland’s picture

Nope. Gettin' the same thing with IE7....

stevekerouac’s picture

But currently mostly when FCKeditor is set to work in a popup. When FCKeditor is embedded in the text area, I sometimes get a browse button, sometimes not.

sketch1’s picture

subscribe

physiotek’s picture

me too :)

akshay509’s picture

how can i upload images at any url....like http://10.211.23.23/pics
i set the $set['dir'] in imce.module to 'http:\\10.211.23.23\pics\';
i was getting the error "error opening directory".

please reply asap

hugafish’s picture

I really love this little module and to be quite honest with you all it is going to be included as a feature in my premium account side of my web site. I basically added it with the TinyMCE as to just test it out for better WYSIWYG Blogging control but it was messing up already posted blogs Youtube embeds and became to much of a chore I thought perhaps. I will give that module another look at later, for now i don't really need it.However in removing this TinyMCE module I had forgot about the little IMCE module and stumbled across it again while I was tweaking my site some. I then came up with this idea I have been wanting to figure out anyhow as for a file collaboration is concerned and the IMCE module has most of the work done already for me, so I kept it in tact.

What I am wanting to do is to use it to create a collaborative file sharing area just for a few users who might happen to be part of a small group within a larger group of users. Example suppose I have 10 users and 3 users want to collaborate on a private project which requires some basic file sharing and discussions while they are on line at the same time. I already have the Ajax chat module enabled and works great now user 3,5 and 7 decide to collaborate together and user 3 was the instigator of this collaboration project, so he goes into the IMCE file browser settings and creates his own little file folder assigns a password or ticket number whatever to it and shares this info to user 5 and 7. User 5 and 7 now go into their IMCE browser and change their file directory to match that folder and once they try to enter into it, it prompts them for the password and then they type it in and bam they are in seeing user 3's files to work with. This IMCE browser could also possibly view all folders in the /files/ directory and only let the user in if they know the pass key or password for that folder. My question for ufku, is this possible to do with IMCE and if so would you be willing to set this up in a later upgrade, or is it already built in and I am not aware of this yet. I think I could do this as an admin and just assigning folders to users by assigning a password protected directory that they could use I just am not sure if IMCE will allow multiple users to see this folder. I will play around with this some but is just an idea I would like to have for my site. Thanks for this great module just let me know if this is way to much for it and if I need to do this manually for better control, just wondering. Thanks for any help you might have

hugafish’s picture

As it turns out the password scheme or key to open the directory will have to be done programmatically. The password protected file directories on the server are for http access only not drupal site users because those users are actually considered part of the admin user of your site in some degree. I set up a shared folder and allowed for sub folders and then created individual user subfolders inside of that subfolder. all users can now see all of the users individual collaborative folders that I manually create as an admin using the subfolder tool feature. Now I have to figure out how to program this within this module so it looks as though I will have to find a programmer now since I don't know how to program PHP. I don't really have the luxury of time to try to learn something that I need now, so I will have to make a deal with a programmer who already knows Drupal Programming. Hey with this said I still think this can be done and would offer a great feature for a web site.

lszyrmer’s picture

I'm getting a run time error in IE 7. IMCE works great in Firefox.
It says

Line 19:
Error: 'null' is null or not an object

Not sure what is worth checking on this one. I definitely have the $closure variable in my page.tpl.php file.

RDude’s picture

Can you make the images public? Only the user themselves can see the pictures?

Please help.

Thanks

RDude’s picture

Can someone please tell me how to make the pictures public in my users' profiles?

Thanks

dongen1289’s picture

.. must be missing something very very obvious... (sorry)

fresh install 5.3 drupal
ONLY modules other than default:
tinymce
imce

access control done (for both)
modules activated / setup
configured buttons on tinymce (activated 'image') (also tried with 'advanced image' also on)

tinymce is showing up all fine
but the image button pop-up is NOT showing the browse icon...

tried on 3 different sites, and clean install; this has taken me hours and hours... AAAAAHH
nowhere, absolutely nowhere is this button showing up; even tried a force-refresh on the pop-up

default Garland theme

MacOS X client / Firefox 2.0.0.12; also tried on PC XP /w FFox.

Sorry to trouble you all, I'm sure it is very simple, but this is exactly what i want to use and it isn't cooperating .... thanks for input

drgonzo121’s picture

hi,

how od i change the default settings? in the "IMCE settings" i can only change the user upload folder and the "Common settings", no where i can change the 100K & 500x500

thanks

eastcn’s picture

how does imce 3.0 fuse inlinepopups in tinymce,

but springs a new window?
-----------------------
my drupal

Richard_’s picture

Is it possible to extend functionality of this product with "upload image from url" function?

Thank you!

philingle’s picture

Hi

I have just set up FCKEditor and IMCE (For Drupal 5.7) and have followed all the instructions but when I click on the 'Browse Server' button I get a pop up that says 'Error creating folder "/files/image/" (Can't create directory)

Any ideas what I need to do to fix this?

Cheers

Phillip Ingle - Personal website
AlpesInfo.com - Computer support and website design
AlpineBreak.com - Holidays in the French Alps
LeChateauGuillestre.com - Guillestre Accommodation
jubilee_six’s picture

This module works very well, except now that the image is on the page the alignment settings aren't saved. It looks correct in the preview, but the saved version doesn't have the alignment information included with the tag.

Am I missing something or is anyone else having this problem?

test_drupal-1’s picture

Thanks to ufku..

What a solution for image upload in editor

imce.module is exact solution for all editors

Thanks, this module make my problem easy!!!!!!!!!

mbennett3’s picture

I am using a linux server and i wanted to know if there is a way to change the casing to all the files that are uploaded to lowercase. We have many users uploading files so it would be best if there was a way for use to just changing the casing after the file is uploaded.

jeroenwillemsen2001’s picture

Hello everyone,

Could anyone help me out? I have installed IMCE and tinymce. Added a template.php with some code to add the IMCE button on the tinymce popup. Yet, the IMCE only shows one file, but no file upload button or whatsoever. Could you guys help me out? I am currently using the "the morning after" theme.

kind regards,

Jeroen

wwwoliondorcom’s picture

Hi,

I'm also trying to get a Browse button on TinyMce 3 and Drupal 6 but can't find a solution, can you help?

Thanks a lot.

drpchris’s picture

Hi,

I have IMCE and FCKeditor installed, latest versions as of today. I can't get the 'send to textarea' working when I have FCKEditor styled textarea running. If I switch to the plain textarea on the same page, the 'send to textarea' works fine.

I have 'Full HTML' enabled as the default filter.

thanks!

drpchris’s picture

As soon as I post I find a solution. I was using the 'insert image' link below the textarea, what I should have been doing was using the browse button in the FCKEditor insert image popup window. THat works fine.

Solved m own problem, as usual.!

ace11’s picture

I'm missing upload image button in tinymce image editor.
I have Drupal 6.14, TinyMCE 3.2.7 and IMCE 6.x-1.3. I'm using Basic-theme.
Installed tinymce and then imce. I followed instructions and have tryed re-install etc.
Also tried to add print $closure to end of the page (it already was there)

Where is problem? Any solution for this? Please help.

EDIT!!: Found solution http://drupal.org/project/imce_wysiwyg

GiorgosK’s picture

This thread is quite old and definitely for quite an old version of IMCE

support request should go to the module's issue queue next time where you have better chance actually someone helping you

------
GiorgosK
Web Development

hifive’s picture

As it was published in 2006, is imce work fine in the current drupal version?

ts230’s picture

I can't seem to get it working with TinyMCE in Drupal 6 using the Orange Theme. I have the WYSIWYG bridge installed.

satujamsaja’s picture

I am using drupal 6.16
- Wysiwyg 6.x-2.x-dev
- IMCE 6.x-1.3
- IMCE Wysiwyg API bridge 6.x-1.x-dev
- tinymce 3.2.7

This is my step
- Enable all modules
- I use Full HTML input format for tinymce
- In WYSIWYG edit Full HTML format for tinymce
- Enable all button and plugins except BBCode plugins

Perhaps BBCode make image tag display incorrectly

That's all.I hope it'll help

carlodimartino’s picture

Thank you, thank you, thank you! That problem was driving me mad.

"Enable all button and plugins except BBCode plugins

Perhaps BBCode make image tag display incorrectly"