本帖最后由 banish 于 2009-6-25 00:29 编辑
1、博客根分类列表:- <!--{block name="category" parameter="type/blog/isroot/1/ischannel/2/order/c.displayorder/limit/0,100/cachetime/10800/cachename/category/tpl/data"}-->
- <!--{loop $_SBLOCK['category'] $value}-->
- <li><a href="$value[url]" target="_self">$value[name]</a></li>
- <!--{/loop}-->
复制代码 2、博客各分类最新文章列表- <!--{loop $_SBLOCK['category'] $ckey $cat}-->
- <!--{eval $ctime=1800+30*$ckey;}-->
- <!--{block name="spaceblog" parameter="catid/$cat[subcatid]/order/i.dateline DESC/limit/0,10/cachetime/$ctime/subjectlen/40/subjectdot/1/cachename/bloglist/tpl/data"}-->
- <div class="category">
- <h3>
- <strong><a href="#action/category/catid/$cat[catid]#" target="_self">$cat[name]</a></strong>
- <a href="#action/category/catid/$cat[catid]#" class="more" target="_self">更多</a>
- </h3>
- <ul class="msgtitlelist">
- <!--{loop $_SBLOCK['bloglist'] $value}-->
- <li><cite><a href="#uid/$value[uid]/action/space#">$value[username]</a> </cite><a href="$value[url]">$value[subject]</a></li>
- <!--{/loop}-->
- </ul>
- </div>
- <!--{/loop}-->
复制代码 3、博客排行---按照已有博客数目:- <!--{block name="userspace" parameter="order/u.spaceallnum DESC/limit/0,10/cachetime/44000/cachename/topspace/tpl/data"}-->
- <!--{loop $_SBLOCK['topspace'] $value}-->
- <li><em>$value[spaceallnum]</em><a href="$value[url]">$value[spacename]</a></li>
- <!--{/loop}-->
复制代码 4、一周内有更新的博客空间---按浏览数:- <!--{block name="userspace" parameter="lastpost/604800/limit/0,10/order/u.viewnum DESC/cachetime/29800/cachename/hotlist/tpl/data"}-->
- <!--{loop $_SBLOCK['hotlist'] $value}-->
- <li>
- <a href="$value[url]" target="_blank"><img src="$value[photo]" width="78" height="78" alt="$value[spacename]" /></a>
- <p><a href="$value[url]" target="_blank" title="$value[spacename]">$value[username]</a></p>
- <p>信息数:$value[spaceallnum]</p>
- </li>
- <!--{/loop}-->
复制代码 5、博客热门话题tag:- <!--{block name="tag" parameter="order/spaceallnum DESC/limit/0,20/cachetime/21600/cachename/hottag/tpl/data"}-->
- <!--{loop $_SBLOCK['hottag'] $value}-->
- <a href="$value[url]">$value[tagname]<em>($value[spaceallnum])</em></a>
- <!--{/loop}-->
复制代码 6、热门博客--按照评论数:- <!--{block name="spaceblog" parameter="dateline/604800/order/i.replynum DESC/subjectlen/40/subjectdot/1/limit/0,10/cachetime/18400/cachename/hotblog/tpl/data"}-->
- <!--{loop $_SBLOCK['hotblog'] $value}-->
- <li><cite><a href="#uid/$value[uid]/action/space#">$value[username]</a> </cite><a href="$value[url]">$value[subject]</a></li>
- <!--{/loop}-->
复制代码 7、图片博客列表及幻灯:- <!--审核等级4的图文博客幻灯片-->
- <!--{block name="spaceblog" parameter="grade/4/haveattach/1/showattach/1/order/i.lastpost DESC/limit/0,4/cachetime/11930/cachename/picblog/tpl/data"}-->
- <div id="slideimg" class="sideblock cleanblock">
- <!--{eval $picarr=$linkarr=$textarr=array();}-->
- <!--{loop $_SBLOCK['picblog'] $ikey $value}-->
- <!--{eval $picarr[] = '"'.$value[a_filepath].'"';}-->
- <!--{eval $linkarr[] = '"'.$value[url].'"';}-->
- <!--{eval $textarr[] = '"'.$value[subject].'"';}-->
- <!--{/loop}-->
- <!--{eval $pics = implode(',', $picarr);}-->
- <!--{eval $links = implode(',', $linkarr);}-->
- <!--{eval $texts = implode(',', $textarr);}-->
-
- <script type="text/javascript" language="javascript">
- <!--
- var focus_width=208;
- var focus_height=208;
- var text_height=20;
-
- var xsImgs = new Array({$pics});
- var xsImgLinks = new Array({$links});
- var xsImgTexts = new Array({$texts});
- var xsImgSize = new Array(focus_width, focus_height);
- //-->
- </script>
- <script language="javascript" type="text/javascript" src="{S_URL}/include/js/slide.js"></script>
- </div>
复制代码 8、博客等级标题列表:- <!--{block name="spaceblog" parameter="grade/3/order/i.lastpost DESC/limit/0,9/subjectlen/20/subjectdot/1/cachetime/18000/cachename/recommend3blog/tpl/data"}-->
- <!--{loop $_SBLOCK['recommend3blog'] $value}-->
- <li><cite><a href="#uid/$value[uid]/action/space#">$value[username]</a> </cite><a href="$value[url]" title="$value[subjectall]">$value[subject]</a></li>
- <!--{/loop}-->
复制代码 9、博客等级标题列表(带内容截取及略图)- <!--{block name="spaceblog" parameter="grade/5/showattach/1/showdetail/1/order/i.dateline DESC/limit/0,1/subjectlen/30/subjectdot/1/messagelen/80/messagedot/1/cachetime/18600/cachename/headblog/tpl/data"}-->
- <!--{loop $_SBLOCK['headblog'] $value}-->
- <!--{if !empty($value['a_thumbpath'])}--><a href="$value[url]"><img src="$value[a_thumbpath]" alt="" /></a><!--{/if}-->
- <strong><a href="$value[url]">$value[subject]</a></strong>
- <p>$value[message]</p>
- <!--{/loop}-->
复制代码 10、全部通过审核的博客列表:- <!--{block name="spaceblog" parameter="grade/1,2,3,4,5/order/i.dateline DESC/limit/0,15/showspacename/1/subjectlen/40/subjectdot/1/cachetime/4800/cachename/newgradeblog/tpl/data"}-->
- <!--{loop $_SBLOCK['newgradeblog'] $value}-->
- <li><cite><a href="#uid/$value[uid]/action/space#">$value[username]</a> </cite><a href="$value[url]">$value[subject]</a></li>
- <!--{/loop}-->
- 如果去掉grade/1,2,3,4,5/ 则表示所有发表的博客无需经过审核即可显示在网站集成页面。
复制代码 11、一周内有新内容的用户空间名称列表- <!--{block name="userspace" parameter="lastpost/604800/order/u.spaceblognum DESC/limit/0,10/cachetime/9900/cachename/newspace/tpl/data"}-->
- <!--{loop $_SBLOCK['newspace'] $value}-->
- <li><em>$value[spaceblognum] </em><a href="$value[url]">$value[spacename]</a></li>
- <!--{/loop}-->
复制代码 12、最热博客TAG列表- <!--{block name="tag" parameter="order/spaceblognum DESC/limit/0,20/cachetime/18000/cachename/hottag/tpl/data"}-->
- <!--{loop $_SBLOCK['hottag'] $value}-->
- <a href="$value[url]">$value[tagname]<em>($value[spaceblognum])</em></a>
- <!--{/loop}-->
复制代码 13、站内热门BLOG列表(一周)---按浏览数- <!--{block name="spaceblog" parameter="dateline/604800/order/i.viewnum DESC/limit/0,10/cachetime/15400/subjectlen/40/subjectdot/1/cachename/hotblog1/tpl/data"}-->
- <!--{loop $_SBLOCK['hotblog1'] $value}-->
- <li><cite><a href="#uid/$value[uid]/action/space#">$value[username]</a> </cite><a href="$value[url]">$value[subject]</a>($value[viewnum])</li>
- <!--{/loop}-->
复制代码 14、站内热门BLOG列表(一月)---按浏览数- <!--{block name="spaceblog" parameter="dateline/2592000/order/i.viewnum DESC/limit/0,10/cachetime/17200/subjectlen/40/subjectdot/1/cachename/hotblog2/tpl/data"}-->
- <!--{loop $_SBLOCK['hotblog2'] $value}-->
- <li><cite><a href="#uid/$value[uid]/action/space#">$value[username]</a> </cite><a href="$value[url]">$value[subject]</a>($value[viewnum])</li>
- <!--{/loop}-->
复制代码 15、站内热门BLOG列表(开站以来)---按浏览数- <!--{block name="spaceblog" parameter="order/i.viewnum DESC/limit/0,10/cachetime/17400/subjectlen/40/subjectdot/1/cachename/hotblog3/tpl/data"}-->
- <!--{loop $_SBLOCK['hotblog3'] $value}-->
- <li><cite><a href="#uid/$value[uid]/action/space#">$value[username]</a> </cite><a href="$value[url]">$value[subject]</a>($value[viewnum])</li>
- <!--{/loop}-->
复制代码 16、带附件图片的博客列表- <!--{block name="spaceblog" parameter="haveattach/1/showattach/1/order/i.lastpost DESC/subjectlen/14/subjectdot/1/limit/0,7/cachetime/8000/cachename/picblog/tpl/data"}-->
- <!--{loop $_SBLOCK['picblog'] $value}-->
- <li><div><a href="$value[url]"><img src="$value[a_thumbpath]" alt="$value[subjectall]" /></a></div><p><a href="$value[url]">$value[subject]</a></p></li>
- <!--{/loop}-->
复制代码 17、站内热门BLOG列表(一周)---按评论数- <!--{block name="spaceblog" parameter="lastpost/604800/order/i.replynum DESC/limit/0,10/cachetime/15400/subjectlen/40/subjectdot/1/cachename/replyhot/tpl/data"}-->
- <!--{loop $_SBLOCK['replyhot'] $value}-->
- <a href="$value[url]">$value[subject]</a><br/>
- <a href="#uid/$value[uid]/action/space#">$value[username]</a> / <a href="$value[url]">评论($value[replynum])</a>
- <!--{/loop}-->
复制代码 18、最新发表(含评论)博客列表- <!--{block name="spaceblog" parameter="order/i.lastpost DESC/limit/0,20/cachetime/1000/cachename/newblog/tpl/data"}-->
- <!--{loop $_SBLOCK['newblog'] $value}-->
- <a href="$value[url]">$value[subject]</a>
- <a href="#uid/$value[uid]/action/space#">$value[username]</a> / #date("Y-m-d", $value["lastpost"])#
- <!--{/loop}-->
复制代码 19、当前分类封面图片及简介- <!--{if $thecat['thumb'] || $thecat['note']}-->
- <!--{if $thecat['thumb']}-->
- <img src="{A_URL}/$thecat[thumb]" alt="" />
- <!--{/if}-->
- <!--{if $thecat['note']}-->
- <p>$thecat[note]</p>
- <!--{/if}-->
- <!--{/if}-->
复制代码 20、当前分类子分类列表:- <!--{block name="category" parameter="upid/$thecat[catid]/ischannel/2/order/c.displayorder/limit/0,100/cachetime/10900/cachename/subarr/tpl/data"}-->
- <!--{if $_SBLOCK['subarr']}-->
- <!--{loop $_SBLOCK['subarr'] $value}-->
- <li><a href="$value[url]" target="_self">$value[name]</a></li>
- <!--{/loop}-->
- <!--{/if}-->
复制代码 21、当前分类专题列表:- <!--{block name="category" parameter="upid/$thecat[catid]/ischannel/1/showattach/1/order/c.displayorder/limit/0,100/cachetime/16400/cachename/channel/tpl/data"}-->
- <!--{if $_SBLOCK['channel']}-->
- <!--{loop $_SBLOCK['channel'] $value}-->
- <li>
- <a href="#action/category/catid/$value[catid]#" target="_self"><img src="$value[thumb]" alt="" /></a>
- <p><a href="#action/category/catid/$value[catid]#" target="_self">$value[name]</a></p>
- </li>
- <!--{/loop}-->
- <!--{/if}-->
复制代码 22、当前分类月度关注热点---按浏览数- <!--{block name="spaceblog" parameter="dateline/2592000/catid/$thecat[subcatid]/order/i.viewnum DESC/limit/0,15/cachetime/17200/cachename/hotnews/tpl/data"}-->
- <!--{if $_SBLOCK['hotnews']}-->
- <!--{loop $_SBLOCK['hotnews'] $value}-->
- <a href="$value[url]">$value[subject]</a>
- <a href="#uid/$value[uid]/action/space#">$value[username]</a> / <a href="$value[url]">点击($value[viewnum])</a>
- <!--{/loop}-->
- <!--{/if}-->
复制代码 23、当前分类博客最新列表(含分页):- <!--{if $_SGET['page']<2 || empty($_SGET['mode'])}-->
- <!--{block name="spaceblog" parameter="perpage/20/catid/$thecat[subcatid]/order/i.dateline DESC/showspacename/1/showdetail/1/messagelen/300/messagedot/1/cachename/newlist/tpl/data"}-->
- <!--{if $_SBLOCK['newlist']}-->
- <h3><strong>$thecat[name]</strong></h3>
- <!--{loop $_SBLOCK['newlist'] $value}-->
- <li>
- <h4><a href="#uid/$value[uid]/action/space/domain/$value[domain]#"><img src="$value[photo]" alt="$value[spacename]" /></a><a href="$value[url]">$value[subject]</a> <span class="smalltxt">($value[replynum])</span></h4>
- <span class="smalltxt" onclick="ColExpIntro(this);">
- <a href="#uid/$value[uid]/action/space/domain/$value[domain]#">$value[username]</a>($value[province]) 发表于 #date("Y-m-d", $value["dateline"])#
- <!--{if !empty($value['tags'])}-->
- 关键词:
- <!--{loop $value['tags'] $tag}-->
- <a href="#action/tag/tagname/$tag#">$tag</a>
- <!--{/loop}-->
- <!--{/if}-->
- </span>
- <p onclick="ColExpIntro(this);">$value[message] <a href="$value[url]">...全文</a></p>
- </li>
- <!--{/loop}-->
- <div class="pages">
- <!--{if $_SBLOCK[newlist_multipage]}-->
- $_SBLOCK[newlist_multipage]
- <!--{else}-->
- <table summary="" class="xspace-page"><tr><td class="xspace-totlerecord">当前只有一页</td></tr></table>
- <!--{/if}-->
- </div>
- <!--{/if}-->
- <!--{/if}-->
复制代码 24、关联论坛新帖列表:- <!--{if !empty($thecat['bbsmodel'])}-->
- <!--{if $_SGET['page']<2 || !empty($_SGET['mode'])}-->
- <!--{eval $_SGET['mode']='bbs';}-->
- <!--{block name="bbsthread" parameter="perpage/20/$thecat[blockparameter]/cachename/bbsthreadlist/tpl/data"}-->
- <!--{if $_SBLOCK['bbsthreadlist']}-->
- <!--{loop $_SBLOCK['bbsthreadlist'] $value}-->
- <li><cite>#date("m-d", $value["dateline"])# </cite><a href="$value[url]">$value[subject]</a></li>
- <!--{/loop}-->
- <div class="pages">
- <!--{if $_SBLOCK[bbsthreadlist_multipage]}-->
- $_SBLOCK[bbsthreadlist_multipage]
- <!--{else}-->
- <table summary="" class="xspace-page"><tr><td class="xspace-totlerecord">当前只有一页</td></tr></table>
- <!--{/if}-->
- </div>
- <!--{/if}-->
- <!--{/if}-->
- <!--{/if}-->
复制代码 25、博客当前分类子分类最新列表:- <!--{if $_SGET['page']<2}-->
- <!--{loop $_SBLOCK['subarr'] $ckey $cat}-->
- <!--{eval $ctime=1800+30*$ckey;}-->
- <!--{block name="spaceblog" parameter="catid/$cat[subcatid]/order/i.dateline DESC/limit/0,10/cachetime/$ctime/subjectlen/40/cachename/subnewlist/tpl/data"}-->
- <!--{if $_SBLOCK['subnewlist']}-->
- <div class="category">
- <h3>
- <strong><a href="#action/category/catid/$cat[catid]#" target="_self">$cat[name]</a></strong>
- <a href="#action/category/catid/$cat[catid]#" class="more" target="_self">更多</a>
- </h3>
- <ul class="msgtitlelist">
- <!--{loop $_SBLOCK['subnewlist'] $value}-->
- <li><cite><a href="#uid/$value[uid]/action/space#">$value[username]</a> </cite><a href="$value[url]">$value[subject]</a></li>
- <!--{/loop}-->
- </ul>
- </div>
- <!--{/if}-->
- <!--{/loop}-->
- <!--{/if}-->
复制代码 |