Delete own reply if last in queue

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by David Latapie on March 27, 2010 at 12:43am

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.

Categories: , , ,

Comments

This is a very common forum

Posted by Kirk on March 27, 2010 at 12:47am

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

Posted by David Latapie on March 27, 2010 at 1:23am

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...

Posted by David Latapie on March 27, 2010 at 1:03am

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...

Posted by holgs on March 27, 2010 at 3:43pm

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

If you could put a feature

Posted by snufkin on March 27, 2010 at 8:36pm

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

I understood comment_edited

Posted by David Latapie on March 27, 2010 at 8:49pm

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,

Posted by snufkin on March 27, 2010 at 9:32pm

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

Posted by michelle on March 27, 2010 at 11:21pm

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

Posted by snufkin on March 28, 2010 at 12:42am

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

Posted by David Latapie on March 28, 2010 at 1:49pm

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

State of the issue?

Posted by David Latapie on March 30, 2010 at 9:24am

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

Thank you.

its in the comment above...

Posted by snufkin on March 31, 2010 at 12:52am

Done

Posted by David Latapie on April 28, 2010 at 2:20am

AltStyle によって変換されたページ (->オリジナル) /