You are here

README.txt in Comment Upload 6

Same filename and directory in other branches
  1. 5 README.txt
Non-displayable characters.

File

README.txt
View source
  1. Comment upload provides the ability to upload "file attachments" to comments.
  2. Compared to Comment upload 5.x, the 6.x version still lacks views integration.
  3. Comment upload requires at least Drupal 6.4.
  4. INSTALLATION
  5. ============
  6. - Copy the comment_upload folder from the archive to sites/all/modules.
  7. - Visit Administer >> Site building >> Modules (admin/build/modules) and enable
  8. the comment upload module (under Other).
  9. - Configure permission on Administer >> User management >> Permissions
  10. (admin/user/permissions)
  11. - Enable attachments for specific content types on the edit pages of specific
  12. content types reached via the edit links on Administer >> Content management >>
  13. Content types (admin/content/node-type).
  14. CONFIGURATION
  15. =============
  16. - You can enable uploads per content type on the edit pages of specific content
  17. types. Use the edit links on Administer >> Content management >> Content types
  18. (admin/content/node-type) to access these pages.
  19. - Display of images is governed by the Image attachments on comments setting.
  20. - Display as attachments will include images in the attachments table.
  21. - Display as full image will add the entire image below the comment.
  22. If you install imagecache (http://drupal.org/project/imagecache) you will see
  23. additional 'Display via imagecache preset [presetname] options for any
  24. preset you have created.
  25. This is useful to ensure your page is not distorted by overly large images.
  26. - Comment upload provides two permissions:
  27. - "upload files to comments"
  28. - "view files uploaded to comments"
  29. - Allowed extensions and the maximum allowed upload sizes are taken from the
  30. Upload module settings on Administer >> Site configuration >> File uploads
  31. (admin/settings/uploads).
  32. THEMING
  33. =======
  34. To override the display of attachments, copy the file
  35. "comment-upload-attachments.tpl.php" to your PHPtemplate theme to make changes.
  36. Variables:
  37. $images - an array of images (when not set to Display as attachments).
  38. with each element containing:
  39. 'url' - url of the full image
  40. 'image' - tag
  41. $attachments - an array of attachments
  42. with each element containing:
  43. 'url' - url of the file
  44. 'zebra' - 'odd' or 'even' to enable zebra striping
  45. 'text' - description when set or filename of the file
  46. 'size' - size of the file in bytes, kB or Mb.
  47. NOTE
  48. ====
  49. As comment_upload heavily modifies the way comment form submission works, there
  50. is a chance that it is not compatible with other modules changing the comment form.
  51. AUTHORS & COPYRIGHT
  52. ===================
  53. Comment upload 4.7.x and 5.x were written by Károly Négyesi and Jeff Eaton.
  54. Comment upload 6.x was written by Heine Deelstra.
  55. Comment upload 6.x Copyright (c) 2008 Ustima Web Development.
  56. This module is licensed under the GPL v2. See LICENSE.txt for details.