• Hello everyone. I have turned on nested replies to 3 levels deep. I have a question about this.

    First off, how come a commenter can reply to themselves? Is there a way to remove the reply button when it is in response to one’s own comment? This seems a bit strange.

    Ultimately, I would like to know if it’s possible to hide all of the reply links for a set of comments, once the final level is reached. Having them present allows comments to continue. to other “threads” that are limited to 3 levels.

    Thank you for any thoughts or advice.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator bcworkz

    (@bcworkz)

    Hey, it’s me again ??

    I’m totally speculating on commenters replying to themselves. I think the main reason is because it’s simpler and there’s little reason not to. For example, someone may posit a question, and subsequently figure it out for their self and post the answer as a reply to their own comment.

    Nearly anything is possible with custom PHP code, but you may not like what’s required. It also depends on your theme. Many themes output comments with wp_list_comments(), but plenty have their own routine. wp_list_comments() uses the Walker class to output levels of comments, so if your own version of the walker is passed to wp_list_comments(), you can manage whether to output the reply button based on the current user ID and the current comment’s author ID. No button if they match.

    It wouldn’t really stop someone from replying though, they could go one level up and reply. If no one else had yet replied in the same context, their second reply would appear immediately below their first. At the same level instead of another level down. Depending on your theme, there may be very little difference in the display.

    Hiding or suppressing the reply button would not totally prevent replies. Someone could still post a properly formed request to the server and it would be accepted unless you added additional checks to the usual new comment checks. It’s a very unlikely possibility though, so probably not worth adding the extra checks.

    Stopping all comments once level 3 is reached also involves the walker, as it is where what level we’re at is determined. Once the walker sees a level 3 comment, it needs to close the current post to new comments, which will suppress reply buttons through out. In this case, it will stop all future comments no matter what.

    TBH, the main reason I replied to your other topic which you solved yourself was so it would be taken off the “No Replies” list that a lot of us use. Using backticks or the code button is something we like to see, but it’s rarely worth replying solely for that alone. Anyone posting in the Developing forum has a fair chance of getting a reply from me. In other forums not so much, my kind of coder solutions don’t have much appeal outside of Developing ??

    Thread Starter shemakeswebsites

    (@shemakeswebsites)

    Hey you again. ?? Thank you for your input and response.

    I know that my theme utilizes the core wordpress functions for comments/replies. Unfortunately, I don’t know php well enough to create what I’m trying to achieve. Maybe I will look into hiring….do you take jobs?

    My site is a directory website. I want to allow users to leave reviews on listings and listing authors to respond and also give the OP a chance to offer a follow up reply, bringing the discussion to level 3. If closing discussions at level 3 stops all other comments, that just won’t work.

    I mainly want to offer 1 comment/reply from each – OP, Listing Author and OP. Just enough for some depth, but I don’t want to it to be abused and turned into a grievance discussion.

    Maybe it’s more trouble than it’s worth though. ??

    Thread Starter shemakeswebsites

    (@shemakeswebsites)

    ..well after thinking and over-thinking about this quest, I’ve decided that life would be a lot easier if I just limit the comment replies to level 2, which will keep it limited to just one reply to a comment.

    Thank you for listening to my rambling and the helpful advice you provide the community here.

    Moderator bcworkz

    (@bcworkz)

    Happy to help you think things through!

    I need to lay another forum rule on you. I often dislike being the “adult” here, but this is way more important than whether you use backticks or not. While I appreciate the offer, please never solicit work through these forums. Sadly, such suggestions can bring out people who may not have your best interests at heart, to put it politely. Please never consider any offers for help in exchange for money or anything of value in these forums from anyone. You are clearly a nice, honest person and only offered out of innocence and good will, so your account remains in good standing. No worries there, this is just FYI.

    In an overabundance of caution, I’m closing this topic to further replies. Feel free to start a new topic if you have any other questions.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Nested reply question’ is closed to new replies.