zenphoto forums » General Zenphoto Discussion

Restrict/enable certain features based on User type

(3 posts)
  • Started 2 years ago by rdale999
  • Latest reply from sbillard
  1. rdale999

    Apprentice
    Joined: Jul '10
    Posts: 3

    Hello everyone. I have a couple of specific features I am needing in a photo gallery, and was wondering if anyone could give me an idea if Zen Photo can do it. At this time, I am only looking for a "yes, this can be done" without a total rewrite of the code, and also if possible, being pointed in the right direction for where to start looking (code or guide).

    My features are fairly simple in concept. I need a photo gallery on the site that is completely public for VIEWING. That means, anyone, even without a login (if possible. this part isnt essential) can view any of the galleries. But I need 2 sets of users or user groups (besides generic guest/no login type) for this project: call them Fans and Pros. Fans would be allowed to upload pics and do basic management of their gallery. Pros would get more features, the main one I need for them is a larger image size on upload, and possibly something like more images total. Pros could also do things like delete comments (comments open to all to post).

    The other part that I could use, and this might be more tricky, is that it would be good if the same login they use for this Fan or Pro user would also allow them to access other parts of the site that are not in the galleries, say something like being able to post a piece of art or a print for sale in the Marketplace part of the site. This would require me to know how (and even if) to be able to know that they are logged in and what account type they have.

    I am ok with manually setting the Pros accounts up as far as the extra features go.

    There is some more, but its all related to these 2 basic ideas and how (and if) they can be accomplished.

    Thank you for any help or guidance you can provide on this. I really like Zen Photo and would prefer to use it over any others I have seen.

    Posted 2 years ago #
  2. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 15,233

    Recommended read about the user rights management:
    http://www.zenphoto.org/news/an-overview-of-zenphoto-users
    A screenshot how that looks on the backend (1.4.2.x):
    http://www.zenphoto.org/screenshots/zenphoto-1.4.2-admin/user-admin.jpg.php

    We have nothing to limit the actual size of images but you can limit the maximum upload per album with upload quota plugin for example.
    http://www.zenphoto.org/news/quota_manager
    http://www.zenphoto.org/news/image_upload_limiter

    Things like allowing downloads or else need to be coded on theme itself either as a theme custom function or a plugin. Recommended readings:
    http://www.zenphoto.org/news/theming-tutorial
    http://www.zenphoto.org/news/zenphoto-plugin-architecture
    http://www.zenphoto.org/news/zenphotos-object-model-framework

    (btw, it's "Zenphoto" not "Zen Photo"...:-))

    Don't forget to read the Forum rules and usage resources
    Posted 2 years ago #
  3. sbillard

    Contributor
    Joined: May '07
    Posts: 10,465

    You can use several "external" logon devices to allow broader access than just the gallery. Look at the federated_logon and the http_auth plugins and see if either does what you wish.

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in to post.