1 頁 (共 1 頁)

[問題] Attachment+防止版面被撐大的td

發表於 : 2006-03-18 08:19
jwxie
外掛名稱: [修正] 防止版面被撐大
參考連結: http://phpbb-tw.net/phpbb/viewtopic.php?p=74614#74614
http://gamania.idv.tw/Lineage/viewtopic.php?t=17
phpBB: 2.0.19
網址: http://jwxinst.q168.net
風格: G.I.T

問題:

按著兩個參考連結去做這個修正
經過朋友指出, 好像會多出一個</td>
(我也搞不清楚他說什麼.....

目前主要想說的是 attachmod
因為像templates/subSilver/privmsgs_read_body.tpl
#
#--- [ 開啟 ] ---
#

templates/subSilver/privmsgs_read_body.tpl

#
#--- [ 找到 ] ---
#

代碼: 選擇全部

	  <td valign="top" colspan="3" class="row1"><span class="postbody">{MESSAGE}</span></td>
#
#--- [ 取代 ] ---
#

代碼: 選擇全部

	  <td valign="top" colspan="3" class="row1"><span class="postbody">{MESSAGE}</span>
<!-- BEGIN postrow -->
	{ATTACHMENTS}
<!-- END postrow -->
	  </td>
但是當我做修正的時候, 會發現

代碼: 選擇全部

<td valign="top" colspan="3" class="row1"><table style="table-layout:fixed"><tr><td style="word-wrap:break-word"><span class="postbody">{MESSAGE}</span></td></tr></table></td>
如果按著修正去做
整個privmsgs_read_body.tpl就會變成

代碼: 選擇全部

	<tr> 
	  <td valign="top" colspan="3" class="row1"><table style="table-layout:fixed"><tr><td style="word-wrap:break-word"><span class="postbody">{MESSAGE}</span></td></tr></table></td>
<!-- BEGIN postrow -->
	{ATTACHMENTS}
<!-- END postrow -->
	  </td>
	</tr>
其實還有很多地方都跟 attachmod裡 replace了以後, 好像是多了一個 </td>
我朋友曾經叫我去把

代碼: 選擇全部

</span></td></tr></table></td>
他說:
</td></tr></table></td>變</td></tr>
我先請教這一部份.....

發表於 : 2006-03-18 10:02
SCR
http://phpbb-tw.net/phpbb/viewtopic.php?p=74614#74614

這篇修正似乎是針對防止版面被文字給撐破比較好用。
雖然也可以防止被圖片給撐破,但圖片如果太大(SIZE),圖片右側會被裁割(看不到)。

但是我在修正後,也沒有你說的會多出一個</TD>出現。(不知是你改錯了,或是我亂改對了!)

如果要針對防止圖片撐破版面(防 attachmod 撐破也很好用),個人建議 Resize Posted Images Based on Max Width 2.4.5

下載頁面 http://www.christianfecteau.com/phpBB2/ ... c.php?t=14

發表於 : 2006-03-18 11:05
jwxie
不是針對attach-.-
我打上attachmod是因為-.-修正中針對的地方, 剛好跟attachmod相衝了</td>等等.....
剛剛請朋友幫忙看了
目前好像正常起來

不過測試一天~

發表於 : 2006-03-20 02:45
computer315
去你的站看了...沒問題呀~
你不是說你的站不要公不出來...結果你自己就...Orz