WordPress.org

Ready to get started?Download WordPress

Forums

jQuery Comment Replies
Add numbers of replies (9 posts)

  1. Vlad
    Member
    Posted 1 year ago #

    Hello,
    Is it any way to add number of replies to comment?
    e.g.
    Show Replies (3)

    Thank you,
    Vlad

    http://wordpress.org/extend/plugins/jquery-expandable-comments/

  2. Doodlebee
    Member
    Plugin Author

    Posted 1 year ago #

    That all has to do with your styling. The plugin basically uses the default WordPress wp_list_comments method, just adds and extra class so you can have the expansion. if you want to change the default styling/layout of the comments themselves, then you need to use CSS, and/or add a function to your functions.php (to use a callback for the wp_list_comments) file to make those changes. My plugin doesn't touch any of that, but here's an example on how to do that in the codex.

  3. Doodlebee
    Member
    Plugin Author

    Posted 1 year ago #

    Bah, I misunderstood your question - sorry. No, not really. You could edit the core code to do that, but if I ever update, it'll overwrite your changes. As to how, though, I have no idea. I've never been asked that before.

    EDIT: seems there is a method to do it, and use use the callback function (as mentioned previously) to pull that off. In place of the text ("children") you could use $show, where $show:

    $options = get_option('bb_jcr_options');
    $show = $options['show_replies'];
  4. Vlad
    Member
    Posted 1 year ago #

    Thank you for reply, i'll check it and tell how it works

  5. Doodlebee
    Member
    Plugin Author

    Posted 11 months ago #

    Did you get this working? Or...?

  6. Vlad
    Member
    Posted 11 months ago #

    Sorry for the delay. Any way it doesn't work for me :(

  7. Doodlebee
    Member
    Plugin Author

    Posted 11 months ago #

    Let me see what I can pull off for you :)

  8. Sunnyj
    Member
    Posted 10 months ago #

    ^ Did you come up with a solution? I also need this.

  9. Doodlebee
    Member
    Plugin Author

    Posted 9 months ago #

    No, no solution. There isn't a function that does this kind of thing natively. I've been trying to get it to work, but there's a LOT that goes into it, and I haven't been able to get it going, because it's a pretty complex query.

    It's something I may be able to work into my next release, but unless I sort out exactly how to do it, I don't think it will.

    Now, an alternative is to get Show Total Conversations, and at the top of your comment list, instead of just saying how many comments there are, it'll say something like "5 comments with 4 threads") - but putting an actual comment *count* with each thread is proving to be far too complicated.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic