coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Permissions & Access Rights => Topic started by: NickDE on February 24, 2005, 08:56:30 AM

Title: Personal Album protected by .htaccess
Post by: NickDE on February 24, 2005, 08:56:30 AM
hi,

i've created an useralbum wich is protected with an .htaccess-file. all works fine on this way. if the private gallery is selected by a user, the authenfication-window pops up and the user can fill in his username and password. if a user had no permissons for this private album or if a user is chlicking on the cancel-button, you will see the "normal" album-page without any pictures. instead of pictures you will see an image with the red "x".

Is there a way, instead of showing this picture with the read "x" to show a pictures with an information, that the user has no access to this gallery? or can i redirect to an information-page that show's the user, that he has no access? normaly if the authentication failed, the ie will show an information-page, the the user has no access.

thanks for an information and greetings

nick
Title: Re: Personal Album protected by .htaccess
Post by: Joachim Müller on February 24, 2005, 09:49:19 AM
If you use .htaccess authentification, it's expected behaviour that a red cross appears instead of the actual image if a users fails to authenticate. That's why we created an authentification method for coppermine that is capable of doing what you want: if a user is allowed to see a pic, he will see it. If he isn't, he won't.
Why don't you drop the .htaccess method and use the built-in user management coppermine offers? If you can't or won't, you will have to live with the red cross apearing when authentification failed - this is not a coppermine issue, but a question of webserver setup, consult the apache docs for details.

Joachim
Title: Re: Personal Album protected by .htaccess
Post by: Tarique Sani on February 24, 2005, 10:35:50 AM
Try and marry the CPG and .htaccess method - it will need some header magic but is doable - do post here if you succeed