a way to prevent users from changing their albums colours?

kmaisch

Joined: 2004-04-26
Posts: 79
Posted: Fri, 2005-04-22 00:14

I'm just wondering if in gallery 1.4 (and also 1.5) there is a way to prevent users that have Permissions to change the properties of an album from changing the text and background colours?

I want a consistant colour theme throughout my whole gallery, and don't want individual albums to be changed.

I guess the obvious way is to somehow hack the Permissions popup so that it does not have the "Background Colour", "Text Colour" and "Link Colour" fields?

How can this be done?

Kim

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2005-04-22 00:58

edit_aperance.php
wrap the cells you don't want them to see with

<?php if ($gallery->user->isAdmin()) {
?>
table cell info here
<?php
}
?>
 
kmaisch

Joined: 2004-04-26
Posts: 79
Posted: Fri, 2005-04-22 01:07

excellent, thanks for that!

Attached is the modified file if anyone else is interested.

The only problem I have with it is that for some reason the "Apply" buttons now appear at the top of the properties popup instead of at the bottom. Anyone know how to fix this?

Kim