Discuz 7 横向排列板块显示子版块解决方法
2009年8月30日
找BBS中templates\default\中discuz.htm文件
搜索
<p>{lang forum_lastpost}:
<!--{if is_array($forum['lastpost'])}-->
<a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost" title="{echo cutstr($forum[lastpost][subject], 30)} {lang forum_lastpost_by} {if $forum['lastpost']['author']}$forum['lastpost']['authorusername']{else}{lang anonymous}{/if} ">$forum[lastpost][dateline]</a>
<!--{else}-->
{lang never}
<!--{/if}-->
</p>
语句,在其下,添加
<!--增加横向子版块显示-->
<!--{if !empty( $forum['subforums'])}-->
<p> $forum['subforums'] </p>
<!--{/if}-->
<!--增加横向子版块显示结束-->
即可。
参考资料:
作者:体无完肤 地址:http://bbs.7drc.com/thread-1582-1-1.html