You are here

README.txt in iTweak Upload 6.2

Same filename in this branch
  1. 6.2 README.txt
  2. 6.2 images/mime/README.txt
  3. 6.2 images/imageNav/README.txt
Same filename and directory in other branches
  1. 7.3 README.txt
iTweak Upload Module
--------------------
by Ilya Ivanchenko, iva2k@yahoo.com

With iTweak Upload module you can tweak file upload forms and improve attachments display:

* Beautify and improve the upload form for file attachments in nodes and comments
  (created by core upload.module and by comment_upload.module)
* (Option) Preview uploaded image files
* (Option) Display thumbnails for image attachments
* (Option) Display image attachments in a gallery
* (Option) Hide non-image files when there are image attachments in a gallery
* (Option) Show images in animated popup (lightbox2, thickbox, fancybox, shadowbox, highslide), grouped or slideshow (lightbox2, shadowbox, highslide)
* Independent of theme - works with any theme that does not already customize file uploads
* jCarousel (if installed) is used for the image attachments gallery
* jCarousel Lite (if installed) can be used for the image attachments gallery (experimental)
* (Option) Show upload progress percent complete using server-side uploadprogress or APC
* Compatible with popular modules download_count, private_upload
* Insert feature added to the files upload form (Insert module required)
* Insert feature preview of presets

Default options are configurable for the whole site. Initial installation comes with a preset for imagecache and it autodetects Lightbox, Thickbox, Fancybox or Shadowbox mode, so you can get the whole shebang in a couple of clicks.

Further, it is possible to customize each content type with individual options.

Installation 
------------
* For image thumbnails first need to install and enable ImageCache and ImageAPI modules
* For image popups first need to install Lightbox2 (recommended), Thickbox, Fancybox or Shadowbox module
* Copy the module's directory to your modules directory and activate the module
* For upgrading from 6.x-1.x to 6.x-2.x need to run update.php
* For upload progress bar need server-side uploadprogress (PECL) or APC

Usage
-----
* Module starts working once enabled
* There are new site-wide settings on the file uploads form (/admin/settings/uploads)
  under "Attachments display" section
* If "Insert" module is installed and enabled, enable and configure Insert options on the file uploads form (/admin/settings/uploads)
  under "Attachments display" > "Insert" section
* Image and attachment display options are configured in each content type:
  Go to /admin/content/node-type and select specific content type, then edit the "Attachments display" section
* ImageCache preset is required for thumbnails:
* - AttachmentThumbnail preset (default size & crop 60x60) is automatically created by the module
* - AttachmentThumbnail can be modified, or any other preset used
* - AttachmentThumbnail view permissions are automatically added to anonymous and authenticated roles
* iTweak Upload completely takes over the attachments display settings on comments. It removes setting "Attachments on comments" > "Image attachments on comments" in content type forms by comment_upload.module


Further Customizations
----------------------
There is a number of theme functions introduced, which can be customized in a theme.
- theme_itweak_upload_thumbnail()      - Renders thumbnails
- theme_itweak_upload_images()         - Renders image gallery
- theme_itweak_upload_images_body()    - Renders images in node body. Calls theme_itweak_upload_thumbnail() and theme_itweak_upload_images().
- theme_itweak_upload_images_teaser()  - Renders images in node teaser. Calls theme_itweak_upload_images_body().
- theme_itweak_upload_images_comment() - Renders images in comments. Calls theme_itweak_upload_images_body().
Please refer to http://drupal.org on how to customize theme_*() functions.

Included CSS file makes a simple horizontal scroll for images gallery, but it 
can be further styled with theme CSS file or by modifying the included one. 

It is possible to preview other file types besides images with additional 
modules. Developers can look into hook_itweak_upload_preview().

Credits
-------
Version 1.0 is based on code by hunvreus 
http://teddy.fr/blog/improving-file-attachments-form-drupal
(dated 2009-06-06)
Version 2.0 image gallery feature is inspired by Upload Image (http://drupal.org/project/upload_image)
Version 2.1 upload previews feature is inspired by Upload Preview (http://drupal.org/project/upload_preview)
Example picture for Insert preview of presets kindly provided by Tatjana Polyakova (Hawaii, Watercolor 6"x 8", http://tpol-art.com)

File

README.txt
View source
  1. iTweak Upload Module
  2. --------------------
  3. by Ilya Ivanchenko, iva2k@yahoo.com
  4. With iTweak Upload module you can tweak file upload forms and improve attachments display:
  5. * Beautify and improve the upload form for file attachments in nodes and comments
  6. (created by core upload.module and by comment_upload.module)
  7. * (Option) Preview uploaded image files
  8. * (Option) Display thumbnails for image attachments
  9. * (Option) Display image attachments in a gallery
  10. * (Option) Hide non-image files when there are image attachments in a gallery
  11. * (Option) Show images in animated popup (lightbox2, thickbox, fancybox, shadowbox, highslide), grouped or slideshow (lightbox2, shadowbox, highslide)
  12. * Independent of theme - works with any theme that does not already customize file uploads
  13. * jCarousel (if installed) is used for the image attachments gallery
  14. * jCarousel Lite (if installed) can be used for the image attachments gallery (experimental)
  15. * (Option) Show upload progress percent complete using server-side uploadprogress or APC
  16. * Compatible with popular modules download_count, private_upload
  17. * Insert feature added to the files upload form (Insert module required)
  18. * Insert feature preview of presets
  19. Default options are configurable for the whole site. Initial installation comes with a preset for imagecache and it autodetects Lightbox, Thickbox, Fancybox or Shadowbox mode, so you can get the whole shebang in a couple of clicks.
  20. Further, it is possible to customize each content type with individual options.
  21. Installation
  22. ------------
  23. * For image thumbnails first need to install and enable ImageCache and ImageAPI modules
  24. * For image popups first need to install Lightbox2 (recommended), Thickbox, Fancybox or Shadowbox module
  25. * Copy the module's directory to your modules directory and activate the module
  26. * For upgrading from 6.x-1.x to 6.x-2.x need to run update.php
  27. * For upload progress bar need server-side uploadprogress (PECL) or APC
  28. Usage
  29. -----
  30. * Module starts working once enabled
  31. * There are new site-wide settings on the file uploads form (/admin/settings/uploads)
  32. under "Attachments display" section
  33. * If "Insert" module is installed and enabled, enable and configure Insert options on the file uploads form (/admin/settings/uploads)
  34. under "Attachments display" > "Insert" section
  35. * Image and attachment display options are configured in each content type:
  36. Go to /admin/content/node-type and select specific content type, then edit the "Attachments display" section
  37. * ImageCache preset is required for thumbnails:
  38. * - AttachmentThumbnail preset (default size & crop 60x60) is automatically created by the module
  39. * - AttachmentThumbnail can be modified, or any other preset used
  40. * - AttachmentThumbnail view permissions are automatically added to anonymous and authenticated roles
  41. * iTweak Upload completely takes over the attachments display settings on comments. It removes setting "Attachments on comments" > "Image attachments on comments" in content type forms by comment_upload.module
  42. Further Customizations
  43. ----------------------
  44. There is a number of theme functions introduced, which can be customized in a theme.
  45. - theme_itweak_upload_thumbnail() - Renders thumbnails
  46. - theme_itweak_upload_images() - Renders image gallery
  47. - theme_itweak_upload_images_body() - Renders images in node body. Calls theme_itweak_upload_thumbnail() and theme_itweak_upload_images().
  48. - theme_itweak_upload_images_teaser() - Renders images in node teaser. Calls theme_itweak_upload_images_body().
  49. - theme_itweak_upload_images_comment() - Renders images in comments. Calls theme_itweak_upload_images_body().
  50. Please refer to http://drupal.org on how to customize theme_*() functions.
  51. Included CSS file makes a simple horizontal scroll for images gallery, but it
  52. can be further styled with theme CSS file or by modifying the included one.
  53. It is possible to preview other file types besides images with additional
  54. modules. Developers can look into hook_itweak_upload_preview().
  55. Credits
  56. -------
  57. Version 1.0 is based on code by hunvreus
  58. http://teddy.fr/blog/improving-file-attachments-form-drupal
  59. (dated 2009-06-06)
  60. Version 2.0 image gallery feature is inspired by Upload Image (http://drupal.org/project/upload_image)
  61. Version 2.1 upload previews feature is inspired by Upload Preview (http://drupal.org/project/upload_preview)
  62. Example picture for Insert preview of presets kindly provided by Tatjana Polyakova (Hawaii, Watercolor 6"x 8", http://tpol-art.com)