• 我们
  • 相册
  • 存档
  • 链接
  • 联系
  • Ajax Comments-Reply-WP评论回复插件

    我记得以前我用的好像是懒猫咪日记(?)写的插件。问了好些人,修改了其中一些代码才可以在自己的BLOG上用。今天搜索了下,发现阅微堂已经出了Ajax Comments-Reply修订版。真省事啊,连文件都不用替换,直接上传激活就好了。安装提示请见:installation

    我根据以下提示进行了一些小修改:

    1. At ajaxcomment/comment-reply.php, you can set $max_level as the maximum of reply-able level of comments. i.e. if you set it as 0, then you can’t reply comments. Default is 5.(我改成了1,这样就只有一次回复,免得嵌套太多页面看起来不够干净)
    2. At ajaxcomment/comment-reply.php, you can set $comments_per_page as the number of comments displayed each page. If you want to display all comments always, just set it as a big enough number, e.g. 100000. The remaining comments can be AJAX loaded. Default is 100.
    3. You can customize the looking by editing CSS. Default CSS is in ajaxcomment/comment.css.
    4. Specifically, .mine{border-color:red !important;}.borderc1{border-color:#663399 !important;}.borderc2{border-color:#ccc !important;} control the border color of the comments. Class mine indicated the comments is by administator.(这里主要就是修改下字体和边框的颜色,其他没有变动)
    5. 另外,我因为没有安装头像有关的插件,所以把get_avatar相关的代码从 comment_reply里删除了,好像是在第80行的样子。

    相关日志

    ««« WP-PageNavi 2.20–WP分页插件                             ||  回首页 ||                             三亚之天空是我家 »»»

    || 标签:

    8 Comments »

    来说点什么 ?

     订阅评论