Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No login box in zpMobile #896

Closed
wurzel555 opened this issue Feb 13, 2015 · 9 comments
Closed

No login box in zpMobile #896

wurzel555 opened this issue Feb 13, 2015 · 9 comments
Labels

Comments

@wurzel555
Copy link

Here is a screenshot taken of the login form I see on my site using zpMobile.

http://steveluther.de/nologinbox.jpg

As you can see there is no login box so I can not type my username in.

This has been tested on 2 seperate android devices. 4.2.2 and 4.0.4 aswell as IOS 6.x and windows phone, the username login box is missing on all of them.

Cheers
steve

@acrylian
Copy link
Member

As noted on the forum it was a general theme issue. The function call apparently used variables as parameters that were actually never set. Should be fixed in the master build.

@acrylian acrylian added the bug label Feb 13, 2015
@wurzel555
Copy link
Author

This is great thanks it now works, however once you log in it does not redirect you to the index page it takes you back to the login page and you have to select Gallery to go to the gallery. Where as if you click logout at the bottom of the page you get redirected to the index page.

@acrylian
Copy link
Member

That is the default. If you wish another page you can set that on the printPasswordForm() call:
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionprintPasswordForm

@wurzel555
Copy link
Author

Sorted, now it rediects.

@acrylian
Copy link
Member

Great! Something like printPasswordForm('', true, false,getGalleryIndexURL()); works for the index, just in case you tried something else ;-)

@acrylian
Copy link
Member

Guess I can close this then.

@wurzel555
Copy link
Author

This is what I did.

function printPasswordForm($_password_hint, $_password_showuser = NULL, $_password_showProtected = true, $_password_redirect = '/index.php')

Your way looks neater but I can't find where you are referencing.

@acrylian
Copy link
Member

What you apparently did you really never should do. You changed the function - the define of it - itself in a core file. You need to change the function call on the theme's password.php page instead.

@wurzel555
Copy link
Author

OK Changed it back and modified the theme password.php file and it works fine.
Thanks for the help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants