We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25308
    • 46 Posts
    MODc Revolution 2.2.2

    Greetings all. I've been using the login plugin for over a year now and for some reason the success message for the registration form part of the login plugin has mysteriously stopped working. I was thinking that the critical update to 2.2.2 would fix it but it didn't.

    The registration form adds the new user, it send an activation email and the login works after confirming the registration. The only thing that stopped working was the success message. I've tried substituting success message call with the redirect source id call but that didn't work either.

    Any clues as to why it would just stop working?

    Here's my calls and my form:

    [[!Register? 
    &submitVar=`registerbtn` 
    &activationResourceId=`23` 
    &activationEmailTpl=`jayTpl` 
    &activationEmailSubject=`Thank you for registering with PMSSC!`  
    &successMsg=`Thanks for registering with PMSSC! An account activation message has been sent to the email address [[+email]]. The activation link will only be active for 24 hours from the time of registration.` 
    &activationttl=`1440` 
    &usergroups=`customers` 
    &validate=`
    username:required:minLength=^6^, 
    password:required:minLength=^8^, 
    password_confirm:password_confirm=^password^, 
    fullname:required, 
    email:required:email` 
    &logoutMsg=`Thanks for stopping by!`
    ]]
    <table width="600" border="1" align="center">
    <tbody>
    <tr>
    <td>
    <table width="80%" border="0" align="center">
    <tbody>
    <tr>
    <td>
    <div class="register">
    <div class="registerMessage" style="color: #060;">[[!+reg.error.message]]</div>
    
    <p style="color: #9f0000; text-align: center;">*Required Fields</p>
    
    <form class="form" action="[[~[[*id]]]]" method="post">
    
    <label style="color: #9f0000;" for="username">*[[%register.username? &namespace=`login` &topic=`register`]] <span class="error">[[!+reg.error.username]]</span></label><br />
    
    ( must be at least 6 characters ) <br />
    
    <input id="username" type="text" name="username" value="[[!+reg.username]]" /> <br /> 
    
    <label style="color: #9f0000;" for="password">*[[%register.password]] <span class="error">[[!+reg.error.password]]</span> </label> <br />
    
    ( must be at least 8 characters )<br /> 
    
    <input id="password" type="password" name="password" value="[[!+reg.password]]" /> <br /> 
    
    <label style="color: #9f0000;" for="password_confirm">*[[%register.password_confirm]] <span class="error">[[!+reg.error.password_confirm]]</span> </label><br /> 
    
    <input id="password_confirm" type="password" name="password_confirm" value="[[!+reg.password_confirm]]" /> <br /> 
    
    <label style="color: #9f0000;" for="fullname">*[[%register.fullname]] <span class="error">[[!+reg.error.fullname]] </span> </label><br /> 
    
    <input id="fullname" type="text" name="fullname" value="[[!+reg.fullname]]" /> <br /> 
    
    <label style="color: #9f0000;" for="email">*[[%register.email]] <span class="error">[[!+reg.error.email]]</span> </label><br /> 
    
    <input id="email" type="text" name="email" value="[[!+reg.email]]" /> <br /> 
    
    <label>Phone#: <span class="error">[[+error.phone]]</span> <br /> 
    
    <input type="text" name="phone" value="[[+phone]]" /></label> <br /> 
    
    <label>Alt. Phone#: <span class="error">[[+error.alt_phone]]</span> <br /> 
    
    <input type="text" name="alt_phone" value="[[+alt_phone]]" /></label> <br /> 
    
    <label>Business: <span class="error">[[+error.business]]</span> <br /> 
    
    <input type="text" name="business" value="[[+business]]" /></label> <br /> 
    
    <label>Would you like to receive promotions on special deals? <span class="error">[[+error.notifications]]</span> <br /> <select name="promotions"> <option value="yes">Yes</option> <option value="no">No</option> </select></label> <br /> 
    
    <br class="clear" />
    <div class="form-buttons"><input type="submit" name="registerbtn" value="Register" /></div>
    </form>
    <br />
    <br />
    </div>
    </td>
    </tr>
    </tbody>
    </table>
    </td>
    </tr>
    </tbody>
    </table>
    <br />
    <br /> 


    Any help with this or clues will be greatly appreciated. Thanks
      • 3749
      • 24,544 Posts
      Looking at the code, it looks like your error placeholder is wrong (though it matches what's in the docs). Try this:


      [[+error.message]]




      ------------------------------------------------------------------------------------------
      PLEASE, PLEASE specify the version of MODX you are using.
      MODX info for everyone: http://bobsguides.com/modx.html
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 25308
        • 46 Posts
        Bob that was exactly what the problem was. You've helped me out once again and I greatly appreciate it. I'll submit this change to those who control the documentation.

        Have a great day.
          • 3749
          • 24,544 Posts
          Glad it helped. I thought about changing the docs, but the author may prefer to change the code instead. Thanks for submitting the problem.


          ------------------------------------------------------------------------------------------
          PLEASE, PLEASE specify the version of MODX you are using.
          MODX info for everyone: http://bobsguides.com/modx.html
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting