对softsea样式,在softsea/bbs_index.html.php中查找blockcategorylist, 找到后把对应的div块替换为如下代码
- <div class="blockcategorylist">
- <!--各板块最新列表-->
- <!--{block name="bbsforum" parameter="type/forum,sub/allowblog/1/order/displayorder/limit/0,100/cachetime/14400/cachename/fullforumarr/tpl/data"}-->
- <!--{loop $_SBLOCK['forumarr'] $ckey $cat}-->
- <!--{eval $ctime=3800+30*$ckey;}-->
- <!--{block name="bbsforum" parameter="type/sub/fup/$cat[fid]/allowblog/1/order/displayorder/limit/0,100/cachetime/14400/cachename/subforumarr/tpl/data"}-->
- <!--{eval $_fnames = $cat[fid];}-->
- <!--{loop $_SBLOCK['subforumarr'] $ckey $cat2}-->
- <!--{eval $_fnames = $_fnames . "," . $cat2[fid];}-->
- <!--{/loop}-->
- <!--{block name="bbsthread" parameter="fid/$_fnames/order/dateline DESC/limit/0,5/cachetime/$ctime/subjectlen/40/subjectdot/1/cachename/threadlist/tpl/data"}-->
- <div class="blockcategory" style="height: 170px;">
- <h3><a href="#action/forumdisplay/fid/$cat[fid]#">$cat[name]</a></h3>
- <ul class="msgtitlelist">
- <!--{loop $_SBLOCK['threadlist'] $value}-->
- <li><cite>#date("m-d", $value["dateline"])# </cite><a href="$value[url]">$value[subject]</a></li>
- <!--{/loop}-->
- <li><a href="#action/forumdisplay/fid/$cat[fid]#" class="more">更多……</a></li>
- </ul>
- </div>
- <!--{/loop}-->
- </div>
复制代码 |