• GHES

    (@gail-hastings)


    I am creating a ‘new role’ where a field I have to complete concerns the URL the ‘new role’ is directed to after registration.

    As I have the UM registration shortcode form in the footer of my site (i.e. so it appears on every page), I need the page to refresh after registration so that the person not only stays on the same page, but returns to the footer where they just completed the form. While I can probably work out the second part, it would be good if you would assist with the first.

    The Login field for creating a ‘new role’ allows a ‘refresh to active page’.

    It would be very helpful if you could either let me know what I might insert in the URL field to do the same job for registration, or setup the same selection options the login field has.

    Thank you for your plugin and the time you put into it.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You would have to create an anchor and then you could redirect them to a “/#footer”.

    Actually, I now realize that this isn’t what you were asking. At the same time, it is obvious that UM support doesn’t understand what you want either.

    Thread Starter GHES

    (@gail-hastings)

    Thanks borisv for giving it a go.

    Regrettably, I can’t include a snapshot of the fields I’m referring to on the ‘Edit User Role‘ admin page when you create a new user role.

    They relate, though, to the ‘Registrations Options‘ panel on that page.

    I have, however, solved it.

    for ‘Registration Status‘ I selected ‘Auto Approve‘;

    for ‘Action to be taken after registration‘ I selected ‘Redirect to URL‘;

    and for the ‘Set Custom Redirect URL’ field, I entered <?php get_permalink(); ?>/#footer

    This works. Before the recent update I was getting an ugly error message, but no longer.

    So you are right. I only had the get permalink part before, but by adding the anchor ID the page not only refreshes, but now returns to the same spot.

    I hope that makes what I needed to achieve more clear.

    But it works, now, anyway.

    Thread Starter GHES

    (@gail-hastings)

    Actually, I spoke too soon. That works on my test site, but not my actual site.

    I get the message:
    Error
    This page can’t be displayed – your request has been denied for security reasons.
    The incident ID is:[ …..]

    So what I need hasn’t been solved after the update.

    Thread Starter GHES

    (@gail-hastings)

    Update: By not putting any URL in the field, but just the anchor ID, the page goes to the footer on submit, but to the footer on the home page, not the page the user accessed the registration form.

    This is a shame, as it means the user has to claw back to the point that caused them to want to register. In other words, it leads to user frustration.

    It’s hard to see what you did or are trying to do and confirm the issues you’re reporting, but if you place an anchor in the footer to force the user to go back to a registration form at the footer, then the url that you need to enter in the ‘Set Custom Redirect URL’ field would be either:
    https://your-site.com/register/#footer
    or just
    /register/#footer

    I still don’t understand why you want users to go back to register again since it normally takes them to their profile page, or they could also be taken directly to edit their profiles first (i.e. edit mode) before they publish all their details in a profile page.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘After registration, how to ‘refresh to active page’ as per login option’ is closed to new replies.