Hi,
As it stands, only when a user creates a new forum topic does it allow attaching a file using the built in upload functionality in drupal 4.5.0. However, I would also like it so that when someone comments on the forum topic they can upload/attach a file to their comment. This seems like a one line solution, but I just don't know how to do it.
Thanks,
Farsheed

Comments

zirafa’s picture

Status: Active » Closed (fixed)
beginner’s picture

Version: 4.5.0 » 4.6.6
Status: Closed (fixed) » Active
StatusFileSize
new2.41 KB

I have a patched version of comment.module that does that. I'm about to create a project to host this module.
Strangely, at this stage, I am not sure who the author of the patch is.

I'm attaching the diff between the 4.6.6 comment.module, but to work, it also requires another module that I am going to commit to cvs.

I wonder if a patch similar to this one could find its way to cvs for Drupal 4.8.

beginner’s picture

StatusFileSize
new2.48 KB

Oh! I just found out the comment_upload project I was referring to:
http://drupal.org/node/37197
http://cvs.drupal.org/viewcvs/drupal/contributions/modules/comment_upload/

But it seems it was developped for Drupal 4.7 only, and the version I have is for Drupal 4.6. I think it's John Hwang who backported it for Drupal 4.6.

You need three files for Drupal 4.6 which I shall attach successively:
comment_upload.module comment_upload.mysql and comment.module

beginner’s picture

StatusFileSize
new160 bytes
beginner’s picture

StatusFileSize
new75.47 KB
beginner’s picture

Status: Active » Fixed

And I guess this will not be backported into core.

Anonymous’s picture

Status: Fixed » Closed (fixed)