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.

32 Comments

Go to Comment Form »
  1.   ..::DeUCeD::.. said:

    26-10-2007 @ 10:13

    [+]

    That's a long test comment so click on [+] or Open : If this plugin was pretty as a girl i 'd fall in love with her but then again she 'd be mad with me who would always looking under her skirt t... ...

  2.   Lorenzo Verniani said:

    04-12-2007 @ 15:00

    [-]

    Beautiful plugin!

  3.   ..::DeUCeD::.. said:

    04-12-2007 @ 15:03

    [-]

    hey thx Lorenzo :)

  4.   Andres said:

    06-12-2007 @ 21:55

    [-]

    Really nice plugin

  5.   ..::DeUCeD::.. said:

    07-12-2007 @ 08:46

    [-]

    Thx for your comment Andres. Have a nice day and keep a nice blog!

  6.   fototesserablog said:

    09-12-2007 @ 17:08

    [+]

    NICE PLUGIN ... Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Fusce non orci eget justo facilisis mattis. In eu libero. Sed condimentum nunc commodo massa. Quisque vitae magna. Maecenas... ...

  7.   Opera said:

    11-12-2007 @ 13:32

    [-]

    Cool!
    And seems that works with OPERA browser too.
    Shouldn’t you mention it?
    Lot’s of ppl use it.
    And how about Safari?

  8.   ..::DeUCeD::.. said:

    11-12-2007 @ 15:20

    [-]

    Hey Opera, as a matter of fact it will work with any browser supports javascript. But i will mention it at plugins’ compatibility section. Just don’t ask me to get a Mac! :mrgreen:

  9.   plhu said:

    14-12-2007 @ 11:30

    [-]

    cool plugin! I’m trying it out, thanks.

  10.   evaNz said:

    14-12-2007 @ 13:45

    [-]

    cool plug-in! I like it!

  11.   Dave said:

    17-12-2007 @ 13:56

    [-]

    Hi ..::DeUCeD::.., really nice plugin, but i’ve found that you have to click twice in order to show comments in Safari. Any chance of a fix? (since safari has made it’s way onto windows too now ;-) )

  12.   ..::DeUCeD::.. said:

    17-12-2007 @ 15:02

    [+]

    Well Dave, BUG is FIXED with latest release v3.1 it's not the Safari but every browser. What happens is that the first time you wanna open a comment you need to click it twice but the next time the sa... ...

  13.   JTPRATT's Blogging Mistakes said:

    09-01-2008 @ 01:27

    [-]

    Just wanted you to know that I love your plugin, and I’ve included it in my latest post “Rock Start Wordpress Comments“.

  14.   music said:

    09-01-2008 @ 05:19

    [-]

    very interesting.
    i’m adding in RSS Reader

  15.   ..::DeUCeD::.. said:

    09-01-2008 @ 08:52

    [-]

    Thx JTPRATTT, I’m glad you find it useful and you liked it and honored to include it at your very interesting blog you got out there there!

    Thx music :)

  16.   The-Caprice.Org » Blog Archive » Vida e Morte said:

    18-01-2008 @ 16:28

    [-]

    [...] Collapsible comments [...]

  17.   Collapsible Comments_Wordpress plugin said:

    22-01-2008 @ 17:02

    [-]

    [...] Plugin Homepage [...]

  18.   ron said:

    27-02-2008 @ 13:37

    [-]

    nice plugin, but how to change that it show only 10 word’s or better only 80letters?? please send mi a mail how to do!!

  19.   ..::DeUCeD::.. said:

    27-02-2008 @ 13:48

    [+]

    Unfortunately the EXCERPT of a comment cannot accept any parameters but "returns" only the first 20 words of a comment and this cannot be changed. If WordPress core developers will fix it in a next re... ...

  20.   me an myself said:

    16-03-2008 @ 15:28

    [-]

    this is a testcomment… i hope i like it *g*

  21.   Hannes said:

    19-03-2008 @ 01:39

    [-]

    A very nice plugin.

    Thank you.

  22.   Confused said:

    10-04-2008 @ 10:44

    [+]

    Oh no. You probably are going to hate me soon. I tried to install this plugin and have run into some problems - mainly that the expression in the comments.php that you want me to change is not there. ... ...

  23.   ..::DeUCeD::.. said:

    10-04-2008 @ 11:03

    [-]

    But it’s easier than you imagine! There are two lines, Line 43 and Line 69. Replace comment_text() with collapsiblecomments() and take a look.

  24.   Confused said:

    12-04-2008 @ 07:58

    [-]

    Thank you soooo much!! It works!! I’m really excited! Odd thing, though - I could’ve sworn I tried that. Oh well. Now it works! Yippieh! Off to test your shout stream plugin. Will report back!

  25.   Kris Parker said:

    24-04-2008 @ 23:03

    [+]

    Updated to Version 3.4 and got this. Plugin could not be activated because it triggered a fatal error. Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /localhost/wp-content/plugins/ c... ...

  26.   ..::DeUCeD::.. said:

    24-04-2008 @ 23:37

    [-]

    Well Kris it was PHP 4.X.X message. I had only tested in PHP v5.2 but, anyway GET new version 3.6 and it should work! And tell your (local)host to upgrade. ;)

  27.   Kris Parker said:

    29-04-2008 @ 00:20

    [-]

    Thanks ..::DeUCeD::..

    No errors, thanks for the backward compatibility ; )

  28.   Sergio said:

    28-06-2008 @ 09:11

    [-]

    Hermoso. Realmente maravilloso plugin. :)
    Mis felicitaciones y agradecimientos.

    May I tweek it a little?

    Cheers

  29.   ..::DeUCeD::.. said:

    28-06-2008 @ 09:22

    [+]

    Hi Sergio, All wordpress plugins are released under GNU/GPL licence. That means you can change it, tweak it, fork it, do whatever you wanna do with it and use it wherever you like! I'm also declari... ...

  30.   Timmy said:

    21-07-2008 @ 16:54

    [-]

    You suggest changing:

    ”” with the ””

    I had a look at comment.php file and I can mine looks like this

    ”” without the ‘;’

    So do I need to insert ”” without the ‘;’ too?

  31.   ..::DeUCeD::.. said:

    22-07-2008 @ 08:38

    [-]

    Hi Timmy, replace comment_text() with collapsiblecomments() without ; and you should be OK.

  32.   mommaroodles said:

    23-07-2008 @ 02:21

    [-]

    Excellent plugin - Just what I’ve been looking for - thank You sooo much :)


Post a Comment

Are you a SPAMMER?   YES     NO   (required)