Collapsible Comments is my plugin for WordPress. It was created for my personall needs and because i couldn’t find any other plugin to show a few words of each comment and open the full comment text by choice. Fell free to try it, share your opinion with me and make any suggestions!

  • Info

Collapsible Comments version 3.8
Updated @ 21/07/2008
Download Collapsible Comments
(from the Wordpress Repository)

  • Description

Collapsible Comments shows an excerpt of each comment on your blog (the first characters of each comment) and you can expand any comment inline by demand. That means you don’t have to scroll too deep to read the last comment and you can read only the comment you want without destructing your attention (or getting bored). It was developed for my needs because i get really long comments and the readers found annoying scrolling down to read the last unread comments (so as I).

  • Usage

After the succesfull installation you will see the first 130 characters of each comment and a link [+] which you can click it to open the box with the comment text. After reading it you could leave it opened and go to another one or close it by clicking the [-] link. There are also two additional links [Open ↓] and [Close ↑] which they also do the same job. Texts can be changed in collapsible-comments.php file. The separate CSS file has been removed to avoid multiple http requests but you can easily give your own style at the comment box by opening collapsible-comments.php file. There you can define the number of characters from which a comment should be in an “opened” or “closed” state by changing the value of $ccTEXT_lenght variable. Comments with less characters will start opened. There’s another variable named $CCstyle and is used to apply a style on comments and comment box. After that you are ready!

You can also leave a test comment in this page if you want to see it in action but make it long, more than 200 characters!

  • Credits

Collapsible Comments is based on the Javascript i found on Arvind Satyanarayan example which toggles the visibility of multiple elements on a page, see the code in his website.

62 Comments in 4 pages

Go to Comment Form »
  •  nacco said:

    22-01-2010 @ 14:24 [ID:11156]

    [-]

    It doesn’t work on my 2.9.1 installation with Sandbox theme. I’m checking thie …

  •  ..::DeUCeD::.. said:

    22-01-2010 @ 14:56 [ID:11157]

    [+]

    It does (as you can see i'm using latest WP) but it requires a bit of tweaking functions.php file in your theme directory so if you can handle php files then go straight to my forums and read what you should do to make it work. If you like it try it. Unfortunately it doesnt work "out of the box" ... ...

Post a Comment

Are you a SPAMMER?   YES     NO   (required)