Module Setting
|
Default Setting
|
Options
|
Usage
|
module_imageupload_basedir
|
$_SERVER['DOCUMENT_ROOT'].$mypliggbase
|
|
Used to know where Pligg's installed at. It's a little hack as thumb.php uses part of it.
|
module_imageupload_imagedir
|
images/
|
|
The path from your Pligg installation to an images folder within your Pligg directory -- must include the trailing slash. If Pligg is installed in your WWW root, then this should be changed to images/. This directory must be writable so chmod it to 755 or 644.
|
module_imageupload_gdversion
|
2
|
1 or 2
|
To create thumbnails, GD support needs to be enabled in PHP. Most PHP installations has GD 2.x installed. If your host only has GD 1.x installed, change this to 1.
|
module_imageupload_jpg_quality
|
80
|
1-100
|
By default, all images larger than the fullsize width / height you indicate will be resized. All GIF, PNG and WBMP images will be converted to JPG format. In either case, this sets the JPG quality of the final image. Higher numbers = less compression and larger file size. Lower numbers = more compression and smaller file size. The more compression, the more artifacts will be visible in the image.
|
module_imageupload_use_thickbox
|
true
|
true / false
|
If set to true, Image Upload will attempt to use Thickbox module to overlay image in a "lightbox" effect.
|
module_imageupload_use_thumb
|
true
|
true / false
|
If set to true, module will show a thumbnail. If false, the fullsize image will be shown.
|
module_imageupload_thumb_width
|
150
|
|
This is the maximum width the thumbnail should be.
|
module_imageupload_thumb_height
|
150
|
|
This is the maximum height the thumbnail should be.
|
module_imageupload_thumb_square
|
true
|
true / false
|
If set to true, the thumbnail will be the width x height set for thumbnails with as little scaling as possible. Thumbnail will be cropped.
|
module_imageupload_thumb_prefix
|
th_
|
|
(future use)
|
module_imageupload_fullsize_maxtoggle
|
w
|
w / h
|
If thumbnails are scaled and module_imageupload_thumb_square is false, then this allows you to set the maximum width or maximum height of the thumbnail. As images are rarely square, this will force the thumbnail routine to be sure it adheres to one dimension.
|
module_imageupload_fullsize_width
|
500
|
|
Maximum width any uploaded images should be. Any image wider than this value is scaled in proportion to the maximum height (below).
|
module_imageupload_fullsize_height
|
500
|
|
Maximum height any uploaded pictures should be.
|
module_imageupload_filename_field
|
link_field1
|
|
Very important. As Extra Fields need to be enabled in the Admin, indicating the link_field you are using will allow the module to update the database with the correct image filename when completed.
|
module_imageupload_debugmode
|
false
|
true / false
|
Turning on debug mode will output messages from the module about what its currently doing and information about the file being processed. This should be turned off in a production environment.
|
module_imageupload_legendtext
|
(HTML Code)
|
|
This is the legend text that appears below a thumbnail to inform the user to clic the image for larger version. This can contain properly formatted and escaped HTML code.
|