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
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | comment_2.module | 75.47 KB | beginner |
| #4 | comment_upload.mysql.txt | 160 bytes | beginner |
| #3 | comment_upload.module | 2.48 KB | beginner |
| #2 | diff_3.txt | 2.41 KB | beginner |
Comments
Comment #1
zirafa commentedComment #2
beginner commentedI 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.
Comment #3
beginner commentedOh! 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
Comment #4
beginner commentedComment #5
beginner commentedComment #6
beginner commentedAnd I guess this will not be backported into core.
Comment #7
(not verified) commented