Delete own reply if last in queue

Events happening in the community are now at Drupal community events on www.drupal.org.
David Latapie's picture

Is it possible to allow deletion of a reply if and only if it is the last one in queue? This is a very common forum feature.

Example :

thread
reply #1 by user #1
reply #2 by user #2
reply #3 by user #1
reply #4 by user #1

I'd like user#1 to be able to delete reply #4, but not reply #3 (except once reply #4 is deleted, of course). Also, user#1 shall not be able to delete reply #1 and, of course, reply#2.

Does that make sense? Which modules are required and which settings are to be set?

Thanak you.

Comments

This is a very common forum

Kirk's picture

This is a very common forum feature.

I have never, ever seen this feature... What forum software does that?

Example of the last in queue feature

David Latapie's picture

A similar feature is visible here: I can edit this answer since it is the last one in queue, but I cannot edit the one before, because it is not the last one in queue. This proves that the "last in queue behaviour" is already present in Drupal. From edit to delete, there is just one small step, I believe.

phphBB, MyBB…

David Latapie's picture

It is shown by the presence of a small cross button on the upper-right corner of the last post, provided you are the author of the said post.

I can't find a screen capture over the top of my head, but I can assure I used it quite often (granted, I may have been moderator on the said forum by this moment).

I'd also be interested in this...

holgs's picture

.. but can't help with the answer sorry!

If you could put a feature

snufkin's picture

If you could put a feature request to commend_edited, I think i can squeeze it in there.

I understood comment_edited

David Latapie's picture

I understood comment_edited to be a module for adding an informative message, whilst my request is adding a function, not an information. I am afraid that, despite your goodwill, your module would not be the right one.

But I must have misundertood the purpose of your module. Could you clarify? Thank you.

No, you are completely right,

snufkin's picture

No, you are completely right, its just that I already got and implemented a few requests that involved changing the way commenting, and their edit works (eg it provides a time limit for commenting on nodes now) that I thought one more cant hurt.

Maybe it would be better for both my module and for the future of such features to have a new module where we can pour in these comment improvements.

Nodecomment

michelle's picture

If you're going to make a new module, please consider making one that can support nodecomment as well.

Michelle

Yeah, I wanted to talk to you

snufkin's picture

Yeah, I wanted to talk to you about it beforehand anyway, I only have some insight into what features are required because of the commend_edited's issue queue.

I've opened http://drupal.org/project/advanced_comment for this. I first will migrate all the non-comment edit related messages to it, then i'll take a look what other interesting features we should implement, incl the one mentioned here.

I agree

David Latapie's picture

Either create a new module, or rename the existing module. Drupal's tradition is to keep things atomical.

State of the issue?

David Latapie's picture

Did you create a new module? What is its link?

Thank you.

its in the comment above...

Done

David Latapie's picture

Done :)

Thank you!