Is there any way I can hide some links to administrative functions from registered users of the gallery?

Drooopy

Joined: 2011-06-23
Posts: 10
Posted: Thu, 2011-06-23 16:32

I do not want users to adjust some album properties such as: file size limit, dimensions, password protection, etc. Is there any way I can hide these links from registered users?

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Thu, 2011-06-23 17:28

You probably need to adjust the permissions settings. Basically, they shouldn't be able to edit items and should just view items.

You should be able to set these at the root album and have them apply to all the items.

Look under "edit album"
--
dakanji.com

 
Drooopy

Joined: 2011-06-23
Posts: 10
Posted: Thu, 2011-06-23 18:49

Yes I know. But I want users to be able to create albums, but unable to edit some album functions like size limit, password protection, photo dimensions

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Thu, 2011-06-23 21:17

Are you using the user albums module? http://codex.gallery2.org/Gallery2:Modules:useralbum

If so, then the owners have all control to their albums. You will have to hack the module code to do what you want according to the codex.

Here is a post from someone trying to do something similar a while back http://gallery.menalto.com/node/100515.

It seems my suggestions did not work for him but they may be useful in guiding you.

Happy Hacking!

--
dakanji.com

 
Drooopy

Joined: 2011-06-23
Posts: 10
Posted: Fri, 2011-06-24 08:40

I read the post and it seems that it would help me. Unfortunately my knowledge about PHP is really poor. Could you please tell me which file in the gallery I have to modify with the changes that you proposed?

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Fri, 2011-06-24 14:25

Module.inc.

It is reasonably straightforward but not a simple cut and paste.

Unfortunately, I can't help further as I have a few things on my plate.

--
dakanji.com

 
Drooopy

Joined: 2011-06-23
Posts: 10
Posted: Fri, 2011-06-24 15:17

it is a real pity as I need it badly, thanks anyway.

 
richflath

Joined: 2012-01-08
Posts: 5
Posted: Mon, 2012-01-09 12:38

This is one of the things that pushed me to Gallery 3. I didn't want users having that much control of their albums and Gallery 3 robbed them of some of this functionality. While 3 is faster, it comes with its own issues and shortcomings.