我把我模板代码发上来
大家帮我看看是不是哪里出问题了
<?exit?>
{template bbs_header}
<!--{if !empty($_SCONFIG['viewadcenter'])}-->
<div class="content" style="background: none; margin-bottom: 0.5em;">
$_SCONFIG[viewadcenter]
</div>
<!--{/if}-->
<!-- Content内容 -->
<div class="contentR">
<div class="sideR">
<!--新闻图片-->
<!--{block name="spacenews" parameter="haveattach/1/showattach/1/order/i.lastpost DESC/subjectlen/12/subjectdot/1/limit/0,4/cachetime/8000/cachename/picnews/tpl/data"}-->
<div class="block">
<ul id="scroller" class="imgthumblist">
<!--{loop $_SBLOCK['picnews'] $value}-->
<li class="list1line">
<div><a href="$value[url]" target="_blank"><img src="$value[a_thumbpath]" alt="$value[subjectall]" /></a></div>
<p><a href="$value[url]" target="_blank" title="$value[subjectall]">$value[subject]</a></p>
</li>
<!--{/loop}-->
</ul>
</div>
<!--新闻图片-->
<!--最新更新主题-->
<!--{block name="bbsthread" parameter="fid/$thread[fid]/limit/0,10/cachetime/24500/order/dateline DESC/cachename/newthread/tpl/data"}-->
<!--{if $_SBLOCK['newthread']}-->
<div class="block topblock">
<h3>最新更新主题</h3>
<ul class="msgtitlelist">
<!--{loop $_SBLOCK['newthread'] $value}-->
<li><a href="$value[url]">$value[subject]</a></li>
<!--{/loop}-->
</ul>
</div>
<!--{/if}-->
<!--图片日志显示-->
<!--{block name="spaceblog" parameter="haveattach/1/showattach/1/order/i.lastpost DESC/subjectlen/14/subjectdot/1/limit/0,4/cachetime/8000/cachename/picblog/tpl/data"}-->
<div class="block">
<ul class="imgthumblist">
<!--{loop $_SBLOCK['picblog'] $value}-->
<li class="list1line"><div><a href="$value[url]" title="$value[subject]"><img src="$value[a_thumbpath]" alt="$value[subject]" /></a></div><p><a href="$value[url]">$value[subject]</a></p></li>
<!--{/loop}-->
</ul>
</div>
<!--图片日志显示-->
<!--月度关注热点-->
<!--{block name="bbsthread" parameter="fid/$thread[fid]/dateline/2592000/order/views DESC/limit/0,10/cachetime/97200/cachename/hotthread/tpl/data"}-->
<!--{if $_SBLOCK['hotthread']}-->
<div class="block">
<h3>最新新闻资讯</h3>
<ul class="msgtitlelist">
<!--{block name="spacenews" parameter="order/i.dateline DESC/limit/0,30/subjectlen/42/cachetime/13800/cachename/newnews/tpl/data"}-->
<!--{loop $_SBLOCK['newnews'] $value}-->
<li><a href="$value[url]"> $value[subject]</a></li>
<!--{/loop}-->
</ul>
</div>
<!--{/if}-->
</div>
<div class="mainarea">
<div class="block topblock">
<h1 class="articletitle">$thread[subject]</h1>
<p class="articleinfo">
<span class="articlectrl">
字体:
<a href="javascript:;" onclick="doZoom('12');">小</a>
<a href="javascript:;" onclick="doZoom('14');">中</a>
<a href="javascript:;" onclick="doZoom('16');">大</a> |
<a href="javascript:;" onclick="doPrint();" class="btnprint">打印</a>
</span>
<span class="smalltxt">发表于: #date('Y-n-d H:i', $thread["dateline"])# 作者: $thread[author] 来源: $_SCONFIG[sitename]</span>
</p>
<div id="articlebody">
$thread[message]
<!--{if !empty($_SCONFIG['viewadmessage'])}-->
<br />
$_SCONFIG[viewadmessage]
<br />
<!--{/if}-->
<!--{if !empty($thread['attachments'])}-->
<div class="imginlog">
<!--{loop $thread['attachments'] $value}-->
<!--{if ($value['isimage'])}-->
<p><img src="$value[attachment]"><br />$value[filename]</p>
<!--{else}-->
<p><img src="{S_URL}/images/base/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}-->
</div>
<!--{/if}-->
<br />
</div>
</div>
<div id="commentlist" class="block">
<!--{if $iarr}-->
<a href="{B_URL}/post.php?action=reply&tid=$thread[tid]" target="_blank" class="more reply">我也来说两句</a>
<a href="{B_URL}/viewthread.php?tid=$thread[tid]" target="_blank" class="more">查看全部回复</a>
<h3>最新回复</h3>
<ul class="commentlist">
<!--{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="$post[attachment]"><br />$post[filename]</p>
<!--{else}-->
<p><img src="{S_URL}/images/base/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}-->
</ul>
<!--{/if}-->
<div class="pages">
<div class="xspace-page">
<a href="{B_URL}/viewthread.php?tid=$thread[tid]" target="_blank">查看全部回复</a>
<a href="{B_URL}/post.php?action=reply&tid=$thread[tid]" target="_blank">我也来说两句</a>
</div>
</div>
</div>
</div>
</div>
<!-- /Content -->
<!--论坛图片-->
<!--{block name="bbsattachment" parameter="dateline/504800/filetype/image/order/t.views DESC/limit/0,7/subjectlen/12/cachetime/38200/cachename/imagethread/tpl/data"}-->
<!--{if !empty($_SBLOCK['imagethread'])}-->
<div class="block">
<ul class="imgthumblist">
<!--{loop $_SBLOCK['imagethread'] $value}-->
<li class="list1line"><div><a href="$value[url]" title="$value[subject]"><img src="$value[attachment]" alt="$value[subject]" /></a></div><p><a href="$value[url]">$value[subject]</a></p></li>
<!--{/loop}-->
</ul>
</div>
<!--论坛图片-->
<script language="javascript" type="text/javascript">
<!--
addImgLink("articlebody");
addImgLink("commentlist");
//-->
</script>
<!--{if !empty($_SCONFIG['viewadfloating']) || !empty($_SCONFIG['viewadside'])}-->
<script type="text/javascript" src="{S_URL}/include/js/floatadv.js"></script>
<script type="text/javascript">
<!--{if !empty($_SCONFIG['viewadfloating'])}-->
var lengthobj = getWindowSize();
lsfloatdiv('floatAdv', 0, 0, "<div style=\"position: absolute; right: 6px; bottom: -"+lengthobj.winHeight+"px;\"><!--{eval echo jsstrip($_SCONFIG['viewadfloating']);}--></div>").floatIt();
<!--{/if}-->
<!--{if !empty($_SCONFIG['viewadside'])}-->
lsfloatdiv('coupleBannerAdv', 0, 0, "<div style=\"position: absolute; left: 6px; top: 6px;\"><!--{eval echo jsstrip($_SCONFIG['viewadside']);}--><br><img src=\"{S_URL}/images/base/advclose.gif\" onMouseOver=\"this.style.cursor='hand'\" onClick=\"closeBanner('coupleBannerAdv');\"></div><div style=\"position: absolute; right: 6px; top: 6px;\"><!--{eval echo jsstrip($_SCONFIG['viewadside']);}--><br><img src=\"{S_URL}/images/base/advclose.gif\" onMouseOver=\"this.style.cursor='hand'\" onClick=\"closeBanner('coupleBannerAdv');\"></div>").floatIt();
<!--{/if}-->
</script>
<!--{/if}-->
{template bbs_footer} |