Gallery User/Group Permissions
schramm
Joined: 2012-08-31
Posts: 2 |
Posted: Fri, 2012-08-31 18:07 | |||||
Hello, First off, Gallery is AWESOME. I do not know where we would be as an organization without it. In fact we have over 168,000 items, and I don't think there has been much decrease in performance. We are a nonprofit housing agency and use Gallery 2 to collect photos from various contractors on property conditions and maintenance. Before uploading to gallery people are naming pictures with a controlled naming convention. For example, 472-01-030_main.jpg is the picture that appears on our public website. Where the number represents a property number and then part after the underscore indicates where what type of picture/where to display it etc. I have loosely integrated the pictures into our internal project management database as well as our website: http://www.cuyahogalandbank.org/ The integration was done by querying the gallery tables to find: %itemId%-%serialNumber%/%fileName% and display in the php/html page. This query gets a gIDList -.prepdata($the_ppn."%"). get's all pictures associated with a particular property identifier. This quey gets the serial number and file Not only are we displaying the pictures we are extracting from Gallery2 for HTML pages, we are also embedding them into pdfs and word documents on the fly. All of this works fine until I take away the "[core] view all versions" permission for the "Everybody" user on the the top level "Gallery" album. When this happens, the images are not displayed when there is no gallery session. We have different contractors who don't want others seeing the pictures they are uploading. Also, I don't want the general public to see all of the photos. Instead, I just want people to access the photos through our web pages, pdfs, word documents, etc. To summarize, I want to use gallery to manage and upload photos and apply security to www.cuyahogalandbank.org/gallery2, but I don't want the general public to see that info. At the same time, I don't want any security restrictions when displaying photos that result from the above mysql query. Attached, there are two screenshots from our internal website. In one example I am logged on to a gallery session. You see photos. When I am not logged into a gallery session the photos are not displayed. Here is the info about my site: :/usr/obj/usr/src/sys/82PAIRg-AMD64 amd64 Thanks!
|
||||||
Posts: 8339
for several years we have had many tools to use gallery externally via the API w/out the danger associated w/ direct DB interaction.
MediaBlock for displaying single items, several items...
Using the embed API to fully embed all or single albums or to hide albums from public.
And the All New jQuery Minislideshow for G2/G3
Basically G2 has a robust external API to make embedding/displaying your gallery anywhere.
-s
Posts: 2
Thanks for the reply. When I went to download the "MediaBlock" plug in to experiment with, I discovered the "Hidden Album" plug in. It did exactly what I wanted to do.