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

phpBB 3 Style Support
討論的範圍包含版面排列、樣式、配置;外掛問題,請到相關版面依發問格式發表!
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群譯文組

版面規則
請注意!您的提問必須遵守發問格式,違者砍文。
主題已鎖定
smolik.tw
星球普通子民
星球普通子民
文章: 3
註冊時間: 2008-12-20 14:29

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

文章 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

謝謝
最後由 smolik.tw 於 2008-12-21 20:56 編輯,總共編輯了 1 次。
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8540
註冊時間: 2004-04-30 01:54
來自: Taiwan

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

文章 心靈捕手 »

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.
移動至 "風格問題討論" 版面.
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
smolik.tw
星球普通子民
星球普通子民
文章: 3
註冊時間: 2008-12-20 14:29

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

文章 smolik.tw »

心靈補手大大您好

我現在是用 Hestia

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

謝謝
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8540
註冊時間: 2004-04-30 01:54
來自: Taiwan

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

文章 心靈捕手 »

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
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
smolik.tw
星球普通子民
星球普通子民
文章: 3
註冊時間: 2008-12-20 14:29

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

文章 smolik.tw »

感謝大大

已經解決了.謝謝.
主題已鎖定

回到「[3.0.x] 風格問題討論」