First of all: if you interested in patch for higer versions of Drupal, look here: http://drupal.org/node/10700. Please do not change version of module in this issue and don't ask for portion here!

This patch add allows people to delete their own comments as long as there have been no subsequent replies added as children to that comment.

There is patch and already patched module file attached tested on Drupal 5.14.

CommentFileSizeAuthor
comment.zip18 KBgildedgod
delete_own_comment.patch2.42 KBgildedgod

Comments

gildedgod’s picture

Title: Patch for Drupal 5.14: ability to delete own comments wich have no replies » Patch for Drupal 5.14: Ability to delete own comments before reply is added

Just more correct title....

stevenpatz’s picture

Status: Needs review » Needs work

Could use some comments.

Also the following needs some rewording (Definitely don't need the exclamation points.):

drupal_set_message(t('The comment have replies!'));
     }
    } else {
	    drupal_set_message(t('The comment is not yours!'));
dave reid’s picture

Status: Needs work » Closed (won't fix)

FYI, new features can only be accepted for 7.x. You can still keep posting your D5 patch here to share with others, but I'm marking this officially 'won't fix' since there is a D7 version of the patch in #10700: Ability to delete own comments before reply is added.

gildedgod’s picture

spatz4000, sorry, i don't understand this phrase:

Could use some comments.

Please explain your request.

Dave Reid, it's ok. I separated this patch from 7.x thread only because it's a popular request and in #10700 (marked as 7.x issue) it's hard to find this patch for 5.x =)

gildedgod’s picture

And about messages - normal user will newer see them - link "delete" appears only if comment is posted by user and didn't have replies. So, this messages is only for "hackers", who can try to use URLs like "www.example.com/comment/delete_own/12312" directly.

Besides, feel free to change this messages :)

drupalina’s picture

Hi,
By googling this, I can see that "Deleting own comments" has long been a very demanded feature in 5.x

Would anyone be kind enough to attach here a hacked version of the core comment.module ??? So that non-coders who need this can just take it from here and replace it in their core.

thanks

drupalina’s picture

update: because I still don't know how to "patch", I downloaded the 18kb comment.zip file and uploaded its comment.module into my live site.

It worked! ;) Thanks a lot!!!

My Drupal is 5.12

v8powerage’s picture

Any hopes for D6?

dave reid’s picture

Status: Closed (won't fix) » Closed (duplicate)

More appropriate, this is a duplicate of #10700: Ability to delete own comments before reply is added.