It would be better if the feature stated in the title can be implemented.
And also support for Lightbox2 display :)

CommentFileSizeAuthor
#3 thumb_formatter.patch2.12 KByang_yi_cn

Comments

panis’s picture

you can override the function theme_imceimage_image() in you template.php file to easily give you thickbox support. thumbnails in teaser - that is a bit of work.. need to define size of thumbnail somewhere. Give option for user to pick right size - but doable. However not a priority right now based on my workload.

Your workaround is to:
- hide the field from being displayed in CCK display fields.
- update the appropriate node.tpl.php file to print a thumbnail for the image if on a teaser. You can access the path to the image URL from node->field_??????[i]['imceimage_path'] variable where ????? is your field name. replace i with 0 for the first image and appropriate index if you have more than one image attached.

ktleow’s picture

Gee, thanks for the hint panis. Didn't know it can be accomplished like this ^^

For now, the LightBox2 solution I'm using is add a rel="lightbox" into my img's node-[type].tpl.php.

yang_yi_cn’s picture

Status: Active » Needs review
StatusFileSize
new2.12 KB

I've made a thumbnail formatter, which uses a 'thumb_' prefix, as should be defined in IMCE profiles. Patch file attached.

ssm2017 Binder’s picture

this patch is working for me
thank you yang yi for it

ssm2017 Binder’s picture

this patch is working for me
thank you yang yi for it

yang_yi_cn’s picture

Status: Needs review » Fixed

I recently got the co-maintain right of this project, so committed and rolled a new release.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.