User Permissions: Being able to give and take specific .....

Jelly

Joined: 2005-01-15
Posts: 114
Posted: Thu, 2005-08-04 14:55

It would be a great feature to add to the administration to gallery 1.xx if the admins could give and take specific rights per user.

For example:

Taking the right of a user to reorder their album on gallery's index page.
- Admins should have the right to disable that right on a per user or 'group' permission basis.

It would be really nice to be able to set up user permissions for large gallery sites. I believe that it would be really tough to code but i think that this type of feature would definitely stand out as one of the best.

Thanks!

www.trueppc.com
www.trueppc.com/gallery

 
sbboyd

Joined: 2005-08-19
Posts: 4
Posted: Fri, 2005-08-19 19:36

How in the world do I get rid of this REORDER link for normal users?

I am having issues now with this teenaged user taking advantage of this and not respecting the other users posting their art-works by reordering his gallery to the number one position when his original position was #7.

I have altered the move_album.php file but it affects everything the wrong way.

The ADMIN needs more control over this and would love to help in anyway possible.

 
sbboyd

Joined: 2005-08-19
Posts: 4
Posted: Fri, 2005-08-19 20:01
sbboyd wrote:
How in the world do I get rid of this REORDER link for normal users?

I am having issues now with this teenager user taking advantage of this and not respecting the other users posting their art-works by reordering his gallery to the number one position when his original position was #7.

I have altered the move_album.php file but it affects everything the wrong way.

The ADMIN needs more control over this and would love to help in anyway possible.

lol, wow, now this has become an issue because the end user is asking why I would even put the option in front of him if he cant use it and why it's my fault I don't have a set of directions explaining how to use the Gallery.

I realize there is always something like this when a new great thing is out such as this Free Gallery that came with my hosting service and it's needed right now from a lot of artist comming to view our new art site.

After a few e-Mails with him, I just hate the fact that I had to delete this user & his awesome art-works during this trial and error process. I just assumed like an "idiot" that everyone has enough common sense to realize the lines of respect when I was the one that caused this and not the end user that has the link right in front of him.

Thank you for this awesome Gallery as it's a new exciting venture for me and a big learning curve.

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Tue, 2005-08-23 04:24

You could find where in the code it is done and stick some "if (isAdmin()) {" type things around it. You should be able to find some example code in the same file I would imagine.

 
sbboyd

Joined: 2005-08-19
Posts: 4
Posted: Wed, 2005-08-24 04:08
fryfrog wrote:
You could find where in the code it is done and stick some "if (isAdmin()) {" type things around it. You should be able to find some example code in the same file I would imagine.

I’m only a beginner with php code.

Is this a verbatim code or do I need more direction on what the proper admin code is? Can you tell me the best place to go to?

I didn’t realize you could just add an admin code and make it all better.

This is one of the main reasons why I love php and can’t wait to take classes on it.

Thank you fryfrog for your help.

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Wed, 2005-08-24 04:52

Make a post and/or read in the customizing forums. It certainly isn't the exact code needed, but its close. Try searching the right file (view_albums.php and maybe albums.php) for the term "isAdmin" and see what you find. This should provide you with an example of the if statement to enclose it with. Now search for "sort" and see if you can figure out where it is coming from.