Limit comment threading depth
| Project: | AJAX Comments |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed |
Jump to:
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
Yes, it could be done in next versions along with the thread folding.
#2
#3
Wow, terrific. Thank you.
#4
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
Simple css solution (for max thread depth: 5):
.indented .indented .indented .indented .indented {margin-left:0;
}
It works! Trust me :)
#6
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
Hmm... What I think about this:
What we have by default:
comment1comment1.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:
comment1comment1.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:
comment1comment1.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
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
Yes, that's exactly what I've try to say :)