本帖最后由 DZadmin! 于 2009-7-11 01:16 编辑
1、空间分类:
- <!--{block name="category" parameter="type/space/isroot/1/ischannel/2/order/c.displayorder/limit/0,100/cachetime/3600/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=2800+30*$ckey;}-->
- <!--{block name="userspace" parameter="catid/$cat[subcatid]/limit/0,15/order/u.lastpost DESC/cachetime/$ctime/cachename/sublist/tpl/data"}-->
- <!--{if $_SBLOCK['sublist']}-->
- <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="imgthumblist">
- <!--{loop $_SBLOCK['sublist'] $value}-->
- <li class="list2line">
- <div><a href="$value[url]" target="_blank"><img src="$value[photo]" alt="$value[spacename]" /></a></div>
- <p><a href="$value[url]" target="_blank" title="$value[spacename]">$value[username]</a></p>
- <p>信息数:$value[spaceallnum]</p>
- </li>
- <!--{/loop}-->
- </ul>
- </div>
- <!--{/if}-->
- <!--{/loop}-->
-
- 3、空间分类封面及介绍
- <!--{if $thecat['thumb']}-->
- <img src="{A_URL}/$thecat[thumb]" alt="" />
- <!--{/if}-->
- <!--{if $thecat['note']}-->
- <p>$thecat[note]</p>
- <!--{/if}-->
- 4、空间子分类列表:
- <!--{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}-->
-
- 6、空间专题列表:
- <!--{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}-->
-
- 7、空间更新排行----以一周内新发表数为序
- <!--{block name="userspace" parameter="catid/$thecat[subcatid]/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}-->
-
- 8、空间当前类最新列表
- <!--{block name="userspace" parameter="perpage/40/catid/$thecat[subcatid]/order/u.lastpost DESC/cachename/newlist/tpl/data"}-->
- <!--{if $_SBLOCK['newlist']}-->
- <div class="category">
- <h3><strong>$thecat[name]</strong></h3>
- <ul class="imgthumblist">
- <!--{loop $_SBLOCK['newlist'] $value}-->
- <li class="list2line">
- <div><a href="$value[url]" target="_blank"><img src="$value[photo]" alt="$value[spacename]" /></a></div>
- <p><a href="$value[url]" target="_blank" title="$value[spacename]">$value[username]</a></p>
- <p>信息数:$value[spaceallnum]</p>
- </li>
- <!--{/loop}-->
- </ul>
- 9、空间当前类子分类最新列表-->
- <!--{loop $_SBLOCK['subarr'] $ckey $cat}-->
- <!--{eval $ctime=2800+30*$ckey;}-->
- <!--{block name="userspace" parameter="catid/$cat[subcatid]/limit/0,100/order/u.lastpost DESC/cachetime/$ctime/cachename/sublist/tpl/data"}-->
- <!--{if $_SBLOCK['sublist']}-->
- <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="imgthumblist">
- <!--{loop $_SBLOCK['sublist'] $value}-->
- <li class="list2line">
- <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}-->
- </ul>
- </div>
- <!--{/if}-->
- <!--{/loop}-->
-
- 10、空间之星列表(有头像)--按有新发表为序
- <!--{block name="userspace" parameter="isstar/1/showdetail/1/order/u.lastpost DESC/limit/0,9/cachetime/14400/cachename/spacestar/tpl/data"}-->
- <!--{loop $_SBLOCK['spacestar'] $value}-->
- <li><a href="$value[url]"><img src="$value[photo]" alt="$value[spacename]" /></a><p><a href="$value[url]">$value[username]</a></p>
- </li>
- <!--{/loop}-->
-
- 11、空间之星列表(有头像及信息数目)--按有新发表为序
- <!--{block name="userspace" parameter="isstar/1/limit/0,100/order/u.lastpost DESC/cachetime/17400/cachename/spacestar/tpl/data"}-->
- <!--{loop $_SBLOCK['spacestar'] $value}-->
- <li>
- <div><a href="$value[url]" target="_blank"><img src="$value[photo]" alt="$value[spacename]" /></a></div>
- <p><a href="$value[url]" target="_blank" title="$value[spacename]">$value[username]</a></p>
- <p>信息数:$value[spaceallnum]</p>
- </li>
- <!--{/loop}-->
- 12、同城空间:
- <div id="cityspace" class="sideblock cleanblock">
- <script language="javascript" type="text/javascript" src="{S_URL}/include/js/city.js"></script>
- <form action="{S_URL}/batch.search.php" method="post">
- <button value="true" type="submit" name="usersearch">同城<br />空间</button>
- <script language="javascript" type="text/javascript">showprovince('province', 'city', '');</script>
- <script language="javascript" type="text/javascript">showcity('city', '');</script>
- </form>
- </div>
-
- 13、最近更新空间(含空间名称、主人、博客篇数)
- <!--{block name="userspace" parameter="order/u.lastpost DESC/limit/0,15/cachetime/1900/cachename/lastspace/tpl/data"}-->
- <!--{loop $_SBLOCK['lastspace'] $value}-->
- <a href="$value[url]">$value[spacename]</a><br/>
- <a href="$value[url]">$value[username]</a> / 博客 ($value[spaceblognum])
- <!--{/loop}-->
- 14、最新加入空间(含空间名称、主人、加入日期)
- <!--{block name="userspace" parameter="order/u.dateline DESC/limit/0,15/cachetime/1900/cachename/newspace/tpl/data"}-->
- <!--{loop $_SBLOCK['newspace'] $value}-->
- <a href="$value[url]">$value[spacename]</a><br/>
- <a href="$value[url]">$value[username]</a> / #date("Y-m-d H:i", $value["dateline"])#
- <!--{/loop}-->
复制代码- 二、博客篇
- 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}-->
复制代码- 1、论坛分类列表
- <!--{block name="bbsforum" parameter="type/forum/allowblog/1/order/displayorder/limit/0,100/cachetime/14400/cachename/forumarr/tpl/data"}-->
- <!--{loop $_SBLOCK['forumarr'] $value}-->
- <li><a href="$value[url]" target="_self">$value[name]</a></li>
- <!--{/loop}-->
-
- 2、论坛注册
- {B_URL}/register.php
- 3、论坛公告标题
- <!--{block name="bbsannouncement" parameter="order/displayorder/limit/0,10/cachetime/86400/cachename/announcelist/tpl/data"}-->
- <!--{loop $_SBLOCK['announcelist'] $ikey $value}-->
- <li><a href="$value[url]" target="_blank">$value[subject]</a></li>
- <!--{/loop}-->
-
- 4、论坛带图片附件帖幻灯显示:
- <!--{block name="bbsattachment" parameter="filetype/image/t_lastpost/2592000/order/t.replies DESC/limit/0,10/cachetime/19900/cachename/picthread/tpl/data"}-->
- <!--{eval $picarr=$linkarr=$textarr=array();}-->
- <!--{loop $_SBLOCK['picthread'] $ikey $value}-->
- <!--{eval $picarr[] = '"'.$value[a_thumbpath].'"';}-->
- <!--{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>
- 5、最近1个月热点回复帖子标题
- <!--{block name="bbsthread" parameter="dateline/2592000/order/replies DESC/limit/0,8/cachetime/22400/subjectlen/26/cachename/hotthread/tpl/data"}-->
- <!--{loop $_SBLOCK['hotthread'] $value}-->
- <li><a href="$value[url]" title="$value[subjectall]">$value[subject]</a> <span class="smalltxt">($value[replies])</span></li>
- <!--{/loop}-->
- 6、最近1天热点回复帖子(含内容截取)
- <!--{block name="bbsthread" parameter="showdetail/1/messagelen/100/subjectlen/40/dateline/86400/order/replies DESC/limit/0,1/cachetime/12400/cachename/coolthread/tpl/data"}-->
- <!--{loop $_SBLOCK['coolthread'] $value}-->
- <strong><a href="$value[url]">$value[subject]</a></strong>
- <p>$value[message]</p>
- <!--{/loop}-->
- 7、最近1个月热点回复帖子标题
- <!--{block name="bbsthread" parameter="dateline/604800/subjectlen/33/order/replies DESC/limit/0,15/cachetime/21400/cachename/replyhot/tpl/data"}-->
- <!--{loop $_SBLOCK['replyhot'] $value}-->
- <li><cite><a href="{B_URL}/viewpro.php?uid=$value[authorid]">$value[author]</a></cite><a href="$value[url]">$value[subject]</a> <span class="smalltxt">($value[replies])</span></li>
- <!--{/loop}-->
- 8、板块排行--根据帖子数
- <!--{block name="bbsforum" parameter="type/forum/allowblog/1/order/posts DESC/limit/0,10/cachetime/14400/cachename/hotforums/tpl/data"}-->
- <!--{loop $_SBLOCK['hotforums'] $value}-->
- <li><em>$value[posts]</em><a href="$value[url]">$value[name]</a></li>
- <!--{/loop}-->
- 9、会员排行--根据帖子数
- <!--{block name="bbsmember" parameter="order/m.posts DESC/limit/0,10/cachetime/43200/cachename/hotmembers/tpl/data"}-->
- <!--{loop $_SBLOCK['hotmembers'] $value}-->
- <li><cite style="text-align: right; margin-right: 5px;">$value[posts]</cite><a href="$value[url]">$value[username]</a></li>
- <!--{/loop}-->
- 10、会员排行--根据在线时间
- <!--{block name="bbsmember" parameter="order/m.oltime DESC/limit/0,10/cachetime/7200/cachename/toponline/tpl/data"}--><!--在线排行-->
- <!--{loop $_SBLOCK['toponline'] $value}-->
- <li><cite style="width: 80px; text-align: right;">$value[oltime]小时</cite><a href="$value[url]">$value[username]</a></li>
- <!--{/loop}-->
- 11、帖子点击数排行(一周)
- <!--{block name="bbsthread" parameter="dateline/604800/order/views DESC/limit/0,10/cachetime/22400/subjectlen/40/subjectdot/1/cachename/hotblog1/tpl/data"}-->
- <!--{loop $_SBLOCK['hotblog1'] $value}-->
- <li><cite><a href="{B_URL}/viewpro.php?uid=$value[authorid]">$value[author]</a> </cite><a href="$value[url]">$value[subject]</a> ($value[views])</li>
- <!--{/loop}-->
-
- 12、帖子点击数排行(一月)
- <!--{block name="bbsthread" parameter="dateline/2592000/order/views DESC/limit/0,10/cachetime/22400/subjectlen/40/subjectdot/1/cachename/hotblog2/tpl/data"}-->
- <!--{loop $_SBLOCK['hotblog2'] $value}-->
- <li><cite><a href="{B_URL}/viewpro.php?uid=$value[authorid]">$value[author]</a> </cite><a href="$value[url]">$value[subject]</a> ($value[views])</li>
- <!--{/loop}-->
- 13、帖子点击数排行(开坛以来)
- <!--{block name="bbsthread" parameter="order/views DESC/limit/0,10/cachetime/22400/subjectlen/40/subjectdot/1/cachename/hotblog3/tpl/data"}-->
- <!--{loop $_SBLOCK['hotblog3'] $value}-->
- <li><cite><a href="{B_URL}/viewpro.php?uid=$value[authorid]">$value[author]</a> </cite><a href="$value[url]">$value[subject]</a> ($value[views])</li>
- <!--{/loop}-->
-
- 14、最新帖子---根据回复
- <!--{block name="bbsthread" parameter="order/lastpost DESC/limit/0,30/cachetime/1400/cachename/newpost/tpl/data"}-->
- <!--{loop $_SBLOCK['newpost'] $value}-->
- <a href="$value[url]">$value[subject]</a> <span class="smalltxt">($value[replies])</span>
- <!--{/loop}-->
-
- 15、最新加入空间列表
- <!--{block name="userspace" parameter="order/u.dateline DESC/limit/0,15/cachetime/1900/cachename/newspace/tpl/data"}-->
- <!--{loop $_SBLOCK['newspace'] $value}-->
- <dt><a href="$value[url]">$value[spacename]</a></dt>
- <dd><a href="$value[url]">$value[username]</a> / #date("Y-m-d H:i", $value["dateline"])#</dd>
- <!--{/loop}-->
-
- 16、一月好评热点
- <!--{block name="bbsthread" parameter="order/dateline DESC/limit/0,10/cachetime/21400/cachename/ratehot/tpl/data"}-->
- <!--{loop $_SBLOCK['ratehot'] $value}-->
- <li style="height: 2.8em; overflow: hidden;">
- <p style="margin: 0; height: 1.6em; overflow: hidden;"><a href="$value[url]">$value[subject]</a></p>
- <cite style="width: 100%;"><a href="{B_URL}/viewpro.php?uid=$value[authorid]">$value[author]</a>, 发布于#date("m-d H:i:s", $value["dateline"])#</cite></li>
- <!--{/loop}-->
- 17、各板块最新帖子列表
- <!--{loop $_SBLOCK['forumarr'] $ckey $cat}-->
- <!--{eval $ctime=1800+30*$ckey;}-->
- <!--{block name="bbsthread" parameter="fid/$cat[fid]/order/dateline DESC/limit/0,10/cachetime/$ctime/subjectlen/40/subjectdot/1/cachename/threadlist/tpl/data"}-->
- <div class="formcategory">
- <h3>
- <a href="#action/forumdisplay/fid/$cat[fid]#" class="more" target="_self">更多</a>
- $cat[name]
- </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}-->
- </ul>
- <!--p class="catecommend"><a href="javascript:;">热点</a></p-->
- </div>
- <!--{/loop}-->
-
-
- 18、当前论坛子板块
- <!--{block name="bbsforum" parameter="fup/$fid/allowblog/1/order/displayorder/limit/0,100/cachetime/28800/cachename/subarr/tpl/data"}-->
- <!--{if $_SBLOCK['subarr']}-->
- <!--{loop $_SBLOCK['subarr'] $value}-->
- <li><a href="$value[url]" target="_self">$value[name]</a></li>
- <!--{/loop}-->
- <!--{/if}-->
-
- 19、当前论坛月度关注热点
- <!--{block name="bbsthread" parameter="fid/$fid/dateline/2592000/order/views DESC/limit/0,10/cachetime/17200/cachename/hotthread/tpl/data"}-->
- <!--{if $_SBLOCK['hotthread']}-->
- <!--{loop $_SBLOCK['hotthread'] $value}-->
- <dt><a href="$value[url]">$value[subject]</a></dt>
- <dd>#date("m-d", $value["lastpost"])# / <a href="$value[url]">点击($value[views])</a></dd>
- <!--{/loop}-->
- <!--{/if}-->
-
- 20、当前论坛根分类最新帖子列表
- <!--{if $forum['type'] != 'group'}-->
- <!--{block name="bbsthread" parameter="perpage/30/fid/$fid/showdetail/1/messagelen/160/subjectlen/40/order/dateline DESC/cachename/newlist/tpl/data"}-->
- <!--{if $_SBLOCK['newlist']}-->
- <div class="category">
- <h3><strong>$forum[name]</strong><a href="javascript:;" onclick="ColExpAllIntro(this)" id="ColExpAllIntroText" class="more" target="_self">隐藏摘要</a></h3>
- <ul class="messagelist">
- <!--{loop $_SBLOCK['newlist'] $value}-->
- <li>
- <h4><a href="$value[url]" target="_self">$value[subject]</a> <span class="smalltxt">($value[views])</span></h4>
- <span class="smalltxt" onclick="ColExpIntro(this);"><a href="{B_URL}/viewpro.php?$value[authorid]">$value[author]</a> 发表于 #date("Y-m-d", $value["dateline"])#</span>
- <p onclick="ColExpIntro(this);">$value[message] <a href="$value[url]">...全文</a></p>
- </li>
- <!--{/loop}-->
- </ul>
-
- <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>
-
- </div>
- <!--{/if}-->
- <!--{/if}-->
-
- 21、当前论坛子论坛最新帖子列表
- <!--{if $_SGET['page']<2 && !empty($_SBLOCK['subarr'])}-->
- <!--{loop $_SBLOCK['subarr'] $key $value}-->
- <!--{eval $cachetime=1800+$key*5;}-->
- <!--{block name="bbsthread" parameter="fid/$value[fid]/order/dateline DESC/limit/0,10/cachetime/$cachetime/cachename/subthreadlist/tpl/data"}-->
- <!--{if $_SBLOCK['subthreadlist']}-->
- <div class="category">
- <h3>
- <strong><a href="#action/forumdisplay/fid/$value[fid]#" target="_self">$value[name]</a></strong>
- <a href="#action/forumdisplay/fid/$value[fid]#" class="more" target="_self">更多</a>
- </h3>
- <ul class="msgtitlelist">
- <!--{loop $_SBLOCK['subthreadlist'] $value}-->
- <li><cite>#date("m-d", $value["dateline"])# </cite><a href="$value[url]">$value[subject]</a></li>
- <!--{/loop}-->
- </ul>
- </div>
- <!--{/if}-->
- <!--{/loop}-->
- <!--{/if}-->
-
- 22、当前论坛最新更新帖子
- <!--{block name="bbsthread" parameter="fid/$thread[fid]/limit/0,10/cachetime/4500/order/dateline DESC/cachename/newthread/tpl/data"}-->
- <!--{if $_SBLOCK['newthread']}-->
- <!--{loop $_SBLOCK['newthread'] $value}-->
- <dt><a href="$value[url]">$value[subject]</a></dt>
- <!--{/loop}-->
- <!--{/if}-->
-
- 23、帖子浏览页调用:
- 标题:$thread[subject]
- 发表时间:#date('Y-n-d H:i', $thread["dateline"])#
- 作者: $thread[author]
- 来源: $_SCONFIG[sitename]
- 内容:$thread[message]
- 附件:<!--{if !empty($thread['attachments'])}-->
- <!--{loop $thread['attachments'] $value}-->
- <!--{if ($value['isimage'])}-->
- <p><img src="{B_A_URL}/$value[attachment]"><br />$value[filename]</p>
- <!--{else}-->
- <p><img src="{S_URL}/images/system/haveattach.gif" align="absmiddle" border="0"><a href="{B_URL}/attachment.php?aid=$value[aid]" target="_blank"><strong>$value[filename]</strong></a><br />($value[dateline], Size: $value[attachsize], Downloads: $value[downloads])</p>
- <!--{/if}-->
- <!--{/loop}-->
- <!--{/if}-->
- 评论页评论链接:{B_URL}/post.php?action=reply&tid=$thread[tid]
- 评论页查看链接:{B_URL}/viewthread.php?tid=$thread[tid]
- 相关评论
- <!--{loop $iarr $key $post}-->
- <li>
- <h4>$post[author] <span class="smalltxt">(#date("Y-n-d H:i:s", $post["dateline"])#)</span></h4>
- <div>$post[message]</div>
- <!--{if !empty($item['posts'][$post['pid']]['attachments'])}-->
- <div class="imginlog">
- <!--{loop $item['posts'][$post['pid']]['attachments'] $post}-->
- <!--{if ($post['isimage'])}-->
- <p><img src="{B_A_URL}/$post[attachment]"><br />$post[filename]</p>
- <!--{else}-->
- <p><img src="{S_URL}/images/system/haveattach.gif" align="absmiddle" border="0"><a href="{B_URL}/attachment.php?aid=$post[aid]" target="_blank"><strong>$post[filename]</strong></a><br />($post[dateline], Size: $post[attachsize], Downloads: $post[downloads])</p>
- <!--{/if}-->
- <!--{/loop}-->
- </div>
- <!--{/if}-->
- </li>
- <!--{/loop}-->
- 24、帖子浏览页图片及评论链接作用js:
- <script language="javascript" type="text/javascript">
- <!--
- addImgLink("articlebody");
- addImgLink("commentlist");
- //-->
复制代码 |