############################################################## ## MOD Title: File Attachment Mod v2 addon (thumbnail settings) ## MOD Author: rxu < rxu@sunlan.ru > (N/A) N/A ## MOD Description: Adds the ability to define thumbnail max width and quality through phpBB admin panel. Thumbnail won't be created if original image dimensions not greater then defined thumbnail max width. ## MOD Version: 1.1.1 ## ## Installation Level: Easy ## Installation Time: 9 minutes ## Files To Edit: admin/admin_attachments.php ## templates/subSilver/admin/attach_cat_body.tpl ## attach_mod/includes/functions_thumbs.php ## language/lang_english/lang_admin_attach.php ## Included Files: ## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ## Generator: Phpbb.ModTeam.Tools ############################################################## ## For security purposes, please check: http://www.phpbb.com/mods/ ## for the latest version of this MOD. Although MODs are checked ## before being allowed in the MODs Database there is no guarantee ## that there are no security problems within the MOD. No support ## will be given for MODs not found within the MODs Database which ## can be found at http://www.phpbb.com/mods/ ############################################################## ## Author Notes: Addon needs File Attachment Mod v2 to be installed before. ## Thumbnail quality setting only affects on jpeg images type. ## This version has been tested and works with phpBB 2.0.21 and File Attachment Mod v2.45. ############################################################## ## MOD History: ## ## 2006-10-04 - Version 1.0.0 ## -Initial release ## ## 2006-11-09 - Version 1.1.0 ## -Added the ability to define thumbnail quality trough phpBB admin panel. ## ## 2006-11-14 - Version 1.1.1 ## -Minor bugs fixed. ## ## 2007-04-29 - Version 1.2.0 ## -Thumbnail won't be created if original image dimensions not greater then defined thumbnail max width. ## ############################################################## ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ############################################################## # #-----[ SQL ]------------------------------------------ # INSERT INTO phpbb_attachments_config (config_name, config_value) VALUES ('img_max_thumb_size','400'); INSERT INTO phpbb_attachments_config (config_name, config_value) VALUES ('img_thumb_quality','90'); # #-----[ OPEN ]------------------------------------------ # admin/admin_attachments.php # #-----[ FIND ]------------------------------------------ # 'L_MIN_THUMB_FILESIZE_EXPLAIN' => $lang['Image_min_thumb_filesize_explain'], # #-----[ AFTER, ADD ]------------------------------------------ # 'L_MAX_THUMB_SIZE' => $lang['Image_max_thumb_size'], 'L_MAX_THUMB_SIZE_EXPLAIN' => $lang['Image_max_thumb_size_explain'], 'L_THUMB_QUALITY' => $lang['Image_thumb_quality'], 'L_THUMB_QUALITY_EXPLAIN' => $lang['Image_thumb_quality_explain'], # #-----[ FIND ]------------------------------------------ # 'IMAGE_MIN_THUMB_FILESIZE' => $new_attach['img_min_thumb_filesize'], # #-----[ AFTER, ADD ]------------------------------------------ # 'IMAGE_MAX_THUMB_SIZE' => $new_attach['img_max_thumb_size'], 'IMAGE_THUMB_QUALITY' => $new_attach['img_thumb_quality'], # #-----[ OPEN ]------------------------------------------ # templates/subSilver/admin/attach_cat_body.tpl # #-----[ FIND ]------------------------------------------ #