Limit comment threading depth

Flying Drupalist - December 28, 2008 - 05:23
Project:AJAX Comments
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:postponed
Description

This is outside of the stated scope of this module, but since you're making so many wonderful improvements to the way comments work, I thought I'd make this request.

Basically we all know how nuts comment threading can get, and how we can end up with a huge number of indentations and very small posts, and this is made especially easier since we can now easily and with good usability, reply to threads in ways that make a lot of sense.

So, I would like to make it impossible to add a comment after a depth of 3.

Comment
-comment
--comment
---comment
----comment NO WORK, auto defaults to->
---comment
Comment

This probably requires hooking into the comment module rather than just javascript, but it would be a superb feature. Thank you for this module.

#1

neochief - December 30, 2008 - 23:59

Yes, it could be done in next versions along with the thread folding.

#2

neochief - December 31, 2008 - 00:01
Status:active» postponed

#3

Flying Drupalist - December 31, 2008 - 00:04

Wow, terrific. Thank you.

#4

Kane - July 31, 2009 - 08:08

I'm looking forward for this feature.
I think in settings page could be new field with number of reples after which class .indented won't be added. You still will be able to reply to comments but they won't be moved to left via .indented margin.
Here's what i mean:
Max thread depth: 5
Comment1
Comment2
-Comment4 (depth 1)
--Comment5 (depth 2)
---Comment6 (depth 3)
----Comment7 (depth 4)
-----Comment8 (depth 5 - max)
-----Comment9 (reply to Comment 8 but because of max depth 5, new .indented class won't be added)
Comment3

Thanks for great module.

#5

Gyt - July 31, 2009 - 20:14

Simple css solution (for max thread depth: 5):

.indented .indented .indented .indented .indented {
margin-left:0;
}

It works! Trust me :)

#6

Kane - August 1, 2009 - 16:39

Holy ..., can't believe i haven't thought about that.

I've wrote some stuff which can help with this feature, check 9th comment here:
http://drupal.org/node/323237

#7

Mr.Alinaki - August 1, 2009 - 18:17

Hmm... What I think about this:
What we have by default:

comment1
  comment1.1
   comment1.1.1
    comment1.1.1.1
     comment1.1.1.1
      comment1.1.1.1.1
       comment1.1.1.1.1.1
       comment1.1.1.1.1.2
      comment1.1.1.1.2
       comment1.1.1.1.2.1
  comment1.2
comment2

What we have with CSS-solution:
comment1
  comment1.1
   comment1.1.1
    comment1.1.1.1
     comment1.1.1.1
      comment1.1.1.1.1
      comment1.1.1.1.1.1
      comment1.1.1.1.1.2
      comment1.1.1.1.2
      comment1.1.1.1.2.1
  comment1.2
comment2

As you can see, we don't know where are needed "replies to".

What we must have, I think:

comment1
  comment1.1
   comment1.1.1
    comment1.1.1.1
     comment1.1.1.1
      comment1.1.1.1.1
      comment1.1.1.1.2
      comment1.1.1.1.1.1
      comment1.1.1.1.1.2
      comment1.1.1.1.2.1
  comment1.2
comment2

#8

Flying Drupalist - August 1, 2009 - 18:26

There's still threading going on behind the scenes, allowing later comments to precede earlier comments.

Just removing the indentation would cause a lot of confusion.

#9

Mr.Alinaki - August 2, 2009 - 05:00

Yes, that's exactly what I've try to say :)

 
 

Drupal is a registered trademark of Dries Buytaert.