Paginated Comments

Paginated Comments is a plugin developed for my website on Spider Bites (BadSpiderBites.com). I have a ton of comments, many that include graphics and displaying 500 comments along with the post would create one of the slowest loading pages on the net!

You can download it from the Wordpress Repository.

Most blogs will limit or even worse, close comments once they reach a certain number - something you should never do on a blog! You can never have enough comments!

I searched for a plugin and could not find anything that offered a SE friendly solution. Paginated Comments is built with SE optimization in mind and gives you the ability to break your comments into pages. You can create pages based on size of comments so that no page of comments is greater than a certain file size, or, you can create pages based on number of posts per page (100 for example).

Another key feature is the ability to remove or provide an excerpt of the main text used on the first page of comments. This prevents duplicate content and will help your paginated comments become indexed.

Paginated Comments

Features of Paginated Comments

SYSTEM RECOMMENDATIONS

INSTALLING PAGINATED COMMENTS

  1. Unzip the package into an empty directory.
  2. Upload the entire directory “paginated-comments” to your Wordpress Plugin directory, default is: “/wp-content/plugins/”.
  3. Login to your WordPress Dashboard and go to the plugins section.
  4. Activate the Plugin.

SETTINGS

Paginated Comments offers a great number of features that can be managed from a simple sub-menu located inside the Settings Menu, in the following section we will give you a brief description of all the options.

PAGINATION

The pagination section provides you with a number of options for splitting multiple comments into pages. Pages require template modification in order to have this ability, posts do not. See: codex.wordpress.org/Include_Tags#The_Comments_Template for more information.

PERSONALIZATION

This section allows you to add information that will help make your comment pages more search engine friendly :)

Custom Fields

Paginated Comments allows you to override some of the previously discussed settings via custom fields, so you can personalize per post your settings :-).

Template Tags

From time to time blog owners, administrators or designers may find the default layout not suitable for their interest, in order to let you design your own layout, Paginated Comments provides you with certain functions that you can use within your template.

LICENSING

Paginated Comments has been released under the GNU Public License.

Further information about license its contained and described inside the file license.txt

20 comments

Read the comments left by other users below, or:

Andre
#1. May 7th, 2008, at 5:39 PM.

I allways get this error when i use the Template Tag: Warning: Division by zero in C:\xampp\htdocs\wordpress\wp-content\plugins\paginated-comments\paginated-comments.php(417) : eval()’d code on line 52

Jim
#2. May 8th, 2008, at 12:14 AM.

Hello Andre,

It was a bug that came to light when you didn’t have any comments and were sorting based on size. It has been fixed.

Thanks for the heads up!

Jim.

Lackfer
#3. May 8th, 2008, at 10:41 AM.

Hello,

I installed the plugin but the following image is what I see when using the Spanish version.

Spanish paginated comments

Thanks!

Jim
#4. May 8th, 2008, at 10:50 AM.

The translation system works perfectly - I’m guessing that your blog is not using UTF-8 and but something like Latin1 which would cause such text to appear. UTF-8 is the standard character-encoding for WordPress since version 2.2 and we support from 2.3.x.

The best you can do with such a setup is to recompile the “paginated-comments-es_ES.po” and use iso-8859-1 as the main character encoding.

It has been tested and retested with 2.3.x and it works great.

Hope that helps :)

Jim.

Andre
#5. May 9th, 2008, at 1:40 PM.

Some improvement you could do: when i click on the page numbers it would be better to jump to the comments anchor. Now the page reloads and i have to scroll down to the comments. You did this for Show all, but not for the numbers.

Jim
#6. May 9th, 2008, at 8:53 PM.

Thanks for taking the time to suggest an improvement- It’s completed and I’ll upload it later tonight or tomorrow.

Have a great weekend!

Jim.

Darkraisin
#7. May 17th, 2008, at 6:41 PM.

Hi
installed it but I get this error:

input name=”comments_page_default_dk” id=”comments_page_default_dk” value=”
Fatal error: Call to undefined function attribute_escape() in D:DomainsXXXXXX.comwwwrootwp-contentpluginspaginated-comments.php on line 236

any idea?

Thanks

g30rg3_x
#8. May 21st, 2008, at 12:56 AM.

@Darkraisin: Seems that you are running the plugin from and a unsupported version, cause the attribute_escape function is presented since version 2.0.6 and the plugin clearly states for WordPress 2.3.x or 2.5.x.

Regards Darkraisin && Jim

Dipo Tepede
#9. May 23rd, 2008, at 1:49 AM.

Dear Sir,

I tried activating the plugin and I got the following error:

Fatal error: Cannot redeclare class Pager in /home/dipo/public_html/wp-content/plugins/paginated-comments/classes/class.Pager.php on line 9

Please, help!

g30rg3_x
#10. May 26th, 2008, at 9:53 AM.

@Dipo Tepede:
You have installed paged and paginated comments in your blog. As you may know paginated comments is a fork based on paged comments so they are mutually excluded and only 1 can work at the time, so you have to choose between paged (older) or paginated (new and improved).

However in order to avoid collisions between other plugins, i think the class Pager should be renamed to Paginated_Comments_Pager.

Regards

Mosey
#11. June 1st, 2008, at 10:20 AM.

Just to let you know that the link to the ‘plugin’ page on WP Plugins Repository links only to your main site, rather than http://www.badspiderbites.com/paginated-comments/

p/s: Just wondering, but if paginated comments is a fork of paged comments, perhaps it might be worth mentioning this in the blurb too? :)

Erik
#12. June 11th, 2008, at 6:24 PM.

When I enable the comments, when I view the comments on the blog, it comes back with the following… I have Version 2.5.1.

<? the_date(”,”,”); ?>

<div class=”post” id=”post-”>
<a href=”" rel=”bookmark”>
— @

Sam
#13. June 13th, 2008, at 6:30 PM.

I am trying to edit some text like “Leave a Reply” - I was able to do it without any problems in comments.php but now that value is being overridden by some other file - where can I change that text and also the number format of the comment?

Thanks,

g30rg3_x
#14. June 15th, 2008, at 11:56 PM.

@Erik: Check if your php settings allow the use of short_tags, in case this option is disabled you would need to copy the file paginated-comments.php to your current theme directory (of any of two themes presented in the directory /themes inside the plugin directory), if this does not resolve your problem, then you should check if your PHP version meets the requirements.

@Sam: Inside the directory /themes/ of the plugin is were the “paginated-comments” themes relay, you can modify this files directly or just copy this file to your current theme-directory and change there.

Regards

Dmitry
#15. July 9th, 2008, at 5:02 AM.

Hello,
plugin installed but I get error:

Call to undefined function ro_Paginated_Comments_template() in /home/sdfgdghdf/public_html/xxxxxxx.com/wp-content/plugins/paginated-comments/paginated-comments.php(417) : eval()’d code on line 28

Please, help!

g30rg3_x
#16. July 10th, 2008, at 10:55 AM.

Hi Dmitry,

You have installed and setup the plugin “Reverse Order Comments” by Otaku, this plugin its incompatible with Paginated Comments Plugin, so before using/testing Paginated Comments you will need to deactivate (and uninstall in your theme) “Reverse Order Comments” Plugin by otaku.

I suggest you to use Paginated Comments instead of the “Reverse Order Comments” Plugin by otaku, cause Paginated Comments can do the same as the “Reverse Order Comments” Plugin with REALLY much more features than that plugin.

Regards

Vladimir
#17. July 17th, 2008, at 3:22 AM.

HI

The plugin is great piece of work !

If I may suggested few features for next update:
- do not automatically add comment numbers as this breaks the templates
- add comments navigation before comments (leave them after too)
- page numbers should always be named 1, 2, 3 no matter if it’s asc or desc
- navigation CSS editable within a plugin

I’ve been using this plugin which had it implemented http://blog.2i2j.com/plugins/wp-paged-comments

but was missing titles for each comment page.

Good job once more!

trevor
#18. July 17th, 2008, at 10:47 AM.

hi,
i’m trying to implement paginated comments on a PAGE (not post).

once i activate your plugin, it takes my page and changes it to say it has “the following sub-pages” and lists my main nav bar pages ??

also - it does not paginate the comments but instead gives me this error in the comment section:
Fatal error: Call to a member function on a non-object in /mysite.foo/wp-content/plugins/paginated-comments/paginated-comments.php on line 891

Would you have any advice as to what is happening there? thanks kindly!
trev

sam
#19. July 19th, 2008, at 4:42 PM.

Hi, Jim, great plug-in, I’ve been looking for something like it forever. I just have one question about it:

On my WP site, I have a custom Attachment.php page that I have hacked pretty extensively to get it to look the way I want it to. I have a lot of images on the site, and I use the attachment.php pretty extensively.

The problem with your plug-in is that, when activated, it sort of makes my attachment.php obsolete. I’m not sure what it does, I think it simply replaces my attachment.php with the standard default one — i.e. attachment.php is no longer loaded/use, I believe.

Is there a way to make the plug-in not do this?

Thanks, and again, great plugin!

Jim
#20. July 19th, 2008, at 6:00 PM.

@Vladimir:
If you read the personalization section you’ll see your issues are already covered. Anyone can do deep personalization over his/her wordpress powered blog template.

About static position of the number of pages: I found it really handy to have the most close pages rather than a 1,2,3,4,… even if the selected comment page is 50, i found it a little strange this behavior but thanks for the suggestion.

@trevor:
Weird, seems to be a template or plugin related issue, since the behavior you are describing is not part of the plugin.

Regards

Leave your comment...

If you want to leave your comment on this article, simply fill out the following information (all fields are required):




PLEASE: Send photos whenever possible; it helps others identify bites.
Send photos to jim@badspiderbites.com
*** I'll fix up the photos, so do not worry about format ***
NOTE: Not intended for medical advice. A response may not appear right away or at all. Please see our about page for details - thank you!

You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .