PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

registration form still accessible, tried solutions but still does not work

  1. grupoparada
    Member

    I have successfully created and linked a gform with the registration add-on, a user is created, and all the data from the fields are collected.

    The problem I have is that after the user logins to the site, the form still shows to the user. It should only appear for visitors.

    I tried the solution from this post: http://www.gravityhelp.com/forums/topic/registration-form-still-accessible-to-logged-in-users

    When I try to access the registration form after I log in to the site, it successfully redirects me to a designated URL I chose to. The problem I have now is that the form disappeared if a user is not logged in ( visitors).

    This is the message that shows up in the page "Oops! We could not locate your form."

    Help please!

    Posted 11 years ago on Friday November 9, 2012 | Permalink
  2. Can you post a link to the page on your site where we can see this form?

    What happened when you tried the code that Dana provided in the page you linked to?

    Posted 11 years ago on Friday November 9, 2012 | Permalink
  3. grupoparada
    Member

    This is the form: http://www.portadallc.com/signup/

    When i added to code from Dana, the form does not show when the user is logged in, and redirects to another page. The problem is that if the user is not logged in, the registration form does not show up. That mean that anyone who wants to register won't be able to do it.

    Posted 11 years ago on Saturday November 10, 2012 | Permalink
  4. I tried that URL but there is an apache basic auth dialog in the way. Please make the form accessible where we can see it.

    Posted 11 years ago on Saturday November 10, 2012 | Permalink
  5. grupoparada
    Member

    I removed the restriction. Please try again.

    Notice that the form is visible at the moment, I removed the code from Dana in functions.php

    Posted 11 years ago on Saturday November 10, 2012 | Permalink
  6. At this point, I can't test, because the form will appear whether I am logged in or not. I see the page now is visible to me at least.

    If the code Dana provided works fine with the visitor is logged in, but the form will not show when they are NOT logged in, then something is misconfigured. Either the code you pasted or something with the shortcode or the form number.

    Posted 11 years ago on Monday November 12, 2012 | Permalink
  7. grupoparada
    Member

    This is the code I added in the functions page (where the id # is the one for my form):

    //add the pre_render filter for form id = 5
    add_action("gform_pre_render_5", "redirect_logged_in_user");
    function redirect_logged_in_user()
    {
        if (is_user_logged_in())
        {
            echo '<script language="javascript">location.href="http://www.portadallc.com"</script>';
        }
    }

    I added the function again, so that you can check what error shows.

    Sign Up
    Oops! We could not locate your form.

    Posted 11 years ago on Tuesday November 13, 2012 | Permalink
  8. grupoparada
    Member

    any response!!!!

    I need quicker support, it has been 5 days and no response.

    Posted 11 years ago on Sunday November 18, 2012 | Permalink
  9. I just tried again and it is requiring an Apache Basic Auth.

    Posted 11 years ago on Sunday November 18, 2012 | Permalink