Active
Project:
Advanced comment
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Apr 2009 at 04:10 UTC
Updated:
13 Feb 2012 at 08:34 UTC
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 commentedThats a valid point, I will look into this.
Comment #2
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 commentedYeah thought so, thats actually how I found this module. Thanks for the quick response.
Comment #4
mr.alinaki commentedThere are some patches for D6 in this issue. If you patch comment.module, you can use this function:
Comment #5
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 commentedHere: #374463: Alter comment links.
From neochief, in first post:
http://drupal.org/files/issues/comments_link_alter_D6.patch
Comment #7
walker2238 commentedSweet, thanks for your help. Hope this becomes core.
Comment #8
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 commentedThis is now assigned to the advanced comment module as it really doesn't fit under the comment_edited namespace.