Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Remove Edit and Delete from User's Comments v1.1  (Read 28497 times)

0 Members and 1 Guest are viewing this topic.

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1543
  • aka 'i-imagine'
    • Home Page
Remove Edit and Delete from User's Comments v1.1
« 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
« Last Edit: February 02, 2010, 02:54:49 am by Joe Carver »
Logged

mahdi1234

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 60
Re: Remove Edit and Delete from User's Comments v1.1
« Reply #1 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.
Logged

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1543
  • aka 'i-imagine'
    • Home Page
Re: Remove Edit and Delete from User's Comments v1.1
« Reply #2 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.

andrewz

  • Coppermine newbie
  • Country: 00
  • Offline Offline
  • Posts: 2
Re: Remove Edit and Delete from User's Comments v1.1
« Reply #3 on: September 08, 2010, 10:38:40 am »

Good plugins!
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.