Display Uploaded Images in Forums

fersman4 - September 22, 2009 - 17:21

I know this topic has been done to death with so many variations. But I have yet to find a simple answer.

I'd like to have a forum where users can upload pictures in both the forum posts and comments, and those pictures get displayed, not listed as an attachment that they have to click. I'd like to use:

-- Drupal's normal Forum module
-- Drupal's normal Upload module
-- Comment_upload module

I would NOT like to use:

-- A special input filter that requires some thinking on the part of the users (e.g. inline module)
-- A WYSIWYG editor
-- CCK + ImageField (because it has to work for comments too)

1) Can this be done by just configuring the Forum, Upload, and Content Type settings? If so, what settings must be used?

2) If it can't be done that way, can it be done with quick theme changes? If so, what would those be?

3) Are there one or two simple modules out there that will do it?

_

WorldFallz - September 22, 2009 - 20:31

You should be able to do this simply by theming the attachments provided by the comment_upload module.

iirc, there's a preprocess function in comment_upload.module -- simply copy & paste it to your theme's template.php, rename it from template_process_... to yourthemename_preprocess..., and alter as desired to display the attached images with <img> tags instead of as a table.

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.

 
 

Drupal is a registered trademark of Dries Buytaert.