Skip Navigation

[Resolved] Active Users only can do Login

This support ticket is created 6 years, 3 months 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.

Our next available supporter will start replying to tickets in about 1.79 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 2 replies, has 2 voices.

Last updated by henryH 6 years, 3 months ago.

Assisted by: Nigel.

Author
Posts
#1071210

It would be helpful if you can give any suggestion.

For user registration I have used User Form. There is one field Status in the form.
For Login i have used [wpv-login-form redirect_url="ridley.leafcom.website/wp-admin/edit.php?post_type=obi"].
But If user status is "Active" than only i want to redirect otherwise it should give an error.

#1071351

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Henry

My first Toolset instinct is that you wrap the shortcode for the login form to test whether the current user has the active status set or not, but, of course, you can't do that because the user is not logged in yet, they are just an unknown guest.

I don't see how you can do this without writing a custom solution. That doesn't actually depend on Toolset, because under-the-hood the Views login shortcode is just triggering the standard WordPress login functionality.

Your question would be equally valid—and the answer, too—if you were using the standard WordPress login form.

So my only suggestion—apart from recruiting a developer to do this for you—would be to ask a question on Stack Overflow (or, rather, https://wordpress.stackexchange.com/) about how you would do it with the standard WordPress login. The solution should work when using the Views login form shortcode.

#1077146

yes