Skip Navigation

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

Ce fil est résolu. Voici une description du problème et la solution proposée.

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 Il y a 4 années et 8 mois. 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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 réponses, has 2 voix.

Last updated by Franck Il y a 4 années et 8 mois.

Assisted by: Luo Yang.

Auteur
Publications
#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!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.