i needed imagecache support for imce so i went ahead and modified the code of this module to support it.
im currently doing my first drupal project and this is the first time i looked inside a drupal module. so the modified code might not work in all environments & configurations. use at own risk.
the modification works fully on both my local and production servers and i can now choose all types of imagecache presets (image linked to node, image linked to image, etc).
thanks go out to "obrigado" http://drupal.org/node/359098 for pointing me in the right direction with regards to imagecache integration.
also fixed the edit bug when field is empty http://drupal.org/node/413844
im attaching the modified module file here so the author can integrate the modifications into the next release. sorry dont know how to make patch files.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | imceimage.module.patch | 710 bytes | agerson |
| imceimage.module.txt | 17.32 KB | dj-nitehawk |
Comments
Comment #1
yang_yi_cn commented#359098: Patch for Basic ImageCache Integration is marked as a duplication of this.
Comment #2
yang_yi_cn commentedThanks, With a little modification, I commited it to CVS.
Comment #3
obrigado commentedThanks to dj-nitehawk and yang_yi_cn for making this happen!
Comment #4
dj-nitehawk commentedawesome!!! cheers guys... now i can get future updates...
love the drupal community...
Comment #6
happyloman commentedThis update does not work when drupal is installed in a subdirectory. The path for the image cache image is output like:
http://www.mysite.com/drupal/sites/default/files/imagecache/200x160//dru...
The extra /drupal/ breaks the link to the image.
Comment #7
obrigado commentedI just ran into this the other day... quick and kludgey fix:
Add this around line 365 of imceimage.module
Not a long term fix (it only works if you're in a subdirectory...)
Btw I think this should have been its own issue... it's confusing to revise the titles of existing issues.
Comment #8
agerson commentedI am experiencing the same issue. #7 did fix the problem.
Comment #9
agerson commentedI have created a patch. Don't use it, will break non root installs. See below.
Comment #10
obrigado commentedThanks agerson — but careful with the patch, since it breaks Image Cache support for Drupal installs that are not in subdirectories. Needs a conditional or something.
Comment #11
agerson commentedI don't have a root level drupal install to test this with, but what do you think of: