forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Permissions & Access Rights => Topic started by: trionnis on October 31, 2004, 01:56:15 am

Title: Wanting info on forcing "Album can be viewed by" selection and locking it
Post by: trionnis on October 31, 2004, 01:56:15 am
Hello all!

I'd like to start out by saying that I'm *highly* impressed with this software, kudos to the developers!

my question is this:

I'm using this gallery system for images that I don't want shared with the public at large, and I'd like to find a way to force any user albums to have the "Album can be viewed by" set to a specific option, and hopefully also be able to lock it.

I've searched around here quite a bit, and I'm not finding any information on what I'm wanting... anyone have a suggestion or two to throw my way? =)  I'm somewhat adept with php/mysql, so if it requires a bit of hacking, I'm ok with that.

Thanks for looking, and have a good day!
-T
Title: Re: Wanting info on forcing "Album can be viewed by" selection and locking it
Post by: Joachim Müller on October 31, 2004, 08:27:27 am
if you want all content to be private, why don't you use the quick and dirty hack mentioned here: http://coppermine.sourceforge.net/faq.php#viewThumbnailsOnly

Joachim
Title: Re: Wanting info on forcing "Album can be viewed by" selection and locking it
Post by: trionnis on October 31, 2004, 02:50:47 pm
  If I understand that correctly, that still allows the thumbnails to be viewed by unregistered users, correct?

  If that's so, I don't think that would work in my case.  I've got the gallery integrated with phpbb, and I'm really only wanting forum members to be able to view anything. This is a quasi-adult site that allows members to upload pics and I don't want my bandwidth being abused by non-members.  Right now, if the "Album can be viewed by" is set to "Members only" it works like I want, but I have to rely on the users to set that themselves, or I'll have to set it for each user manually.

  Can you point out which file or sql row that option is stored in?

Thanks!
-T
Title: Re: Wanting info on forcing "Album can be viewed by" selection and locking it
Post by: Casper on October 31, 2004, 04:08:02 pm
There is a mod in the mods board that redirects all un-logged in users to the login page, so unregistered users cannot see anything.
Please search the mods board, using the search string 'login.php' by user 'casper'.
Title: Re: Wanting info on forcing "Album can be viewed by" selection and locking it
Post by: trionnis on October 31, 2004, 06:02:37 pm
ok, I managed to modify delete.php and albmgr.php slightly to make it do what I wanted.

Thanks for the suggestions guys
-T