在首页调用最新帖子、热门帖子,最新圈子,热门圈子,代码直接用的是各频道的,但现在只有“最新帖子”显示,其他的点击没有反映。
网址:www.lubesale.com
调用效果如图:
我的代码为:- <div id="hotarticle" class="tabblock" style="height: 315px; overflow: hidden;">
- <h3 class="tabs">
- <a id="newtab" href="javascript:setTab('hotarticle','new')" class="tab curtab">论坛新帖</a>
- <a id="daytab" href="javascript:setTab('hotarticle','day')" class="tab">热门帖子</a>
- <a id="newinfotab" href="javascript:setTab('infos','newinfo');" class="tab">最新专题</a>
- <a id="hotinfotab" href="javascript:setTab('infos','hotinfo');" class="tab">专题排行</a>
- </h3>
- <!--最新帖子-->
- <!--{block name="bbsthread" parameter="order/dateline DESC/limit/0,13/cachetime/21400/cachename/ratehot/tpl/data"}-->
- <div id="new" class="tabcontent">
- <ul class="msgtitlelist">
- <!--{loop $_SBLOCK['ratehot'] $value}-->
- <li><cite>#date("m-d", $value["dateline"])# </cite><a href="$value[url]">$value[subject]</a></li>
- <!--{/loop}-->
- </ul>
- </div>
- <!--热门帖子列表(一周)-->
- <!--{block name="bbsthread" parameter="dateline/604800/order/views DESC/limit/0,13/cachetime/72400/subjectlen/40/subjectdot/1/cachename/hotthreadweek/tpl/data"}-->
- <div id="day" class="tabcontent" style="display: none;">
- <ul class="msgtitlelist">
- <!--{loop $_SBLOCK['hotthreadweek'] $value}-->
- <li><cite><a href="#uid/$value[authorid]#">$value[author]</a> </cite><a href="$value[url]">$value[subject]</a></li>
- <!--{/loop}-->
- </ul>
- </div>
- <!--最新专题-->
- <!--{block name="spaceblog" parameter="notype/1/allgroup/1/showgroupname/1/order/i.dateline DESC/limit/0,26/cachetime/9880/cachename/newinfo/tpl/data"}-->
- <div id="newinfo" class="tabcontent">
- <ul class="msgtitlelist list2col linelist">
- <!--{if $_SBLOCK['newinfo']}-->
- <!--{loop $_SBLOCK['newinfo'] $value}-->
- <li><cite><a href="#action/mygroup/gid/$value[gid]#" target="_blank">$value[g_groupname]</a></cite><a href="$value[url]" target="_blank">$value[subject]</a></li>
- <!--{/loop}-->
- <!--{else}-->
- <li>暂无信息</li>
- <!--{/if}-->
- </ul>
- </div>
- <!--专题排行-->
- <!--{block name="spaceblog" parameter="notype/1/allgroup/1/showgroupname/1/dateline/604800/order/i.viewnum DESC/limit/0,26/cachetime/61980/cachename/hotinfo/tpl/data"}-->
- <div id="hotinfo" class="tabcontent" style="display: none;">
- <ul class="msgtitlelist list2col linelist">
- <!--{if $_SBLOCK['hotinfo']}-->
- <!--{loop $_SBLOCK['newinfo'] $value}-->
- <li><cite><a href="#action/mygroup/gid/$value[gid]#" target="_blank">$value[g_groupname]</a></cite><a href="$value[url]" target="_blank">$value[subject]</a></li>
- <!--{/loop}-->
- <!--{else}-->
- <li>暂无信息</li>
- <!--{/if}-->
- </ul>
- </div>
复制代码 劳驾给看看问题在哪里。
[ 本帖最后由 saleroad 于 2007-9-29 17:23 编辑 ] |