资讯与周点击:- <a id="newnewstab" href="javascript:setTab('hotarticle','newnews');" class="tab curtab">最新资讯</a>
- <a id="weektab" href="javascript:setTab('hotarticle','week');" class="tab">周点击榜</a>
复制代码 换成下面,简单点就是每次先显示周点击榜- <a id="newnewstab" href="javascript:setTab('hotarticle','newnews');" class="tab">最新资讯</a>
- <a id="weektab" href="javascript:setTab('hotarticle','week');" class="tabtab curtab">周点击榜</a>
复制代码 精华问题- <!--一周回复排行头条-->
- <!--{block name="spacenews"
- parameter="dateline/604800/showattach/1/showdetail/1/ord
- er/i.replynum
- DESC/limit/0,1/subjectlen/34/subjectdot/1/messagelen/80/
- messagedot/1/cachetime/18600/cachename/headnews/tpl/data
- "}-->
复制代码 改成下面这个加个grade/5/代表一周回复排行头条中精华5的才显示- <!--一周回复排行头条-->
- <!--{block name="spacenews"
- parameter="grade/5/dateline/604800/showattach/1/showdetail/1/ord
- er/i.replynum
- DESC/limit/0,1/subjectlen/34/subjectdot/1/messagelen/80/
- messagedot/1/cachetime/18600/cachename/headnews/tpl/data
- "}-->
复制代码 详细内容看看这个https://discuz.dismall.com/thread-471184-1-2.html
修改news_header.html.php最下面的内容如下,可以实现你要加一个首页的链接
- <div id="menu">
- <!--{block name="category"
- parameter="type/news/isroot/1/ischannel/2/order/c.displa
- yorder/limit/0,100/cachetime/10800/cachename/category/tp
- l/data"}-->
- <ul><li><a href="{S_URL}/">首页</a></li>
- <!--{loop $_SBLOCK['category']
- $value}-->
- <li><a href="$value
- [url]">$value[name]</a></li>
- <!--{/loop}-->
- </ul>
- </div>
复制代码
[ 本帖最后由 cn73064 于 2008-1-25 13:02 编辑 ] |