supesite之论坛篇
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");
//-->
<!--{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");
//-->