Changes descriptions & tags as a user (not admin)

I would like to allow visitors to my zenphoto site to edit the descriptions and tags for any photo (or album) on the site. So, I guess I am looking for an “Administrator-lite” feature.

I run a website for a girl’s softball team. I take photos at the games and throw them up on the web. The girls like to see their teammates in action and have asked to be able to change captions and add tags. Zenphoto allows that and more (as an administrator) but I would like to prevent them from accidentally deleting a photo (or whole album!).

Any thoughts? Is this something implemented as a custom theme? Or is this a “hack the core” solution? Or, already there and I’m just too stupid to see it??

Comments

  • There are confirmations for deleting images and albums, so if you are worried about true accidents then it should not be a problem. There is no refinement of the edit rights (see http://www.zenphoto.org/2008/07/an-overview-of-zenphoto-users/ for details of what you can do.)

    Anything you do will take some kind of hacking of zenphoto. Maybe the best approach would be to assign "view all albums" rights the girls. Then you would have to hack the `zenJavascript()` function add `VIEWALL_RIGHTS` to the test which enables the ajax js. Then the girls could make the changes on the image page. (They could also make other ajax edit changes such as album titles. If you did not want that, the test could be further restricted to just the image.php page.)
  • Thanks for the speedy response!

    I think your comment about accidental deletion is correct. I am less worried as I play more with the admin screens. The chance of an error is pretty low.

    I will likely not make changes to `zenJavascript()` at this point to avoid issues with upgrades; but, I appreciate your pointer to the correct function in the event that I care to in the future.

    Question: Is there a way to place a link to the login screen (in place of the "Admin Toolbox" link) for when the girls are not logged on? It seems like that is a "Theme" thing (I am using the default theme).

    For info, the site is stars93.com/gallery and the albums in the 08-09 season are the ones that I am working on most. Thanks for the great product (and support)!!
  • There is a plugin named `user_logout` which you can enable. Then you will get a login screen (and logoff link) on the main gallery page and the album page of any theme which supports this plugin. Off the top of my head, I think all the distributed themes do. If you have a theme which does not support the plugin, it is fairly easy to add. You just add a function call in the place where you want the login form to show.
Sign In or Register to comment.