[問題]自動縮圖功能的問題

phpBB 2 MOD Support
無論是官方或非官方認證之外掛,安裝與使用問題討論。
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

主題已鎖定
bigratx
星球普通子民
星球普通子民
文章: 13
註冊時間: 2006-01-17 20:02

[問題]自動縮圖功能的問題

文章 bigratx »

●架設主機作業系統:WindowsXP SP2
●快速架站程式:Appserv2.45
●您的上網方式:區域網路
●您安裝的程式:appserv2.45 easymod 0.3 Resize_Posted_Images_Based_on_Max_Width
●您的 phpBB2 版本:phpBB 2.019

自動縮圖的功能一切正常
不過如果附加檔案是動畫的gif
自動縮圖的功能就會把圖片放到大很難到的地步
所以會破壞版面\r
請問大家這該從哪個檔案去修改呢?
還請各位前輩指教
謝謝
bigratx
星球普通子民
星球普通子民
文章: 13
註冊時間: 2006-01-17 20:02

文章 bigratx »

這個問題我研究了很久
還是找不出答案說\r
有拿個高手可以幫忙我嗎?
感謝了 :cry:
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8532
註冊時間: 2004-04-30 01:54
來自: Taiwan

Re: [問題]自動縮圖功能的問題

文章 心靈捕手 »

bigratx 寫: 自動縮圖的功能就會把圖片放到大很難到的地步
請恕我" 斷章取義", 這句話有點難懂? :-?

因為我並無安裝此外掛的經驗,
所以尚無法判斷是否預設, 無法對 *.gif 圖檔自動縮圖?

建議您:
0. 貼出外掛參考( 下載) 連結
1. 貼出論壇網址
2. 貼出測試的文章連結
必要時, 請提供測試帳號與密碼
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
過山雲
竹貓忠實會員
竹貓忠實會員
文章: 390
註冊時間: 2002-09-05 20:11
來自: 東都.承天府.萬年縣治.拱辰門北
聯繫:

文章 過山雲 »

就是說他理想中的自動縮圖
純粹就是自動縮圖
不會把小圖放大

現在的自動縮圖
有一個問題比較大\r

大圖縮小沒問題(設定一個600的範圍給他,超過就自動縮圖)
小圖自動變大就很傷腦筋(我這個小圖本來就是100而已,但是自動縮圖的功能卻把我的圖一律放大到600)
這樣很不美觀

所幸\r
MW3這個利用JAVA進行自動縮圖的MOD可以徹底的解決這些不便\r
安裝也很簡便
圖檔
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8532
註冊時間: 2004-04-30 01:54
來自: Taiwan

文章 心靈捕手 »

過山雲 寫:就是說他理想中的自動縮圖
純粹就是自動縮圖
不會把小圖放大

現在的自動縮圖
有一個問題比較大\r

大圖縮小沒問題(設定一個600的範圍給他,超過就自動縮圖)
小圖自動變大就很傷腦筋(我這個小圖本來就是100而已,但是自動縮圖的功能卻把我的圖一律放大到600)
這樣很不美觀

所幸\r
MW3這個利用JAVA進行自動縮圖的MOD可以徹底的解決這些不便\r
安裝也很簡便
您的解釋, 我懂;
只是不曉得是否為其原意?

方便的話, 請您貼出" MW3這個利用JAVA進行自動縮圖的MOD" 參考( 下載) 連結.
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
過山雲
竹貓忠實會員
竹貓忠實會員
文章: 390
註冊時間: 2002-09-05 20:11
來自: 東都.承天府.萬年縣治.拱辰門北
聯繫:

文章 過山雲 »

小弟提供的下載點:
http://www.5819375.idv.tw/phpbb2/download.php?id=17154

放置位置:
http://www.5819375.idv.tw/phpbb2/viewtopic.php?p=38196

在這裡下載的:

MOD Title: mw3 (Prevent Any Layout From Being Broken)
MOD Version: 1.1.0 alpha

http://www.christianfecteau.com/echo/mw ... _alpha.zip
圖檔
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8532
註冊時間: 2004-04-30 01:54
來自: Taiwan

文章 心靈捕手 »

過山雲 寫:小弟提供的下載點:
\nhttp://www.5819375.idv.tw/phpbb2/download.php?id=17154

放置位置:
http://www.5819375.idv.tw/phpbb2/viewtopic.php?p=38196

在這裡下載的:

MOD Title: mw3 (Prevent Any Layout From Being Broken)
MOD Version: 1.1.0 alpha

http://www.christianfecteau.com/echo/mw ... _alpha.zip
3Q!! :-D

我也順勢推薦另外一個好用的縮圖外掛 img標籤自動縮圖+點擊放大
( 感謝 蒼浩 大大分享)
只要修改一個檔案( 風格/bbcode.tpl) 即可. ;-)
http://phpbb-tw.net/phpbb/viewtopic.php?p=145653#145653
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
頭像
kkt
竹貓忠實會員
竹貓忠實會員
文章: 625
註冊時間: 2005-06-15 01:37
來自: H.K.
聯繫:

文章 kkt »

我是用捕手老師推薦這個, 感覺很好, 衹是我想改把圖片盡量放大至整篇文章範圍.
怎樣試都不行, 同時衹對寬度有反應, 對高度沒反應的.







.
舊站台經已結朿了, 學生們可到遊戲站玩玩 Flash Game (不必註冊) 免費 Flash Game
在此學到很多架站知識, 永遠多謝:
心靈捕手老師, ~倉木麻衣~, 依夢兒 及 神川小羽各位大大相助
過山雲
竹貓忠實會員
竹貓忠實會員
文章: 390
註冊時間: 2002-09-05 20:11
來自: 東都.承天府.萬年縣治.拱辰門北
聯繫:

文章 過山雲 »

所以用MW3這套自動縮圖外掛比較好
自動依你的瀏覽器來調整圖片大小
圖檔
baga80
星球普通子民
星球普通子民
文章: 6
註冊時間: 2006-11-16 13:35

文章 baga80 »

請教一下
安裝了過山雲兄推薦的MW3縮圖外掛,
過程相當容易簡單,
比較困惑的是,滑鼠指向可放大的圖片時(已縮圖),
停留後會出現提示,
該提示為原圖原始路徑。
該修改哪部分?才能改為『點圖觀看原圖』,而非出現圖檔原始路徑?

代碼: 選擇全部

##############################################################
## MOD Title:          mw3 (Prevent Any Layout From Being Broken)
## MOD Author:         spooky2280 < webmaster@christianfecteau.com > (Christian Fecteau) http://portfolio.christianfecteau.com/
## MOD Description:    This MOD uses DHTML to check if posts contain anything that would cause
##                     your layout to be larger than its normal width, and if so, it adds an
##                     horizontal scrollbar under the message and/or resizes large images to
##                     fit into the normal intended width for the layout. See the MOD in action: http://christianfecteau.com/mw3d
##
## MOD Version:        1.1.0 alpha
##
## Installation Level: Easy
## Installation Time:  5 Minutes (1 minute with EasyMod: http://sourceforge.net/projects/easymod/ )
##
## Files To Edit:      5
##      posting.php
##      privmsg.php
##      viewtopic.php
##      includes/topic_review.php
##      includes/page_tail.php
##
## Included Files:     1
##      templates/mw3.js
##
##############################################################
## 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:
##
## For an 'AFTER, ADD' statement, the code has to be added
## BELOW the last line quoted in the 'FIND' statement.
## (Do not confuse with an IN-LINE AFTER, ADD)
##
## For a 'BEFORE, ADD' statement, the code has to be added
## ABOVE the first line quoted in the 'FIND' statement.
## (Do not confuse with an IN-LINE BEFORE, ADD)
##
## You can double-click on a message if it has a crosshair cursor:
## This pops up the message alone in a new maximized window.
##
## You can single click on an image if it has a pointer cursor:
## This pops up the image alone and full size in a new maximized window.
##
## The MOD is supposed to work with IE5+, NN7.1+, Firefox, and Opera7+
## The script detects and allow browsers to run the MOD if they support it.
##
## The MOD is supposed to work with almost all templates. The MOD is
## know to fail with IE5+ and the chairs template. But the script detects
## that the MOD won't work and it terminates without changing the layout
## and without javascript errors. The MOD is currently distributed with
## the debug mode enabled by default. So if the MOD doesn't work with a
## particular template, an alert is outputted with a custom message about
## where in the script it was detected that the MOD wouldn't work. If you
## get these alert messages, please write them down and report them.
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
##
## Credits must be given with my full name (Christian Fecteau)
## and a link to my portfolio: http://portfolio.christianfecteau.com/
##
## Removal or alteration of this notice is strongly prohibited.
##
##############################################################
## MOD History:
##
##   2005-09-29 - Version 1.1.0 alpha
##      - Released upon demands for Mac support: 
##        http://www.christianfecteau.com/mw3/viewtopic.php?p=238#238
##      - Added Safari and IE5Mac support - some features are 
##        still missing like with Safari, the opening alone in 
##        a new window of an overflowed post upon double-click.
##      - Tested with phpBB 2.0.17 and EasyMOD Beta v0.2.1a
##
##   2005-02-22 - Version 1.0.1
##      - Code adapted to phpBB 2.0.12
##      - Debug mode is now off by default
##
##   2005-02-14 - Version 1.0.0
##      - After thourough testing, the MOD fails with only 5 styles
##        from phpBB:
##             - chairs (in IE);
##             - Esbardu (in Opera);
##             - lifecod (in IE and Opera);
##             - phpBBLite;
##             - JustFooty.
##        Everything will be done to fix these styles in the next
##        release but it will probably involve editing of tpl
##        and css files for these styles, as well as the MOD may
##        require editing of tpl and css files for modded boards.
##        It is a case per case analysis when the MOD fails
##        with a specific board.
##        A special thanks to Adam who has tested over 120 styles
##        with both Opera 7.54 and Firefox 1.0
##
##   2005-01-19 - Version 0.1.0
##      - First release, alpha
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ COPY ]------------------------------------------
#
copy templates/mw3.js to templates/mw3.js
#
#-----[ OPEN ]------------------------------------------
#
posting.php
#
#-----[ FIND ]------------------------------------------
#
# around line 710
#
'MESSAGE' => $preview_message,
#
#-----[ IN-LINE FIND ]------------------------------------------
#
=>
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
 '<q style="display:none"></q>' .
#
#-----[ OPEN ]------------------------------------------
#
privmsg.php
#
#-----[ FIND ]------------------------------------------
#
# around line 626
#
'MESSAGE' => $private_message,
#
#-----[ IN-LINE FIND ]------------------------------------------
#
=>
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
 '<q style="display:none"></q>' .
#
#-----[ FIND ]------------------------------------------
#
# around line 1590
#
'MESSAGE' => $preview_message,
#
#-----[ IN-LINE FIND ]------------------------------------------
#
=>
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
 '<q style="display:none"></q>' .
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
# around line 1171
#
'MESSAGE' => $message,
#
#-----[ IN-LINE FIND ]------------------------------------------
#
=>
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
 '<q style="display:none"></q>' .
#
#-----[ OPEN ]------------------------------------------
#
includes/topic_review.php
#
#-----[ FIND ]------------------------------------------
#
# around line 198
#
'MESSAGE' => $message,
#
#-----[ IN-LINE FIND ]------------------------------------------
#
=>
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
 '<q style="display:none"></q>' .
#
#-----[ FIND ]------------------------------------------
#
# around line 224
#
includes/page_tail
#
#-----[ BEFORE, ADD ]------------------------------------------
#
		echo '<script type="text/javascript" src="' . $phpbb_root_path . 'templates/mw3.js"></script>' . "\n";
		echo '<script type="text/javascript"><!--' . "\n";
		echo 'window.topr = true;' . "\n";
		echo '//--></script>';
#
#-----[ OPEN ]------------------------------------------
#
includes/page_tail.php
#
#-----[ FIND ]------------------------------------------
#
# around line 31
#
$admin_link =
#
#-----[ AFTER, ADD ]------------------------------------------
#
// start mw3 MOD
$admin_link .= '<script type="text/javascript" src="' . $phpbb_root_path . 'templates/mw3.js"></script>';
// fin mw3 MOD
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
主題已鎖定

回到「外掛問題討論」