I want to allow users to delete or edit comments they've made because commentics was implemented on my site for two days and somebody already complained that they cannot undo a mistake. =D
I theorized that I can change the comment submission function to write the user's PHP session into the "notes" portion of the comment's database entry (perhaps I'm mistaken, but it seems to be not used for anything much?), and then later when showing comments, make a test if the current viewer's PHP session matches the comment's stored PHP session and if the comment has no replies, then add a link to delete the comment.
Would that work, and how can I implement it? Potentially, it would be nice to allow users to edit their comments in the same fashion.
I theorized that I can change the comment submission function to write the user's PHP session into the "notes" portion of the comment's database entry (perhaps I'm mistaken, but it seems to be not used for anything much?), and then later when showing comments, make a test if the current viewer's PHP session matches the comment's stored PHP session and if the comment has no replies, then add a link to delete the comment.
Would that work, and how can I implement it? Potentially, it would be nice to allow users to edit their comments in the same fashion.