Keyvan Minoukadeh

WordPress Paged Comments Plugin

Filed under: General — Keyvan @ 12:24 am

Paged Comments is a plugin for WordPress to allow comment paging. Useful for those popular blog entries receiving many comments, or a simple guestbook page within WordPress.

Features

  • Comment ordering: show latest comments first, or last
  • Specify number of comments to display per page
  • Enable paging for all posts and pages, or on a per-post basis
  • Give users the choice to view all comments on one page with a ’show all’ link
  • Specify the first or last page of comments to load by default
  • See paged-comments-config-sample.php for more

Download — Latest Version

Related Downloads

Installation (for Wordpress 2.3+)

If you’re upgrading from a previous version, skip these installation steps and read the upgrade steps.

  1. Download and extract plugin files to a folder locally.
  2. Read through and edit paged-comments-config-sample.php to configure, then save the file as paged-comments-config.php.
  3. Upload the whole paged-comments directory to /wp-content/plugins/. The plugin files should now be in /wp-content/plugins/paged-comments/.
  4. Enable the plugin through the WordPress admin interface. That’s it!

Optional Steps

  • To customise the template to work better with your theme: Open the plugin’s themes folder and find the subfolder corresponding to the WordPress theme you’d like paged comments enabled on (or if your theme isn’t listed, choose the ‘default’ folder). Upload comments-paged.php to the appropriate WordPress theme folder (found in [wordpress]/wp-content/themes/).

    For example, if you’re using the default WordPress theme, copy [paged-comments-plugin]/themes/default/comments-paged.php to [wordpress]/wp-content/themes/default/. (The plugin always tries to load comments-paged.php from your active theme folder first.)

    Make any modifications to comments-paged.php. The file is based on the comments.php file, so if your theme is very different it might be easier to copy in the necessary elements from paged-comments.php. View the diff report to see what you need to change.

Examples of Use

The comments on this page are handled by the plugin, but it’s also used by the following sites:

Questions?

Donate

I work on this plugin in my spare time. If you find it useful, please consider donating to help me continue work on the plugin. (This plugin is, and will remain, free software, please only donate if you want to.)

This month I’ve received £0 ($0/€0) :(

Paid Support

If you run a commercial site and you’re having difficulty setting up paged comments, I now offer paid support. Feel free to get in touch: keyvan (at) k1m.com

744 Responses to “WordPress Paged Comments Plugin”

Pages: « 7550 49 48 47 46 [45] 44 43 42 41 401 » Show All

  • 450
    Keyvan

    Greg: Regarding the comment page number issue, I’ll consider adding that as an option (or maybe make it the default behaviour) in a future version. For the time being you should be able to check if the requested comment page ($_GET['cp']) is greater than the actual comment page number displayed:

    if ($_GET['cp'] > $paged_comments->pager->get_current_page()) {
    /* $_GET['cp'] is an invalid page number */ }

    The problem is, this information is only retrieved and made available when WordPress comes to process the comments. (So the code above should be in comments-paged.php.) By that time WordPress will have already outputted the post’s content. In a future version I’m going to make functions available that will calculate paging information at any stage. So, for example, you could serve up a 404 if you discover the requested comment page is invalid.

    Regarding the search plugin, you’re right, it does appear to have disappeared. I’ll consider bundling it with the next version as a separate plugin.

  • 449
    GregM

    And another question, Keyvan!

    Could you point us in the direction of the search-comments plugin you use just below the comment page navigation? I’ve had a look around, and the only references I can find to it seem to lead to a spamified domain. Is it still being developed, or has it become an orphan? (No mention in the WP plugins databases at wordpress.org or wp-plugins.net…)

    All the best,
    Greg

  • 448
    PJBLOG转Wordpres全指南 - 漫步人生

    [...] 我只列处了一些必备的功能,有这些功能就可以满足博客的顺利运行,也基本可以满足要求, 如果你想功能越来越强大,可以自己再去找找,不过我建议,先用上这些必须满足的功能,先吧转换过程完成,强化的工作可以到后面去做,一口吃不成胖子,插件 看多了也会让自己头晕,所以你可以先跳过后面斜体这一部分。 我再简单列几个吧: WP AJAX Edit Comments以AJAX形式允许用户在一定时间内修改评论,效果可以见我的评论系统,还是蛮好用的,各方评价都很高; WP-UserOnline显示在线用户情况,我还是喜欢这个功能的; Paged Comments对评论进行分页,如果你的留言很多的话,而且我在后面提到制作留言本的时候也会用到这个功能; FireStats流 量统计,它的功能真的很强大,对历史浏览进行统计,数据很全面,评论里的国旗小标签也就是它实现的,不过任何统计插件都要对数据库进行反复读写,如果你买 的服务器环境不是很好,那可以考虑使用。但是,这个插件统计网站的总访问量的时候,是根据数据库里的记录数来确定的,所以当你定期清理数据库的统计信息 时,总访问量也会改变,这点是我难以忍受的,这外国人的脑子怎么这样。所以我稍微改了下这功能,如果有人需要可以问我要,在这里我就不多说了。 Akismet是wp自带的饭垃圾评论的插件,因为我的博客域名刚换过,垃圾评论还不多,所以我还没启动,你要是要用可以去看看,它需要到wp申请个key什么的好像,应该不难用,其它也有很多反垃圾留言的方法,可以自己去了解下。 [...]

  • 447
    GregM

    Howdy Keyvan,

    Outstanding!

    Just a comparatively minor question/feature request, which I think is straightforward but not quite straightforward enough for me to undertake myself…

    Is there some way to detect whether a user has entered a comment page number which would take them beyond the total number of pages, and return some message to that effect — rather than just reproducing the highest available comments page, as happens currently? I.e., at the moment, if I ask for comment page number 1234567890 on this post, I just see the highest available comment page (currently 45). Would there be a way to return something (probably via the template) saying “Sorry, we don’t have that many comments pages”, or something to that effect? Something like a call to check whether the value of $_GET['cp'] is greater than $num_pages…?

    Many thanks,
    Greg

  • 446
    Desde hoy ofrecemos feeds completos y con flash video =A= Aeromental

    [...] Mi próxima meta será ver la factibilidad de poder usar Ajax para los comentarios, cosa de no tener que recargar la página. No se si será posible, dado que uso el plugin Math Comment Spam Protection que controla si un comentario se publica y me evita recibir SPAM y el plugin Paged Comments que pagina los comentarios y los reordena de manera descendente. [...]

  • 445
    [教學] WordPress Comment 分頁模式 | 艾德的部落格天空 | 亂寫、亂拍、亂來。 — 持續亂改更新中 —

    [...] 這次官方的版本已經出 WordPress Paged Comments Plugin 2.6.4 版。 [...]

  • 444
    Anand

    Great plugin!

    I finally got it working. I have a question.
    I have 2 pages where you can leave comments, but they have different layouts. Is it possible to copy comments-paged.php, rename it and use that file?

  • 443
    asdf29

    thank you ;)

  • 442
    Keyvan

    ph3s: Please disable the Reverse Order Comments plugin first. The two plugins are not compatible.

  • 441
    ph3s

    i’m sorry i have got an error :(
    could u help me please

    Fatal error: Call to undefined function: ro_paged_comments_template() in /home/…/wp-content/plugins/paged-comments/paged-comments.php(90) : eval()’d code on line 21

Pages: « 7550 49 48 47 46 [45] 44 43 42 41 401 » Show All

Leave a Reply