Is it possible to attach images to comments?

layermonkey - June 23, 2009 - 00:15

I have a forum I'm setting up using the built-in forum module. I have added a CCK image field to forum posts, but this only allows images on the INITIAL post in a thread.

Basically I would like someone to be able to say "look at my picture" and then someone could reply to that post (I assume in a comment) and say "Oh yeah, well look at this picture". So a thread might be "Your Favorite Vacation Pictures" and 50 people could each post a JPEG.

Does anybody know...

1. If you can add a CCK field to a comment? (this is my preference, since I'm doing this for the initial forum post and the settings would match)
2. If advanced forum allows for this?
3. A good way to make this happen that I haven't thought of?

Thanks in advance for any help you might be able to give.

J Walton

Comment Upload

Keyz - June 23, 2009 - 00:25

Without resorting to "comments as nodes" (which may have performance and compatibility implications to consider, you'd need to investigate), no you cannot add a CCK field to comments. The solution I would recommend (though yes this does make the UI a bit different unless you use attachments as well for the node) is http://drupal.org/project/comment_upload

I'd recommend augmenting it also with http://drupal.org/project/uploadpath to keep your files directory from getting out of hand.

Hope this helps.

Thanks

layermonkey - June 24, 2009 - 01:20

That worked just fine, although it was tricky to find all of the options to administer. There's a lot more to do with this site, and a lot more to learn, but I'm just attacking it one step at a time.

 
 

Drupal is a registered trademark of Dries Buytaert.