Gallery 2: Limiting Size of Pictures in Members' Albums

tigerdave

Joined: 2011-02-15
Posts: 1
Posted: Tue, 2011-02-15 17:53

I set limits on dimensions and kb in the top-level gallery and checked the options to propagate those limits down the tree.

When creating new albums, I observed that these limits are editable, and confirmed that a member can override them.

Is there a way to prevent them being overridden?

Thanks,

Dave

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2011-02-15 18:15

In short, no. If they have edit album permissions, they can edit those settings.

A few options:

Extend the size limit plugin to have permissions (excessive, unique permissions can slow down a G2 install)

Use CSS to hide those page elements, which can be a PITA for admins.

This is probably the best/easiest option depending on how you want to do it:
Edit the SizeLimitOption.tpl file under /modules/sizelimit/templates; you could move your changes under your theme or to /modules/sizelimit/templates/local so they are not overwritten on an upgrade or reinstall. See the link at the top of the file

And hide the parts of the page (or that entire block) if the user isn't an admin:
http://codex.gallery2.org/Gallery2:Themes:Reference:Variables

{if $user.isAdmin}
CODE TO DISPLAY FOR ADMINS HERE
{/if}

___________________________________________
Like Gallery? Like the support? Donate now!