coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: cayne on April 13, 2004, 10:46:43 PM

Title: Urgent! Registered User Access only ONE album
Post by: cayne on April 13, 2004, 10:46:43 PM
Hey folks,
I really need some help. I have a gallery with some albums - and now I need 1 album which should be only viewable with a registered user-account.

I already saw this method:

if (!USER_ID) cpg_die(ERROR, 'You need to register to access this page', __FILE__, __LINE__);

But I think that this line includes ALL albums on my gallery, but I want to restrict only one.

Big thanks in advance.
Title: Urgent! Registered User Access only ONE album
Post by: hyperion on April 14, 2004, 02:30:36 AM
No code editing required.

Enter admin mode.  Go to the album you want to restrict.  Click 'Properties'.  Change the viewable status to registered users only.
Title: Urgent! Registered User Access only ONE album
Post by: cayne on April 14, 2004, 03:06:33 PM
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fcayne.s1.cybton.com%2Fcoppermine1.jpg&hash=9fa12968e6c3e193e8f1d5d9b4ef262156d90174)

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fcayne.s1.cybton.com%2Fcoppermine2.jpg&hash=345313e8f0b250d20118bc01364a17e115ce1912)

Am I blind? Can you show me this magic option "viewable status to registered users only" ?!

Thanks.

PS: I isn't a template fault:

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fcayne.s1.cybton.com%2Fcoppermine3.jpg&hash=650190b471618cf5bbc93d48be190b18ebf6f64b)
Title: Urgent! Registered User Access only ONE album
Post by: Casper on April 14, 2004, 03:12:20 PM
No, you're not blind.

You just have not set 'users can have private albums' to YES in config.
This doen't mean anyone can have a personnal album, just those set in the groups page.