Paged comments

7th Feb 2006 ¥åßßå

The Styling Hook

We had a bit of a go-round on the best way to deliver the paged comments code, because one AstonishMe! team member wanted to include basic styling right into the code itself. In the end, that member was reminded of how much they disliked styling in the code and so we offer a styling hook instead.

In this case, the styling hook for the page controls, is the <div> class name (i.e., pgdCmnts). This allows one to style the link, the color and position for all elements contained in the <div>

Suggested CSS

Out of the box, the unstyled controls look a little clunky. By adding the following CSS to your skin's CSS file, you can smarten them up immediately and then play with the styling to suit your needs. Just copy and paste the code anywhere in your CSS file, though we generally recommend it go at the bottom.


/* --------------------------*/
/* AstonishMe Paged Comments */
/*    */
/* --------------------------*/
  {        margin:10px auto
.pgdCmnts span 
  {        color:#aaa; 
  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.