Skip Navigation

[Resolved] what is the best solution to display user form when user is logged and other form when he isn’t

This thread is resolved. Here is a description of the problem and solution.

Problem:

What is the best solution to display user form when user is logged and other form when he isn't ?

Solution:

You can try one of below two options:

1) If you are using Toolset Access plugin in your website, you can follow our document to display different content to logged-in or non-logged-in users:

https://toolset.com/documentation/user-guides/access-control-texts-inside-page-content/

See screenshot:

https://toolset.com/wp-content/uploads/2014/05/conditional-shortcode-dialog.png

The "guest" role is non-logged-in users

2) If you are not using Toolset Access plugin, you can use [wpv-conditional] shortcode to check if it is a logged-in user, for example:
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/using-shortcodes-in-conditions/

in section "Checking User Information", there is an example codes

Relevant Documentation:

This support ticket is created 5 years, 4 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by Franck 5 years, 4 months ago.

Assisted by: Luo Yang.

Author
Posts
#1305219

Ok, i didn't want to create 2 user, but i hoped i can update instead, like in mysql.
My problem is i create user, but i don't send password, so they don't know how they can login...
Ok, i will think about it.

I have a second problem, what is the best solution to display user form when user is logged and other form when he isn't ?

#1305293

Hi,

You can try one of below two options:
1) If you are using Toolset Access plugin in your website, you can follow our document to display different content to logged-in or non-logged-in users:
https://toolset.com/documentation/user-guides/access-control-texts-inside-page-content/
See screenshot:
https://toolset.com/wp-content/uploads/2014/05/conditional-shortcode-dialog.png
The "guest" role is non-logged-in users

2) If you are not using Toolset Access plugin, you can use [wpv-conditional] shortcode to check if it is a logged-in user, for example:
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/using-shortcodes-in-conditions/

in section "Checking User Information", there is an example codes, for your reference.

#1306371

My issue is resolved now. Thank you!