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.
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.
(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)
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.