Skip Navigation

[Resolved] Show user Login Form if User Not Logged On

This support ticket is created 9 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 19:00 10:00 – 19:00 10:00 – 19:00 10:00 – 19:00 10:00 – 19:00 -
- - - - - - -

Supporter timezone: Europe/Madrid (GMT+01:00)

This topic contains 6 replies, has 2 voices.

Last updated by deanC-2 9 years ago.

Assigned support staff: Caridad.

Author
Posts
#244253

Hi,

We have this page
hidden link

And at the bottom have it displaying no content if they aren't logged in. I'd like to also show the standard username and password login fields directly below so they can login directly there without having to navigate to another page. Is this possible?

Also, once logged in can you have it direct back to the same page so after login they aren't having to try to find the page again?

Cheers
Dean

#244349

Dear Dean

How are you restricting the content to non-logged in users?

Regards
Caridad

#244421

Using Access (your solution). hidden link

And this IF statement on the end of the view. hidden link

I'm assuming (hoping) there is something I can add in here at the end of the view to display a user login with a callback to the same page after login?

#244515

Dear Dean,

Have you tried with the "When disabled" button?
It lets you customize what to show when there are no permissions.

Regards
Caridad

#244517

Yes, I saw this. Just curious then how I can get it to show a login prompt? Maybe I'm not getting your hint 😉

#244598

Dear Dean,

Will this solution from Luo be useful?

https://toolset.com/forums/topic/form-login-required/#post-215752

Regards
Caridad

#244777

Yes that is exactly what I was looking for. Works a treat. Cheers