Ajax Comments-Reply修订版

Description in English is here

版本信息和下载地址


功能和效果

  • 下载,上传,激活,即可使用此插件,无需任何配置。
  • 回复无需刷新。
  • 可以直接回复留言,使得讨论更有针对性。
  • 文章作者的留言边框为红色,其余留言颜色轮变。
  • 留言预览
  • 留言分页 
  • 效果参考阅微堂

插件安装使用

  1. 从上面链接下载安装文件,解压缩后得到一个ajaxcomment文件夹 。
  2. 将ajaxcomment文件夹整个放入插件目录。
  3. 到管理界面启用Ajax Comments-Reply修订版插件。

插件卸载:

  1. 管理界面停用插件或者直接删除此插件文件。

插件自定义:

  1. comments.php里控制已有评论显示以及评论表格的显示,可修改,注意保留所有id, name, class信息。
  2. comment.css通过css控制评论栏的式样,可直接修改。
  3. comment.css中下列代码控制留言边框颜色
    .mine{
    border-color:red !important;
    }
    .borderc1{
    border-color:#663399 !important;
    }
    .borderc2{
    border-color:#ccc !important;
    } 

FAQ:

  1. Q:为什么这么丑?
    A:你可以自己设计显示式样,一切都在comment.css里面。欢迎提供优秀设计到插件里。
  2. Q:为何显示式样与阅微堂的不一样?
    A:有可能是你的模板的style.css也定义了一些留言部分式样,特别注意对于input, textarea的定义。
  3. Q:如何给留言分页?
    A:暂时没时间实现这个功能。
  4. Q:如果使留言倒序排列?
    A:如果你已有某插件实现了这个功能,ajax comment-reply自动如你所愿。否则在comments.php里取消下面代码的注释:
    // $comments = array_reverse($comments);

高阶用户插件优化(在做下列操作时请先确信你明白自己在做什么):

  1. 激活插件首次使用(留言)后,注释或者删除comment-reply.php里的下列代码
    add_action('wp_head','reply_column_checker');
  2. 合并comment.css到你的模板目录下的style.css,comment.js到你的主js文件(没有就算了),并适当修改comment-reply.php里的commentreply_load_scripts函数的定义。

To Do:

  • 增加对一些常用的插件比如留言用户头像等的自动支持。

补记:此插件的1.0版为懶懶喵日記原创,经过阅微堂的多次修改后代码已经面目全非,另外此修订版增加了一些功能和很多细节的处理,特此说明。

提交bug请在此留言或者联系mathzqy at gmail dot com,谢谢。

查看更多关于的内容。

你可能感兴趣的
相关文章

441条留言 -> 跳到留言表格

    391 old comments are not displayed. Click to display all comments
  • At 2008.10.02 12:27, justin said:

    我也想看看效果

    • At 2008.10.16 03:21, mzdbxqh said:

      博客用了jquery菜单,结果跟插件冲突了。博主能否提供解决方法?谢谢了!
      http://blog.gzauto.edu.cn/?p=209
      教育网打开比较慢,见谅

      • At 2008.10.16 10:39, zhiqiang said:

        等一等,2.7有可能加入原生态的此插件类似功能的支持。

        • At 2008.10.16 14:22, mzdbxqh said:

          谢谢博主

      • [...] Ajax Edit Comments 之前有在使用Ajax Comments-Reply,感觉Ajax Comments-Reply直观一些,但是如果说道美观和方便的话我觉得WP Ajax Edit [...]

        • [...] 地址:http://zhiqiang.org/blog/plugin/ajaxcomment 10月 26th, 2008 in WP加油 | tags: Ajax, wordpress [...]

          • [...] Ajax Comments-Reply -- 一个强大的Wordpress留言增强插件. 可以实现留言回复, 回复通知, 留言预览, 限制每页留言数等功能. 集成了Gravatar头像显示. [...]

            • At 2008.10.31 18:08, popdo said:

              感觉确实是很不错的东东~不知道能不能用在最新版的wp上

              • At 2008.11.01 13:53, lwmv said:

                 ┆ ┆t┆s┆l┆d┆k┆
                 ┆ ┆e┆d┆f┆f┆s┆
                 ┆ ┆x┆f┆k┆a┆a┆
                 ┆ ┆t┆ ┆j┆s┆l┆
                 ┆ ┆ ┆ ┆a┆d┆j┆

                • At 2008.11.02 00:44, jKey said:

                  不错的插件,不过我想把头像改小一点,怎么弄啊?

                  • At 2008.11.12 02:25, Tuixy said:

                    修改插件里面的comment.css文件:

                    .avatar{ width:80px; height:80px; margin-top:-32px;
                    
                    • margin-top:-26px;
                    margin-right:-4px; float:right; padding:0 0 5px; background-repeat:no-repeat;}

                    把里面的两个80改为需要的就可以了。

                    刚才正好使用这个插件看到你的留言顺便说下·感谢博主分享这个插件!

                  • At 2008.11.03 19:25, Test poster said:

                    test comment

                    • At 2008.11.03 23:18, popdo said:

                      不错的东东哈!

                      • At 2008.11.09 22:42, 等等 said:

                         ┆ ┆︶┆效┆我┆
                         ┆ ┆ ┆果┆只┆
                         ┆ ┆ ┆ ┆是┆
                         ┆ ┆ ┆:┆试┆
                         ┆ ┆ ┆-┆试┆

                        • At 2008.11.11 20:02, Toybox said:

                          Just want to test it out! Good plugins~

                      • At 2008.11.12 02:37, Tuixy said:

                        已经在我博客上搞定,功能不错,而且还可以自由发挥,谢谢·

                        • [...] 使用Ajax Comments-Reply 插件来自阅微堂,可以实现读者留言的时候无需页面刷新,可以直接回复留言,留言预览,留言分页等,这里有详细的介绍,这个插件和我博客有点不兼容,由于本人技术有限,所以使用的时候省略了一些原来功能。 [...]

                          • At 2008.11.14 09:57, Outsider said:

                            Hi, I've installed the plugin and everything works fine except the one little gray square appearing in the left upper corner of every comment box. It seems a "list-style-type" square, but I can´t wipe it out through css.

                            Any help, please?

                            • At 2008.11.14 11:43, WordPress插件 - 秋天的阴影 said:

                              [...] 使用Ajax Comments-Reply 插件来自阅微堂,可以实现读者留言的时候无需页面刷新,可以直接回复留言,留言预览,留言分页等,这里有详细的介绍,这个插件和我博客有点不兼容,由于本人技术有限,所以使用的时候省略了一些原来功能。 [...]

                              • [...] P.S:说些和本文主题无关的话,前两天发现在我的Blog,访客无法发表评论,经过测试是WP Ajax Edit Comments插件和Ajax Comments-Reply插件同时使用造成的问题,已经停用了这两个插件,问题得到了解决,在这里对无法发表评论的同志表示歉意。同时感谢晓娅和朝阳小姐的提醒!让我了解到这个问题,因为注册用户是不受此问题影响的。 标签:Windows Live, 互联网 [...]

                                • [...] 8、Ajax Comments-Reply:将留言系统设置成Ajax形式,不用刷新即可添加评论。 [...]

                                  • At 2008.12.18 23:39, Dmitriy said:

                                    FYI, there is a bug that appears in 2.7. If the plugin is enabled, user is unable to have a static page set for the home page. Only blog posts. Weird, I know, but if plugin is disabled it works as designed.

                                    Dmitriy

                                    • At 2008.12.27 14:34, 林晨 said:

                                      我来试试

                                      • At 2009.01.02 20:32, regre said:

                                        我来试试

                                        • At 2009.01.10 02:39, gomee said:

                                          :shy FYI, there is a bug that appears in 2.7. If the plugin is enabled, user is unable to have a static page set for the home page. Only blog posts. Weird, I know, but if plugin is disabled it works as designed.

                                          Dmitriy

                                          • At 2009.01.10 23:44, hjhk said:

                                            FYI, there is a bug that appears in 2.7. If the plugin is enabled, user is unable to have a static page set for the home page. Only blog posts. Weird, I know, but if plugin is disabled it works as designed.

                                            Dmitriy

                                            • At 2009.01.12 16:42, 烈烛 said:

                                              老大,能不能把comments和trackpings分离一起做到插件里面,我看到你这里引用也是和评论在一起的,颇为不便啊!但是碍于我的theme太老,不好改,加上使用这个插件,所以没办法做到分离了。老大能不能想想办法?一次性解决问题?

                                              • At 2009.01.14 17:28, 烈烛 said:

                                                老大,我的评论框太宽了,跑到外面去了,在哪里调整啊?

                                                • At 2009.01.21 11:04, 店客 said:

                                                  看看效果先。。。

                                                  • At 2009.01.21 11:05, 店客 said:

                                                    还不错的效果。。。呵呵

                                                    • At 2009.02.06 08:41, yinheli said:

                                                      :-D
                                                      测试效果 哈哈

                                                      • At 2009.02.09 17:55, hfantasy said:

                                                        看看效果哈

                                                        • At 2009.02.11 13:45, ofans said:

                                                          好像用不了 :?

                                                          • At 2009.02.11 17:36, Young! said:

                                                            正在添加之中...

                                                            • At 2009.02.21 00:44, 现在的wordpress plugin » 杜海凡 said:

                                                              [...] Ajax Comments-Reply 无刷新单对单回复留言。我用的是阅微堂的修改版本。。。张对我帮助很多,呵呵@再次感谢他。。。 [...]

                                                              • At 2009.02.21 11:38, longzhong said:

                                                                看看效果哈

                                                                • At 2009.03.10 02:44, fulecar said:

                                                                  我是做英文站的,我想把评论上面的“没有评论”或者“4条评论”改成英文的,怎么改啊,我找了好久都没改好,不过我是用wp中文版的,希望能得到你的帮助,上面的网址就是我的留言页面,非常感谢!!!

                                                                  • At 2009.03.10 08:40, zhiqiang said:

                                                                    那个跟插件没有关系,你的WordPress系统还有模板自动翻译了那一句话。

                                                                    要改的话,把对应位置的类似_e这种函数取消掉即可。

                                                                  • At 2009.03.16 12:59, windstorm said:

                                                                    前两天我的站点突然出现所有文章都不能评论的情况,以评论就提示

                                                                    failed to add your comment

                                                                    我应该没对站点做什么改动。请问知道原因么?

                                                                    • At 2009.04.21 15:54, Sean said:

                                                                      我使用不成功 每次都提示failed!

                                                                      • At 2009.05.23 04:01, Karwin said:

                                                                        我来测试一下, 正准备给我的网站用一个...

                                                                        • At 2009.05.23 17:38, rander said:

                                                                          这个插件的留言速度相当快!!!

                                                                          • At 2009.05.27 21:30, seri said:

                                                                            测试一下,=。= 成测试版块了 囧

                                                                            • At 2009.06.07 02:21, pcxys said:

                                                                              不错的插件 就是不太会美化

                                                                              • At 2009.06.13 18:20, zwwooooo said:

                                                                                我也来测试效果

                                                                                • At 2009.06.19 09:31, aaaaaaa said:

                                                                                  :囧 测试效果

                                                                                  • At 2009.06.29 15:23, micogle said:

                                                                                    看看好不好~~~

                                                                                    • At 2009.07.01 21:10, 芒果 said:

                                                                                      再测试下

                                                                                    • At 2009.07.01 21:10, 芒果 said:

                                                                                      测试下效果

                                                                                      • At 2009.07.01 22:23, geuro said:

                                                                                        我也试下效果

                                                                                        391 old comments are not displayed. Click to display all comments

                                                                                        (Required)
                                                                                        (Required, not published)

                                                                                          B | I | U | D | 添加链接 | 插入引用 | 插入代码 | 插入表情 | | + | ?
                                                                                        guest | 注册 | BBS | 管理 | English | 繁體 | https
                                                                                        Loading...
                                                                                        Loading...
                                                                                        Loading...