Problem:
The client has a set-up where, from a parent post, a user can add a child post via a link to a front-end Toolset Form.
The particular requirements for this project are that only a logged-in user should be able to see and submit the child post form. Guest users should see a login/register form instead, and then continue to see and submit the child post form.
Solution:
There are two problems here.
The first is that guest users who register are not automatically logged in, they would register and be redirected to a log-in page, and then the flow would be interrupted.
The second is that, even if we add code to automatically log in users who register and then present them with the child post form, the URL parameter that identifies the parent is lost.
The thread below describes what is required and provides suggestions for the custom code that is needed for this to work: https://toolset.com/forums/topic/prompt-user-to-register-login-before-posting-content/#post-1188864
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 |
---|---|---|---|---|---|---|
- | 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 4 replies, has 2 voices.
Last updated by 5 years, 11 months ago.
Assisted by: Nigel.