Advanced search  

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

Pages: [1]   Go Down

Author Topic: Remove Crop and Rotate for Users v1.1  (Read 8679 times)

0 Members and 1 Guest are viewing this topic.

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1545
  • aka 'i-imagine'
    • Home Page
Remove Crop and Rotate for Users v1.1
« on: April 02, 2010, 12:55:15 am »

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.

« Last Edit: April 02, 2010, 01:36:00 pm by Joe Carver »
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Remove Crop and Rotate for Users v1.0
« Reply #1 on: April 02, 2010, 08:30:10 am »

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.
Logged

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1545
  • aka 'i-imagine'
    • Home Page
Re: Remove Crop and Rotate for Users v1.0
« Reply #2 on: April 02, 2010, 01:21:11 pm »

Release of Version 1.1

« Last Edit: April 02, 2010, 01:26:44 pm by Joe Carver »
Logged

Mimer

  • Translator
  • Coppermine frequent poster
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 129
    • Fjotte
Re: Remove Crop and Rotate for Users v1.1
« Reply #3 on: March 05, 2011, 12:10:58 am »

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

Mimer  8)
Logged

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1545
  • aka 'i-imagine'
    • Home Page
Re: Remove Crop and Rotate for Users v1.1
« Reply #4 on: March 05, 2011, 01:09:16 am »

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

Mimer  8)

Thank you for the contribution.
Pages: [1]   Go Up
 

Page created in 0.036 seconds with 21 queries.