Personal Album protected by .htaccess Personal Album protected by .htaccess
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Personal Album protected by .htaccess

Started by NickDE, February 24, 2005, 08:56:30 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

NickDE

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

Joachim Müller

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

Tarique Sani

Try and marry the CPG and .htaccess method - it will need some header magic but is doable - do post here if you succeed
SANIsoft PHP applications for E Biz