Image thumbnails

Xabi - January 17, 2007 - 13:26
Project:Comment Upload
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Wouldn't it be great to show thumbnails of attached images at the edit and view pages? This feature would cover one of the major drawbacks of the Drupal forum. Maybe the code of upload_preview would be useful for this (but upload_preview shows thumbnails only at the edit page at this moment).

#1

Heine - January 17, 2007 - 14:23

Upload preview already partially works with comment upload.

#2

Heine - January 17, 2007 - 14:49
Status:active» fixed

Committed one little change to 5.x-dev that enables 'full' Upload preview operation.

#3

Heine - January 17, 2007 - 15:04

Oh, this was all for thumbnails during upload. You can display images in nodes by overriding theme_upload_attachments (for both normal uploads and comment uploads).

#4

Xabi - January 17, 2007 - 15:32

Great! :-)

#5

Heine - January 17, 2007 - 15:45

I've committed a bit more.

If you select Inline display, all images will be displayed inline. However, no thumbnails yet. If you want more control override the theme function theme_comment_attachments.

#6

Xabi - January 17, 2007 - 21:32

I'm trying to do this, but I'm lost... could you point us in any direction to override that function at get the thumbnails thing working? Thank you in advanced.

#7

amigopost - January 25, 2007 - 04:26

So there's an option of displaying images inline, yet, when i upload and image, then view the comment/node, there's no image.
My question is, why there's an option of "Display image inline", yet it does not achieve its purpose. My understanding is that i would have to override the heme_upload_attachments in order to show the images in the comments/nodes?
Thank you.

#8

Heine - January 25, 2007 - 06:39

Please open new issues.

Note that comment_upload doesn't do anything with uploads attached to nodes.

#9

Anonymous - February 8, 2007 - 06:45
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.