Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Just a thought... When the time limit is set on editing a comment, instead of disabling the comment form and adding a user message, why not just disable the edit link from within the comment. Having the edit link still visible gives the user the impression that he or she can still edit the comment.
Comments
Comment #1
snufkin CreditAttribution: snufkin commentedThats a valid point, I will look into this.
Comment #2
snufkin CreditAttribution: snufkin commentedI sadly have to postpone this until #374463: Alter comment links. gets resolved, there is a limitation within the core's link override handling regarding comments.
Comment #3
walker2238 CreditAttribution: walker2238 commentedYeah thought so, thats actually how I found this module. Thanks for the quick response.
Comment #4
mr.alinaki CreditAttribution: mr.alinaki commentedThere are some patches for D6 in this issue. If you patch comment.module, you can use this function:
Comment #5
walker2238 CreditAttribution: walker2238 commentedYeah I basically something along those lines already. Actually I just hacked it. All I was looking for was a way to remove and prevent users from editing a comment they made after 5 minutes of initial post.
I just hacked the comment_link function, seems to work.
However you say that there are some patches, do you have the links by chance? I think this module could really do a lot of neat things if it wasn't for that pesky function.
Comment #6
mr.alinaki CreditAttribution: mr.alinaki commentedHere: #374463: Alter comment links.
From neochief, in first post:
http://drupal.org/files/issues/comments_link_alter_D6.patch
Comment #7
walker2238 CreditAttribution: walker2238 commentedSweet, thanks for your help. Hope this becomes core.
Comment #8
ximo CreditAttribution: ximo commented#374463: Alter comment links. has finally been committed to Drupal 6 core! Now we just have to wait for 6.16 to be released. Someone please hack Drupal 6 and expose a huge security hole to get the security team going... :)
On a more serious note... I consider it safe to patch core comment.module with the patch that got committed (#39) for now, but this module would have to get working code to support this change, and you'd have to run the dev release until a stable release is out.
Comment #9
snufkin CreditAttribution: snufkin commentedThis is now assigned to the advanced comment module as it really doesn't fit under the comment_edited namespace.