At least, that’s what I think.
I have the following code inside the exp:comment:entries tag
{if editable}
| <a href="#" class="edit_link">edit</a>
<div class="editCommentBox">
<textarea cols="70" rows="15">{comment_stripped}</textarea><br >
<input type="submit" name="cancel" value="Cancel" class="cancel_edit">
<input type="submit" name="save" value="Save" class="submit_edit">
</div>
{/if}The “Comment Edit Time Limit” is set to: 86400 seconds (24 hours)
Can edit comments in their own channel entries? - set to NO
Can edit comments in ANY channel entries? - set to NO
I thought that given all of the above, a member from this group should be able to
- see the edit link, and use it, for his own comments only
- unless that comments is older than 24 hours.
Instead, this member sees the edit link on all his comments, no matter how old they are, but none of the changes he makes are saved.
He does not see the edit link under other people’s comments.
Any idea what I am doing wrong?
——-
In case it is helpful: I tested things with different Comment Administration settings, and these were the results:
(All worked as it should, except where I added the *****. The edit link should not show up there at all.)
Test Configuration A:
Can edit comments in their own channel entries? - YES
Can edit comments in ANY channel entries? - NO
- Other member’s entry, but his own comment
- edit link shows but does not save changes *****
- Other member’s entry, but other people’s posts
- no edit link
- His own entry, his own comment
- edit link shows and works properly
- His own entry, but other people’s comments
- edit link shows and works properly
Test Configuration B:
Can edit comments in their own channel entries? - YES
Can edit comments in ANY channel entries? - NO
- Other member’s entry, but his own comment
- edit link shows and works properly
- Other member’s entry, but other people’s comments
- edit link shows and works properly
- His own entry, his own comment
- edit link shows and works properly
- His own entry, but other people’s comments
- edit link shows and works properly