I'm not able to get this module to work (I have set the permissions to what I believe are appropriate).

My situation:
- Using content profile for profiles
- Comments on the profile nodes are like a user's "wall"
- I want users to be able to delete other user's comments from their own wall
- Using views to display comments (wall)... is this the problem? I've added a views field for delete and edit links but they only show on my superuser account. (They did before installing module, no change since then)

Thanks!

Comments

andrenoronha’s picture

in fact, you can get this with this module: http://drupalmodules.com/module/user-comment

the delete comment module allows user to delete their own comments (which I still couldn't get to work)

robphillips’s picture

Status: Active » Closed (fixed)

This module does not currently integrate with the views fields and do not have plans to integrate it in the near future. With a little PHP knowledge you should be able to add a delete link into your view by creating a TPL for one of the fields. The PHP would look something like:

$comment = _comment_load($cid);
if (comment_delete_access_check($comment->cid)) {
  $links['comment_delete'] = array(
    'title' => t('delete'),
    'href' => "comment/delete/$comment->cid"
  );
}
toemaz’s picture

In case you need both modules usercomment & comment_delete to work together, check out this patch: #1242626: Make usercomment work with comment_delete