Paged comments

7th Feb 2006 ¥åßßå

Frequently Asked Questions

We have not yet been asked any questions regarding paged comments (other than "can it be done"? ;) )

Enhancement Suggestions

Of course, since designing the code, we've thought of several ways to make paged commenting even better. If you have any suggestions, please email us with them and we'll add them to the list. Even better, if you use this code and add these enhancements (or others), let us know and we'll post your changes and/or code for others to enjoy. You will be credited for any work you contribute.


  • Page Number Links: Rather than controls that navigate forward or backward a page at a time, they could consist of page number links. At a glance, visitors could see how many pages of comments there were. With a click, they could navigate to a page of their choosing. Additionally, an "all" link, could show all the comments (like b2evolution does by default) in one long, scrollable list. Here's a WordPress paged comment plugin example that utilizes such navigational controls.
  • Older->Newer Listing for Newer-Older Pages: People might like the idea of listing the newest comments first, because the newest comments are accessible. But reading comment #150 before #149, before #148, etc., makes it difficult to follow any threads. A better way would be to have the newest comments on the first page, but ordered on the page from oldest to newest, continuing in this manner all the way to the last page, which contains the oldest comments.

If your blog gets a lot of comments, it means two things: (1) You have a very active readership! (Congratulations); (2) You and visitors are probably tired of scrolling down a very long list of comments, just to see the latest one.

Take control of your blog's comments by PAGING THEM. By putting them into pages, you can always have the latest comments on the first page and easily navigate through the pages, using page navigation.

The following pages discuss how to get paged comments installed and working on your site. Detailed instructions are provided, along with cut'n-paste code and CSS styling suggestions.

If you want paged comments, come by and swipe the code.

(Note: AstonishMe! members have 60-day advance access to code, articles and plugins, before release to the general public. A portion of membership dues goes to support b2evolution development. Cost is less approximately $2US per month. Sign up with Astonish Me! today.

  1. Introduction
  2. Installation instructions
  3. CSS Styling of Page Controls
  4. FAQs & Enhancements


Comment from: dub27
Hi, using b2evolution 1.9.2

all going well until adapting the hit counter. For some reason, b2evolution does not like the [bg= code

error message:
Parse error: parse error, unexpected '[' in C:\Documents and Settings\HP_Administrator\My Documents\websites\b2evolution\blogs\inc\MODEL\items\_item.class.php on line 1134

should the [bg be in quotes? or is the code deprecated?


27/02/07 @ 15:15
Comment from: dub27
fyi 1.9.2

database plus_comments table has become "comments"

So instructions above for select from "from evo_plus_comments where"

need to be adapted to new table
27/02/07 @ 15:39
Comment from: dub27
Hi again,

I couldn't get this up and running, unfortunately with 1.9.2. Perhaps the mechanics have changed in relation to finding comments counts, or such. If you have an update for 1.9.2 will you let me know?

Thanks for your plugins/hacks!

27/02/07 @ 16:12
Hi Dub27,

The [bg= stuff is actually meant to be a background colour, but the bbcode renderer appears to have forgotten how to handle it :S

The table name is another error, it was the prefix of the tables in my db at the time, it really should read T_comments ( I've amended the name in the post, thanks for catching that ).

I've not actually tried this hack in my 1.9.2 install, when I get a free moment I'll give it a whirl and see if I can make it work.

27/02/07 @ 16:28
Comment from: dub27

I gave it another try, but not sure what the glitch is -- There are no error messages but there is no control mechanism in the comments panel and comments are not responding to the restriction ie 4 comments.

Any ideas?

Another idea you that might appeal to you in relation to this hack is this link --

it creates checkboxes for deleting multiple posts (I couldn't get it to work however, but really like the concept)

27/02/07 @ 23:51

Comments are closed for this post.