We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39649
    • 17 Posts
    I installed ClassExtender and ran the Extend moduser tool to add the firstName, lastName, title, and company fields to the user profiles. When I tried adding the four fields to my Register page, it creates the user profile, but the extended fields don't end up showing in the new user profile created.


    Here is my Register page:
    [[!Register?
    &submitVar=`registerbtn`
    &activationResourceId=`5`
    &activationEmailTpl=`myActivationEmailTpl`
    &activationEmailSubject=`Thanks for Registering!`
    &submittedResourceId=`6`
    &usergroups=`Member:Member`
    &validate=`nospam:blank,
    password:required:minLength=^6^,
    password_confirm:password_confirm=^password^,
    email:required:email`
    &placeholderPrefix=`reg.`
    &postHooks=`ExtUserRegisterPosthook`
    &useExtended=`0`
    ]]
    <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]]" />


    <label for="company">[[%register.company]]
    <span class="error">[[!+reg.error.company]]</span>
    </label>
    <input type="text" name="company" id="company" value="[[!+reg.company]]" />


    <label for="firstName">[[%register.firstName]]
    <span class="error">[[!+reg.error.firstName]]</span>
    </label>
    <input type="text" name="firstName" id="firstName" value="[[!+reg.firstName]]" />


    <label for="lastName">[[%register.lastName]]
    <span class="error">[[!+reg.error.lastName]]</span>
    </label>
    <input type="text" name="lastName" id="lastName" value="[[!+reg.lastName]]" />


    <label for="title">[[%register.title]]
    <span class="error">[[!+reg.error.title]]</span>
    </label>
    <input type="text" name="title" id="title" value="[[!+reg.title]]" />


    <br class="clear" />
    <div class="form-buttons">
    <input type="submit" name="registerbtn" value="Register" />
    </div>
    </form>
    </div>

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

      • 38783
      • 571 Posts
      At first glance I can't see anything obviously wrong.

      On my form I have a different order for postHooks and useExtended so it reads...

      &useExtended=`0`
      &postHooks=`ExtUserRegisterPosthook`
      


      I am not sure if that is important or not.

      If you enter data into the ClassExtender fields in the Manager does the data remain in place and display correctly when the user is saved?
        If I help you out on these forums I would be very grateful if you would consider rating me on Trustpilot: https://uk.trustpilot.com/review/andytough.com

        email: [email protected] | website: https://andytough.com
        • 39649
        • 17 Posts
        Quote from: andytough at May 30, 2018, 08:55 PM
        At first glance I can't see anything obviously wrong.

        On my form I have a different order for postHooks and useExtended so it reads...

        &useExtended=`0`
        &postHooks=`ExtUserRegisterPosthook`
        


        I am not sure if that is important or not.

        If you enter data into the ClassExtender fields in the Manager does the data remain in place and display correctly when the user is saved?
        I have flipped the order around like yours but still no luck. Yes, when I enter info in the directly for the user and save it, it shows up.
        • discuss.answer
          • 39649
          • 17 Posts
          Figured it out. I changed my &submitVar to loginRegisterBtn and used that as the button name accordingly. Seems to be working fine now.

          Thanks!