Support Forum Project Downloads FAQ Documentation About Demo Tutorials Blog Plugins
November 21, 2009, 04:22:16 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Maintenance release cpg1.4.25 - upgrade recommended
The Coppermine development team is releasing an update for Coppermine in order to fix an issue with http uploads that could occur in particular versions of PHP.The fix is not security-critical, so if your gallery is running fine with cpg1.4.23 or cpg1.4.24 you don't need to upgrade. If you are running an older version than cpg1.4.23, you must update to this latest version as soon as possible because of the security impact (the past few maintenance releases before cpg1.4.24 all were security-related).
[more]
   Home   Help Search Board rules Login Register  
Pages: [1]   Go Down
  Send this topic  |  Print  
Author Topic: Remove Edit and Delete from User's Comments v1.1  (Read 1632 times)
0 Members and 1 Guest are viewing this topic.
i-imagine Topic starter
Supporter
****
Gender: Male
United States United States

Posts: 477

aka Joe Carver


WWW
« on: August 13, 2009, 09: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:
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.

* cpg1.4.x_plugin_remove_edit_v1.1.zip (3.19 KB - downloaded 80 times.)
« Last Edit: October 30, 2009, 10:59:08 am by i-imagine » Logged

Enjoying the power of Coppermine - Art + Artists Community Gallery and My Personal Photo Gallery
mahdi1234
Coppermine regular visitor
**
Posts: 51


« Reply #1 on: August 30, 2009, 11:38:09 pm »

Nice plugin Smiley

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
i-imagine Topic starter
Supporter
****
Gender: Male
United States United States

Posts: 477

aka Joe Carver


WWW
« Reply #2 on: August 31, 2009, 12: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.
Logged

Enjoying the power of Coppermine - Art + Artists Community Gallery and My Personal Photo Gallery
Pages: [1]   Go Up
  Send this topic  |  Print  
 
Jump to:  

Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC
Page created in 0.043 seconds with 18 queries.