Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

Discuz7.2 横版显示版块图标方法 [亲测可用]

[复制链接]
napianziyou 发表于 2011-7-8 23:56:59 | 显示全部楼层 |阅读模式
  一、显示板块图标   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}-->
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-11-26 17:59 , Processed in 0.098859 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表