forum.coppermine-gallery.net

Support => cpg1.4 plugins => cpg1.4.x Support => Older/other versions => cpg1.4 plugin contributions => Topic started by: Joe Carver on August 13, 2009, 10:04:22 pm

Title: Remove Edit and Delete from User's Comments v1.1
Post by: Joe Carver on August 13, 2009, 10:04:22 pm
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

Code: [Select]
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
Title: Re: Remove Edit and Delete from User's Comments v1.1
Post by: mahdi1234 on August 31, 2009, 12:38:09 am
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.
Title: Re: Remove Edit and Delete from User's Comments v1.1
Post by: Joe Carver on August 31, 2009, 01:49:27 am
Thanks

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.
Title: Re: Remove Edit and Delete from User's Comments v1.1
Post by: andrewz on September 08, 2010, 10:38:40 am
Good plugins!