Skip Navigation

[Resolved] force visitors to register before allowed certain actions

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

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 7 years, 7 months ago.

Assisted by: Minesh.

Author
Posts
#433963

Hi,

I'm looking into implementing a teaser on my website to capture visitors information, increase the community and engagement and off course to track who does what.

I want to add for example a 'favorite button', or 'add information button', but when a non logged in, non registered visitors clicks on it, I want to show a message 'please register to favorite this and enjoy more'.

How do I start with this?

#434087

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

[wpv-conditional] shortcode will be best choice for this but for that if it will not work on submit button.

If will work like that - if the user is not logged in, you can display the message with static buttons or button image and if the user logged in you can display your original working buttons.

For example:

[wpv-conditional if="('[wpv-current-user info='id']' eq  '')"]
User not loggedin
[/wpv-conditional]


[wpv-conditional if="('[wpv-current-user info='id']' ne  '')"]
User is loggedin
[/wpv-conditional]


Please have look at following documentation that may help you:
=> https://toolset.com/documentation/views-shortcodes/#wpv-current-user
=> https://toolset.com/documentation/user-guides/conditional-html-output-in-views/

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