Discuz 7.0版塊橫排顯示版塊圖標和版塊簡介的方法

一、顯示板塊圖標

1.找到templates\\default\\discuz.htm
2.查找:<th width="$cat[forumcolwidth]"{$forum[folder]}>
3.在後面加上:{$forum[icon]}
4.後臺更新緩存即可

當然,這個只是改了一級版塊橫排的圖標顯示問題

二級或者更多級的可參照此方法。

二、顯示板塊圖標和簡介

1.找到templates/模板目錄名/ 下的disucz.htm,
2.查找<th width="$cat[forumcolwidth]"{$forum[folder]}>
3.如果只需要顯示圖片,則在後面加上下面的代碼<a href="forumdisplay.php?fid=$forum[fid]">{$forum[icon]}</a>
4. 如果還要顯示版塊的介紹,則查找<!--{if $forum[todayposts]}--><em> ({lang index_today}: <strong>$forum[todayposts]</strong>)

</em>
5.下面加上這樣的代碼<!--{/if}--><!--{if $forum[description]}--><p>$forum[description]</p><!--{/if}-->

  • 1 Usuários acharam útil
Esta resposta lhe foi útil?

Artigos Relacionados

去除Discuz7.0有無新帖版塊圖標

打開模板文件 css_common.htm,找到如下代碼: .list th { background: url({IMGDIR}/forum.gif) 5px 10px no-repeat;...

美國主機比較好還是台灣?

美國為網路的發源地,故網路發展有一段歷史,頻寬與架構皆比台灣網路成熟許多,所以各地連美國的速度都是快速的,台灣網路只有在台灣本島的用戶連線才會快速,但世界連線的速度就沒有美國好,因為連外頻寬沒有...

網頁出現無效的伺服器憑證?! (google chrome)

請檢查一下電腦的系統時間是不是跑掉了,或瀏覽器設定→進階選項→HTTPS/SSL→不要打勾,檢查伺服器憑證撤銷即可解決。...

How to Create a phpinfo File?

In the phpinfo.php page, the PHP version can be seen at the top of the file, listing the current...

HTTP Status Codes ( 狀態碼 )

HTTP CODES - 100-101 100 - Continue ( 繼續 ) Tells the client that the first part of the...

Powered by WHMCompleteSolution