Remove Crop and Rotate for Users v1.1 Remove Crop and Rotate for Users v1.1
 

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]

Main Menu

Remove Crop and Rotate for Users v1.1

Started by Joe Carver, April 02, 2010, 12:55:15 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Joe Carver

This plugin will remove the Rotate and Crop button for users other than the Gallery admin. It can help to reduce the server cpu/memory load for "public" galleries where many users can upload pictures. Users will still be able to delete their files and edit the info. Gallery administrators will retain full, normal control.

Install/uninstall through plugin manager. There is no configuration available.

This was inspired by the cpg1.4.x plugin - Remove Crop and Rotate by jjhat1.
It does function differently.


ΑndrĂ©

Thanks for your contribution.

You just should remove that button if GALLERY_ADMIN_MODE is false, instead of adding hard-coded stuff. You also shouldn't check for user id 1, as the admin could have another id, or a regular user could have that id.

Please have a look at our coding guidelines. Your code is very hard to read.

Additionally you don't need the actions plugin_(un)install, as they do nothing. You can simply remove them.

Joe Carver

#2
Release of Version 1.1


Mimer

Danish languagefile for No Crop and Rotate for users v1.1 plugin.

Mimer  8)

Joe Carver

Quote from: Mimer on March 05, 2011, 12:10:58 AM
Danish languagefile for No Crop and Rotate for users v1.1 plugin.

Mimer  8)

Thank you for the contribution.