目前我正在使用的这个模板不知道是作者有意而为还是因为移植不彻底的原因,关于评论模块有很多不完善的地方。
首先,评论时间使用的是最后一篇文章发布的时间,而不是评论的时间。(这个算Bug)
其次,评论的序号、对评论的回复、引用功能尽数去掉,估计是为了美观而去掉了,但我现在想加上它们。
下面是我修改后的评论部分代码,对应TEMPLATE\b_article_comment.html文件。
<li class="odd" id="comment-1">
<div style="float: right; margin: 4px;">
<a name="cmt<#article/comment/id#>" style="font-size: 24px; font-family: calibri,微软雅黑,courier New">
<#article/comment/count#></a>
</div>
<div style="margin-bottom: 5px;">
By <CITE><#article/comment/name#></CITE> on <#article/comment/posttime#> |
<a onclick="InsertQuote(this.parentNode.getElementsByTagName('CITE')[0].innerHTML,this.parentNode.parentNode.getElementsByTagName('P')[0].innerHTML);return false;" href="" title="回复此评论">Reply</a> |
<a href="<#article/comment/urlencoder#>" rel="nofollow" target="_blank"><#article/comment/url#></a>
</div>
<p><#article/comment/content#></p>
</li>
把上面虚线部分的代码更新到TEMPLATE\b_article_comment.html就行了,记住一定要存成UTF-8编码格式,否则汉字无法正常显示。里面设定序号显示的字体你可以随意自定义。





