Showing Locked Albums on Main Gallery Page

bennru

Joined: 2007-05-05
Posts: 3
Posted: Sat, 2007-05-05 22:53

The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): http://www.jeandoraisphoto.com/gallery
Gallery version: 1.5.5-pl1
Apache version: 1.3.37 (Unix)
PHP version (don't just say PHP 4, please):
Graphics Toolkit: ImageMagik
Operating system: LINUX
Web browser/version (if applicable):

I am a photographer and am using the gallery to show proofs to clients before I print them. All albums in my gallery will be restricted access to one or two users each.

When someone goes to the main gallery page, they see a message at present that saya "No Albums". When they log in they can see their own album.

I would like anyone who goes to the main gallery page to see the photo/link to all albums, and when they click on an album, it asks them for their Username and Password.

Is this possible?

Thanks.

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Sun, 2007-05-06 00:18

Hello,

theoretically this is possible.
But currently its not. I would need to modify the code.

How would you manage this? I mean i am willing to implement this, but how do you think this could be done from an administrator point of view (not coding etc.)

Jens
--
Last Gallery v1 Developer and v1 translation manager.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2007-05-06 00:20

What I wuld do is create an album that has a graphic and some text explaining that if they login they will see the proof album.
or create an album for each set of proofs and have a sub-album that is protected with permissions.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
bennru

Joined: 2007-05-05
Posts: 3
Posted: Sun, 2007-05-06 17:37

Great script! I'm also amazed at how quickly you replied. Thanks!

In Step 2 of the Configuration Wizzard, on the Main Gallery Page, allow users to indicate if they want restricted/locked albums to appear on the main gallery page. A simple Yes or No answer is all that's needed. If set to yes, they would appear on this page and could work as described in my post. This would suite my need perfectly.

The admin now has control over whether these restricted albums show or not. I've seen a few posts about the confusion around restricted/locked albums not being seen, and I think this will help.

Thanks for considering this.

 
bennru

Joined: 2007-05-05
Posts: 3
Posted: Mon, 2007-05-07 11:25

One thing I forgot to add in the previous post - On the Main Gallery page, in the section which shows the default thumbnail and on the right the Gallery name and "Created on 05/05/07, last changed on 05/05/07. This album contains 13 items. ", you should add who has access. Just below the "Created on..." line add something like one of these lines:

Access: Nobody
or
Access: Everybody
or
Access: Bennru (Login Required)

These can come from the "Album Permissions" (Users who can see the album) as set by the album owner. The (login Required) should be a hyperlink to the Login pop-up window.

Thanks.