本帖最后由 asm21cn 于 2008-12-15 00:41 编辑
12月15日 最新更新:SupeSite 6.0.1/X-Space 4.0.1 UC 测试有效!
预览:http://www.new-age.com.cn/ss
很多刚装好SS的站长都有这样的困惑,在SS的论坛板块,默认情况下如上级论坛仅为分类而并不能发贴,则首页论坛主题列表无法显示子论坛的帖子主题,如果要浏览必须点击“更多”打开子论坛才能看到主题列表,这样一来,版面的美观大打折扣而且也不便于阅读。为了解决这一问题,我们进行如下改动:
需要改动的文件:templates/default/bbs_index.html.php(或其它模板对应的文件如/softsea/):
对于default模板下的更改方法:查找关键字:blockcategorylist, 然后把对应的div块中内容替换为如下代码:- <div class="blockcategorylist block3col">
- <!--各板块最新列表-->
- <!--{loop $_SBLOCK['forumarr'] $ckey $cat}-->
- <!--{eval $ctime=3800+30*$ckey;}-->
- <div class="blockcategory" style="width: 256px;">
- <h3>
- <a href="#action/forumdisplay/fid/$cat[fid]#" class="more">更多</a>
- <strong><a href="#action/forumdisplay/fid/$cat[fid]#">$cat[name]</a></strong>
- </h3>
- <!--{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}-->
- <ul class="msgtitlelist">
- <!--{block name="bbsthread" parameter="fid/$_fnames/order/dateline DESC/limit/0,10/cachetime/$ctime/subjectlen/40/subjectdot/1/cachename/threadlist/tpl/data"}-->
- <!--{loop $_SBLOCK['threadlist'] $value}-->
- <li><cite>#date("m-d", $value["dateline"])# </cite><a href="$value[url]">$value[subject]</a></li>
- <!--{/loop}-->
- </ul>
- <!--p class="catecommend"><a href="#;">热点</a></p-->
- </div>
- <!--{/loop}-->
- </div>
复制代码 对于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>
复制代码 [ 本帖最后由 asm21cn 于 2008-1-30 21:07 编辑 ] |