Closed (fixed)
Project:
Comment Upload
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 Jan 2007 at 13:26 UTC
Updated:
8 Feb 2007 at 06:45 UTC
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).
Comments
Comment #1
heine commentedUpload preview already partially works with comment upload.
Comment #2
heine commentedCommitted one little change to 5.x-dev that enables 'full' Upload preview operation.
Comment #3
heine commentedOh, 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).
Comment #4
Xabi commentedGreat! :-)
Comment #5
heine commentedI'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.
Comment #6
Xabi commentedI'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.
Comment #7
hectorplus commentedSo 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.
Comment #8
heine commentedPlease open new issues.
Note that comment_upload doesn't do anything with uploads attached to nodes.
Comment #9
(not verified) commented