1 頁 (共 1 頁)

[問題]把圖片加入文章之後在圖片上還是變成附加檔案的模式出現-使用Hestia風格-[已解決]

發表於 : 2008-12-20 14:36
smolik.tw
●主機作業系統:Linux
●您的上網方式:ADSL
●您安裝的程式:MySql 5.0
●您的 phpBB 版本:phpBB 3.0.3
●您的 domain (網域名稱) : http://www/cadillac-taiwanclub.com
●您的 phpBB 連結網址: http://www/cadillac-taiwanclub.com

請問一下
為什麼我把圖片加入文章之後在圖片上還是變成附加檔案的模式出現呢?
我確定我有用把圖片插到文章裡面並顯示
site_logo.gif
像這樣
http://www.cadillac-taiwanclub.com/view ... p?f=7&t=10

謝謝

Re: [問題]把圖片加入文章之後在圖片上還是變成附加檔案的模式出現

發表於 : 2008-12-20 22:36
心靈捕手
smolik.tw 寫:●主機作業系統:Linux
●您的上網方式:ADSL
●您安裝的程式:MySql 5.0
●您的 phpBB 版本:phpBB 3.0.3
●您的 domain (網域名稱) : http://www/cadillac-taiwanclub.com
●您的 phpBB 連結網址: http://www/cadillac-taiwanclub.com

請問一下
為什麼我把圖片加入文章之後在圖片上還是變成附加檔案的模式出現呢?
我確定我有用把圖片插到文章裡面並顯示
site_logo.gif
像這樣
http://www.cadillac-taiwanclub.com/view ... p?f=7&t=10

謝謝
這應該是風格的問題.

建議您:
1. 貼出您的風格的名稱與參考連結.
2. 參考此文修改.
http://phpbb-tw.net/phpbb/viewtopic.php ... 37#p268237

P.S.
移動至 "風格問題討論" 版面.

Re: [問題]把圖片加入文章之後在圖片上還是變成附加檔案的模式出現

發表於 : 2008-12-20 23:39
smolik.tw
心靈補手大大您好

我現在是用 Hestia

因為其它討論區的改法都是 subsilver2 用的.是否可以請您教一下在 Hestia 下要怎麼處理呢?

謝謝

Re: [問題]把圖片加入文章之後在圖片上還是變成附加檔案的模式出現

發表於 : 2008-12-21 14:10
心靈捕手
smolik.tw 寫:心靈補手大大您好

我現在是用 Hestia

因為其它討論區的改法都是 subsilver2 用的.是否可以請您教一下在 Hestia 下要怎麼處理呢?

謝謝
因為此風格是以 subsilver2 為基礎而加以修改的, 所以您可自行參考該主題修改.
重點有兩個--移除 "(title) 附加檔案" 以及 "(class) attachcontent".

以下修改提供您參考:

開啟
styles/hestia/template/bbcode.html

找到

代碼: 選擇全部

<!-- BEGIN inline_attachment_open -->
<div class="bb-wrapper"><table border="0" cellspacing="0" cellpadding="0" class="bb-table" width="100%">
<tr>
    <td width="4" height="4" class="bb-left-top"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td>
    <td width="100%" class="bb-top"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td>
    <td width="4" height="4" class="bb-right-top"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td>
</tr>
<tr>
    <td class="bb-left"><img src="images/spacer.gif" width="3" height="4" border="0" alt="" /></td>
    <td class="bb-content bb-attach" width="100%">
        <div class="attachtitle">{L_ATTACHMENT}:</div>
        <div class="attachcontent">
<!-- END inline_attachment_open -->

<!-- BEGIN inline_attachment_close -->
        </div>
    </td>
    <td class="bb-right"><img src="images/spacer.gif" width="3" height="4" border="0" alt="" /></td>
</tr>
<tr>
    <td width="4" height="4" class="bb-left-bot"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td>
    <td width="100%" class="bb-bot"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td>
    <td width="4" height="4" class="bb-right-bot"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td>
</tr>
</table></div>
<!-- END inline_attachment_close -->
取代成

代碼: 選擇全部

<!-- BEGIN inline_attachment_open -->
<div>
<!-- END inline_attachment_open -->

<!-- BEGIN inline_attachment_close -->
</div>
<!-- END inline_attachment_close -->
開啟
styles/hestia/template/viewtopic_body.html

找到

代碼: 選擇全部

			<!-- IF postrow.S_HAS_ATTACHMENTS -->
						<br clear="all" /><br />
                        <div class="bb-wrapper"><table border="0" cellspacing="0" cellpadding="0" class="bb-table" width="100%">
                        <tr>
                            <td width="4" height="4" class="bb-left-top"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td>
                            <td width="100%" class="bb-top"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td>
                            <td width="4" height="4" class="bb-right-top"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td>
                        </tr>
                        <tr>
                            <td class="bb-left"><img src="images/spacer.gif" width="3" height="4" border="0" alt="" /></td>
                            <td class="bb-content bb-attach" width="100%">
						        <div class="attachtitle">{L_ATTACHMENTS}:</div>
						<!-- BEGIN attachment -->
						<div class="attachcontent">{postrow.attachment.DISPLAY_ATTACHMENT}</div>
						<!-- END attachment -->
                            </td>
                            <td class="bb-right"><img src="images/spacer.gif" width="3" height="4" border="0" alt="" /></td>
                        </tr>
                        <tr>
                            <td width="4" height="4" class="bb-left-bot"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td>
                            <td width="100%" class="bb-bot"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td>
                            <td width="4" height="4" class="bb-right-bot"><img src="images/spacer.gif" width="4" height="4" border="0" alt="" /></td>
                        </tr>
                        </table></div>
                    <!-- ENDIF -->
取代成

代碼: 選擇全部

					<!-- IF postrow.S_HAS_ATTACHMENTS -->
						<br clear="all" /><br />

						<table>
						<!-- BEGIN attachment -->
							<tr>
								<!-- IF postrow.attachment.S_ROW_COUNT is even --><td class="row2"><!-- ELSE --><td class="row1"><!-- ENDIF -->{postrow.attachment.DISPLAY_ATTACHMENT}</td>
							</tr>
						<!-- END attachment -->
						</table>
					<!-- ENDIF -->
儲存與關閉.

清除論壇快取.

DEMO:
http://wang5555.dnsfor.me/test/phpBB3/viewtopic.php?f=2&t=2

P.S.
Hestia 參考連結:
http://www.phpbb.com/community/viewtopi ... &t=1341675

Re: [問題]把圖片加入文章之後在圖片上還是變成附加檔案的模式出現-使用Hestia風格-[已解決]

發表於 : 2008-12-21 20:56
smolik.tw
感謝大大

已經解決了.謝謝.