Demo:http://www.op.osw.pl/forum/viewtopic.php?t=14
可自訂圖片最大寬度,超過寬度的圖片會在圖片下自動產生捲軸以維持版面\r
原安裝[教學]貼圖效果的會失去自動裁減的功能\r
檔頭:
代碼: 選擇全部
##############################################################
## MOD Title: Large Images MOD
## MOD Author: Sian < sebastian.weglarczyk@interia.pl > (Sebastian W璕larczyk)
## MOD Description: This MOD will allow the board administrators
## to set maximum width of an posted images.
## If width of an image exceeds entered value,
## a horizontal scrollbar will appear under image.
## This will maintain forum layout.
## Entering zero or leaving empty disables this function.
## MOD Version: 1.0.0
## Compatibility: 2.0.4 - 2.0.6 (prior release not tested but expected to work fine)
##
## Installation Level: Easy
## Installation Time: ~5 Minutes
## Files To Edit: 5
## admin/admin_board.php
## includes/bbcode.php
## language/lang_english/lang_admin.php
## templates/subSilver/viewtopic_body.tpl
## templates/subSilver/admin/board_config_body.tpl
## Included Files: n/a
##
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
##
## Author Notes:
##
## To set maximum image width:
## Go to administration panel -> General Admin -> Configuration -> User and Forum Basic Settings
##
## This mod should work with any template, although there will be differences in the .tpl
## files with some templates. You should be able to work around the differences.
##
## If you have other templates or languages installed you should modify respective files.
##
##############################################################
##
## MOD History:
##
## 2003-08-27 - Version 1.0.0
## - Initial final release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
只有兩行
代碼: 選擇全部
#
#-----[ 開啟 ]------------------------------------------------
#
language/lang_chinese_traditional_taiwan/lang_admin.php
#
#-----[ 尋找 ]------------------------------------------------
$lang['Max_sig_length_explain']
#
#-----[ 之後加入 ]-----------------------------------------
#
// Start add - LargeImages MOD
$lang['Max_image_width'] = '最大圖片寬度';
$lang['Max_image_width_explain'] = '如果圖片寬度大於這個值, 在圖片下會自動產生捲軸以維持版面, 設定為0或留白可關閉此功能.';
// End add - LargeImages MOD
我設定580差不多可以塞滿版面