HTML Logo by World Wide Web Consortium ( Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS. ocPortal 9 is superseded by Composr 10.

Head over to for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.

How Can I Restrict Access to Individual Galleries?

Login / Search

 [ Join | More ]
 Add topic 
#64358 (In Topic #13876)

Community saint

My continuing search far an easy method to control access to member galleries!

I brought up my interest in being able to control access to individual galleries on my website in a previous post titled "Restricting children galleries from adopting new parents".

The way it is now when someone wants to have a gallery at Prehistorics Illustrated they have to put in a request to me. I then, go in and set up the uniform gallery format with the images plus copyright and image description info in place. When someone needs revisions, additions and the like they again contact me and I do the work. This means that Admin (me) is credited by ocPortal as the creator/maintainer of the gallery and not the real 'owner' of the gallery. An aside from this is that I hand out points for this manually rather than automatically.

While this is working for me now, I can anticipate a time when this could create a backup and bottleneck for my website. I believe access to the galleries and management by the member who's images it contains would be a good thing.

The big concern for me is the protection of the gallery from not so well meaning types. Up to this point I have managed these permissions by not making them available to anyone else but me. Still I have never given up the hope of finding a relatively easy way to give control of galleries to the owners and still insulate the individual galleries from access or 'tampering' by other members who have no business being inside other members galleries and have access to any control there. So here are a few ideas I have floating in my head. Please note that, on my website, not every member wants or has a gallery.
  • I have thought of creating a USERGROUP for those who have galleries and place it in the OTHER USERGROUP category so there is no promotion progression. This would isolate gallery access to only those in that USERGROUP. This is better than what I am doing but still allows an undesirable too broad access.
  • An expansion on this concept is to make an individual USERGROUP for each member with a gallery. I think this would give individual control as per member basis. The drawback is obvious. Early on, right now I have 50+ galleries and growing so adding another 50+ USERGROUPS could be complex on its own.
  • Something else I have thought of is gallery ownership. Like with the BANNERS feature, where you can assign ownership to a particular banner. This allows control on an individual (perhaps it allows more than one, I am not sure) basis.
  • Or perhaps at the permissions screen adding something for the gallery similar to the "Restrict as per match-tags (main_only_if_match)" block which could customise access to gallery pages at the individual member level.
There may be other slick ways of doing this that you can think of. Please comment and add your ideas or perhaps methods that have worked for you.

Art and Imagination
of David L Friend

  My Art Gallery
powered by ocPortal
Back to the top

I believe you can assign a usergroup permission to add galleries (by putting the permission on the galleries page) without giving them permission to edit them. That way they get ownership and you just need to make any later edits they may request.

Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. Support me on Patreon
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: