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 £10 ($16/€12) :)

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

758 Responses to “WordPress Paged Comments Plugin”

Pages: « 7636 35 34 33 32 [31] 30 29 28 27 261 » Show All

  • 310
    Wordpress comments at Dennys’ blog

    [...] 最後就是, 當你的 comment 多到某個程度的時候, 可能就需要分頁了, 可以試試看 Paged Comments, 我目前還用不到, 等需要時再研究好了. 不過之前的感覺是 blog 留言太多, 實在很難用, 光 browser 載入就很久了, 但為了這個去弄一個 phpBB 或是 SMF 好像又有點小題大作… [...]

  • 309
    patung

    Hi Kevyan, sorry, I can’t imagine why but it still doesn’t work. The custom field is definitely there, Key - paged_comments, Value - on.

  • 308
    Keyvan

    kretzschmar: Thanks! I’ll take a look and link to it soon.
    Do you know if this will cause problems for people without the gettext package? (I have no experience with gettext.)

    Gi: Thanks for telling me about this. The percent (%) symbols in your URL are causing the problem. I’ve just updated the plugin to handle URLs with the percent symbol in. Please try with the latest release.

    patung: I think WP2.1 requires the use of a different function for retrieving custom fields. The latest release should fix the problem. Please try and let me know.

    To upgrade, simply replace paged-comments.php with the one in the latest release (no need to touch the config file).

  • 307
    Gi

    I forgot to tell you that this is happening because this post has more than 150 comments. Where is the limit in the config…

  • 306
    patung

    Kevyan,

    It works fine for me on 2.1 except when I try have config like this:

    $paged_comments->all_posts = false;
    $paged_comments->all_pages = false;
    $paged_comments->per_page = 10;
    $paged_comments->ordering = ‘ASC’;
    $paged_comments->fill_last_page = false;
    $paged_comments->page_range = 11;
    $paged_comments->fancy_url = true;
    $paged_comments->show_all_option = true;
    $paged_comments->show_all_ordering = ‘ASC’;
    $paged_comments->default_page = ‘auto’;

    I add a custom field to a post with more than 10 comments, ‘paged_comments’ with the value ‘on’, but it doesn’t paginate, the paged-comments.php file is not getting called.

  • 305
    Gi

    Hi, I installed your plugin in my blog, was working fine in all post except this one (http://www.parachicas.net/celebrities/2006/07/%c2%bfcuanto-miden-las-famosas-mas-bajitas/) showing this error:

    Warning: sprintf() [function.sprintf]: Too few arguments in /domains/mydomain.net/public_html/wp-content/plugins/paged-comments.php on line 696

    Can you help me?

  • 304
    kretzschmar

    Hi,
    i needed a german version of your plugin. Therefore i localized it (gettext). Feel free to use my code.

    Ich habe das Plugin auf deutsch übersetzt. Es ist eine vollständige Lokalisation, sodass die Strings auf englischen Blogs in Englisch und auf deutschen Blogs in Deutsch erscheinen.

    Paged-Comments (german)

  • 303
    Keyvan

    Joseph: The new version (2007-01-30) fixes the RSS feed issue. Thanks for raising this.

    Anja: I’m not sure why you have an issue with the post preview. I upgraded my WP testbed setup to 2.0.7 and didn’t have a problem - it correctly displayed the post and the comment page numbers too in the preview. I then upgraded to 2.1 and it still appears to work fine. Anyone else experience a problem with the post preview misbehaving while the Paged Comments plugin is active?

    Cristian: If I get some time I’ll have a look, but unfortunately I can’t look into every compatibility issue between this and other plugins. It’s hard enough keeping up with WordPress developments. :)

    Ajay: It appears to work fine on WP 2.1. I upgraded my WP2 testbed to the latest version and haven’t noticed any problems. Although I haven’t tested extensively.

    Axel: I don’t have time right now to create custom templates for other themes. It might work fine with the bundled ‘default’ template, and if not you should be able to move the plugin code from the default template to your theme’s template.

    General Plugin Compatibility Issues
    If it’s relatively easy to make this plugin compatible with another plugin (especially one that you feel users of this plugin are likely to install alongside it), then please submit patches and I’ll consider them for the next release.
    There are too many plugins for me to look into, so it’s likely that when I’m working on this I’ll be accommodating plugins/features that I use rather than ones you/others use.

  • 302
    oz

    Also, is there a way to tweak the “recent comments” as clicking on the recent comments in the sidebar does not take us to the comment on that page.

  • 301
    oz

    I installed this plugin and works really fine… just two issues…

    1. I don’t see my Yahoo/MSN Style Smileys that commenters use to click and put in their comments.

    2. All images that decorate commenter’s line has disappeared.

    Could you please advise on how I can get 1 & 2 back.

Pages: « 7636 35 34 33 32 [31] 30 29 28 27 261 » Show All

Leave a Reply