On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • Hello all:

    After some effort, I have got my registration going well. But I can't seem to redirect from the confirm registration snippet resource. Could someone provide an assist? How do other people do this? I can just put a link in that resource to the forums...

    My registration call is direct from the example, and the page numbers and member type are all right:

    <h2>Register</h2>
     
    [[!Register?
        &submitVar=`registerbtn`
        &activationResourceId=`9`
        &activationEmailTpl=`myActivationEmailTpl`
        &activationEmailSubject=`Thanks for Registering!`
        &submittedResourceId=`13`
        &usergroups=`2`
        &validate=`nospam:blank,
      username:required:minLength=^6^,
      password:required:minLength=^6^,
      password_confirm:password_confirm=^password^,
      fullname:required,
      email:required:email`
        &placeholderPrefix=`reg.`
    ]]
     
    <div class="register">
        <div class="registerMessage">[[!+reg.error.message]]</div>
     
        <form class="form" action="[[~[[*id]]]]" method="post">
            <input type="hidden" name="nospam" value="[[!+reg.nospam]]" />
     
            <label for="username">[[%register.username? &namespace=`login` &topic=`register`]]
                <span class="error">[[!+reg.error.username]]</span>
            </label>
            <input type="text" name="username" id="username" value="[[!+reg.username]]" />
     
            <label for="password">[[%register.password]]
                <span class="error">[[!+reg.error.password]]</span>
            </label>
            <input type="password" name="password" id="password" value="[[!+reg.password]]" />
     
            <label for="password_confirm">[[%register.password_confirm]]
                <span class="error">[[!+reg.error.password_confirm]]</span>
            </label>
            <input type="password" name="password_confirm" id="password_confirm" value="[[!+reg.password_confirm]]" />
     
            <label for="fullname">[[%register.fullname]]
                <span class="error">[[!+reg.error.fullname]]</span>
            </label>
            <input type="text" name="fullname" id="fullname" value="[[!+reg.fullname]]" />
     
            <label for="email">[[%register.email]]
                <span class="error">[[!+reg.error.email]]</span>
            </label>
            <input type="text" name="email" id="email" value="[[!+reg.email]]" />
     
            <br class="clear" />
     
            <div class="form-buttons">
                <input type="submit" name="registerbtn" value="Register" />
            </div>
        </form>
    </div>


    When I just had the confirm register snippet in the resource, the email gave me a good link and I could open the page (I put a short sentence in there to be sure I was getting the right page).

    But then, when I added
    &redirectTo=`2`
    after the confirm registration snippet, it makes the snippet not work.

    Any idea how to handle this? Thanks in advance!!

    This question has been answered by jrg. See the first response.

    • discuss.answer
      Quote from: nuan88 at May 13, 2014, 01:52 PM
      Hello all:

      [...]

      When I just had the confirm register snippet in the resource, the email gave me a good link and I could open the page (I put a short sentence in there to be sure I was getting the right page).

      But then, when I added
      &redirectTo=`2`
      after the confirm registration snippet, it makes the snippet not work.

      Any idea how to handle this? Thanks in advance!!

      Your post is quite old (4 months) and I don't see any replies. Did you resolve the issue? If not, I will try and help you out.
        __________________
        JRG
      • No, I am ok, thanks. I don't know how I worked it out, but it works now. I even made a two step process where the redirect goes to a form to get more info from the users.

        Thanks though!