Hi,

After playing arround with the module I found out if one sets the number of allowed comments to one, the module dissables all functions of the comment, even the edit functionality. I think it should be possible to limit comments to one per node but still beeing able to edit that one comment.

thanks in advance

m-si

Comments

khanz’s picture

Facing the same issue. In any case user should be allowed to edit his own post.

tanvirahmad’s picture

Same issue.....:(

dalyn.cessac’s picture

Here is a patch that I made to fix the issue to allow users to edit their comments and also allows admins and the super admin to edit and delete comments if they have permission.

The issue was with line 50 that was closing the comments for the node which disables editing and deleting of any comments.

I also added the code to disable the add new comment node link if the limit is reached.

krystlc’s picture

the patch from #3 still applies to the current dev version 7.x-1.x-dev from 2013-Sep-30 (had to apply manually).

rcodina’s picture

Issue summary: View changes

Patch on #3 doesn't work for me with version 7.x-1.x-dev from 2013-Sep-30 because it allows to create more comments than limit by "Replying" one time after another. So "reply" link must be hidden too.

Also, if I comment this lines added by patch the result is the same. I think this peace of code is useless:

if (!empty($node->content['links']['comment']['#links']['comment-add'])) {
  unset($node->content['links']['comment']['#links']['comment-add']);
 }
rcodina’s picture

Status: Active » Needs work

We need a new patch!

rcodina’s picture

Status: Needs work » Needs review
StatusFileSize
new1.74 KB
guptas89’s picture

Patch on #7 is not working. Have some css issue but still user can reply on comment because as per patch#7 'reply' link only hidden by CSS. Good solution is to change the access of the comment reply link.

Collins405’s picture

#8 Didnt work for me, it just bought back the reply option again.

finex’s picture

I've tried patch #8: it works as expected: users without bypass permission doesn't see the reply link.

delacosta456’s picture

hi

The reply link (only)can be(without bypass permission) completly removed with the module Flat comment.. After enabling it , move to you content type setting page , in comment settings section (below publishing option)

patch #8: it works as expected for me too

delacosta456’s picture

ivnish’s picture

Status: Needs review » Closed (outdated)