I'm new to zenphoto and I'm interested in using for the clients section of my website. I want to have a login page that simply asks for their username and password and then redirects them to the gallery their able to see. I found the "Zenphoto Single-Login" hack which seemed like exactly what I want, however when someone logs in through that page there's a 404 error because it's pointing to /zenphoto/albums/userdirectory and "userdirectory" doesn't exist. I tried reading the forum attached to the hack but didn't see anything related to my issue. Any suggestions to help me accomplish what I want with or without the hack?
Comments
Too many redirects occurred trying to open “URLâ€. This might occur if you open a page that is redirected to open another page which then is redirected to open the original page.
Also, how to fix the"too many redirects" error?
Also, how to fix the"too many redirects" error?
I really don't know what the `too many redirects error` is. The only redirect would be after the login back to the original page.
I think I must not have done a good job explaining my goal. I'd like to single-login to be my index, so when someone isn't logged in, they are asked to login, then once they login they can see what they are allowed to. Is that possible?
My suggestion was to use CSS styiling to make your changes. If that is not capable of doing what you want you should make your own version of the plugin and replace the `printPasswordForm()` call with your form. But understand, the login is handled in the very bowls of Zenphoto, so all the form fields in your version. must be as in the original.
<?php header("Location: /clients.php" ); ?>
<?php header("Location: ../clients.php" ); ?>
The script you create (that your users are pointed to) can go anywhere , it consists of just `<?php header("Location: zenphoto/single_login.php" ); ?>` in that script.