使用自带的评论功能不需要修改 class 文件,请参考如下代码:
{$=itransfer("genre=public/comment;tpl=global.public/comment:comment.api-list;type=new;topx=5;osql= and pc_keyword='{$-genre}' and pc_fid={$id}")}
{$=crValcodeTpl(ireplace("global.public/comment:comment.api-add", "tpl", "-keyword={$-genre}|-fid={$id}"))}
|