Member
Member
somethingconcon_   2011-05-16, 16:36
#1

I'm wondering how restrictions are placed on the albums (allowing only certain users to view them). I had a resource creating and dumping images into albums not using the zen photo framework. However, I still want to password protect these albums...can this be done?

Administrator
Member
Member
somethingconcon_   2011-05-16, 18:45
#3

Thanks for the response. I understand the user rights and permissions. However, I'm not setting up these albums within the admin section of zen photo. It is another site entirely that is feeding the folders and files. I was hoping there would be a way to set users access to specific albums without having to use the admin tool. Any help would be greatly appreciated.

Member
Member
sbillard   2011-05-16, 19:56
#4

If you understand the rights and permissions then you have the tools to deal with your situation. If your resource does dump files and folders into properly designated places you should have no issue.

Zenphoto has the option of defaulting the "published" setting of new items to not plublished. It also has the option to make a gallery private.

But short of those two options, newly arrived items are public.

And of course, Zenphoto has no way of anticipating what users should be allowed to access a previously unknown item unless it is placed in an album that already has these restrictions defined.

Member
Member
somethingconcon_   2011-05-17, 03:30
#5

My apologies but I've been going through the doc and can't find the correct function to set the restrictions.

if ($album->exists) {
$album->setTitle($name);
$album->save();
exit();
}

this is the code I will use to create the albums. I just need to add the last object modifier to create a user name and password...right?

Member
Member
sbillard   2011-05-17, 17:33
#6

how about $album->setUser() and $album->setPassword(). Both part of the album object and its ancestry same as where you found setTitle()

Member
Member
somethingconcon_   2011-05-17, 23:03
#7

I should have checked the ancestry. Sorry for wasting your time.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.