Remove Edit and Delete from User's Comments v1.1 Remove Edit and Delete from User's Comments v1.1
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Remove Edit and Delete from User's Comments v1.1

Started by Joe Carver, August 13, 2009, 10:04:22 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Joe Carver

This plugin will remove the Edit and Delete buttons from Comments. Only Administrators and groups you define will be able to make changes to their comments.
   
Version 1.1 features:  Configuration file to specify Groups
   
   To install:

   1) Download   cpg1.4.x_plugin_remove_edit_v1.1 to your computer
   
   2) Use plugin manager to Browse - Upload - Install   cpg1.4.x_plugin_remove_edit_v1.1


   To Add Groups allowed to edit and delete their comments:
      
   1) Edit the file: plugins/remove_edit/remove_config.php. Add your Groups, standard Coppermine and custom groups are allowed. Separate the Group names with a comma (,).         
   
Example: To add Registered as a Group allowed to edit their Comments

Find this line:

   $NOEDIT_DISABLE = array('edit_list' => 'Administrators'

Change to:

   $NOEDIT_DISABLE = array('edit_list' => 'Administrators,Registered'



Admins. by default have control over all comments.

Tested to function with cpg version 1.4.26

mahdi1234

Nice plugin :)

Would it be possible to add feature to show this only for newly added comments, but not display for older ones?

Example would be something like - if comment older than 5 mins remove button(s), else show - this would be to allow people to correct typos, but not be able to touch older posts.

Joe Carver

Thanks

Quote from: mahdi1234 on August 31, 2009, 12:38:09 AM
Would it be possible to add feature to show this only for newly added comments, but not display for older ones

Yes, I think it is possible, but would be a bit too much for me at the moment.

However, it is a good idea and I will keep it in mind.