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.

Comments

neochief’s picture

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

neochief’s picture

Status: Active » Postponed
Flying Drupalist’s picture

Wow, terrific. Thank you.

Kane’s picture

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.

Gyt’s picture

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

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

It works! Trust me :)

Kane’s picture

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

mr.alinaki’s picture

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
Flying Drupalist’s picture

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.

mr.alinaki’s picture

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

rjbrown99’s picture

Assigned: Unassigned » rjbrown99
Status: Postponed » Active

I wrote another unpublished module that does exactly this. I'm torn whether or not to include it in this module or put it into a different module since it has applicability beyond just ajax.

I'm re-opening and I'll post a bit more to this but in the meantime if people are interested please feel free to chime in.

jvsteiner’s picture

Issue summary: View changes

#5

Bravo, Gyt, bravo...

I don't care much about comment order precedence in my application - this solution accomplishes 99% of what I would like with one line of code. No new module to install/update/configure, no php overhead... Nice one.

qzmenko’s picture

Status: Active » Closed (outdated)

Issue is closed because 6.x version is unsupported. Feel free to open new issue for 7.x or 8.x versions of module.