文章评论,是针对于事物进行主观或客观的自我印象阐述。
评论易让人听到不利于自己的一面,因此评论的话语容易产生对方的逆反心理。但由于可以较快的表达自己的想法及感受,广为被大众所使用,实则是说者过瘾,听者闹心。
下面是两段ZBLOGPHP的评论调用代码。
第一种:
最新评论
{php}
$comments = $zbp->GetCommentList('*', array(array('=', 'comm_IsChecking', 0)), array('comm_PostTime' => 'DESC'), 10, null);
$str = '';
{/php}
{foreach $comments as $comment}
{$comment.Author.Name}
{php}$intro= preg_replace('/[\r\n\s]+/', '', trim(SubStrUTF8(TransferHTML($article->Content,'[nohtml]'),150)).'...');{/php}{$intro}
{/foreach}
第二种:
最新评论
{php}
$comments = $zbp->GetCommentList('*', array(array('=', 'comm_IsChecking', 0)), array('comm_PostTime' => 'DESC'), 10, null);
$str = '';
{/php}
{foreach $comments as $comment}
{$comment.Author.Name}
:
{$comment.Content}
{/foreach}
这两段评论代码供您备用!!