Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

How to customize register form

red010182red010182 New
edited October 2011 in Vanilla 2.0 - 2.8
Hello there:

I've read the thread "Custom Registration Form" at http://vanillaforums.org/discussion/comment/142065#Comment_142065

However, I still can't find the answer when need to add a "contact phone number" field when user registering.

Whatever by modifying the existing registration form or create a new one, can someone show me how?

I'll be very appreciated for anyone who can help.

Thanks.

Best Answers

  • Options
    ToddTodd Chief Product Officer Vanilla Staff
    Answer ✓
    I do believe that you can:

    1. Add the field to the GDN_User table.
    2. Add the input to the appropriate /applications/dashboard/views/entry/register*.php file.

    If you have a custom theme I recommend copying the view to your theme.
  • Options
    x00x00 MVP
    Answer ✓
    User Meta is another way to store.

    grep is your friend.

Answers

  • Options
    anyone please help?
  • Options
    ToddTodd Chief Product Officer Vanilla Staff
    Answer ✓
    I do believe that you can:

    1. Add the field to the GDN_User table.
    2. Add the input to the appropriate /applications/dashboard/views/entry/register*.php file.

    If you have a custom theme I recommend copying the view to your theme.
  • Options
    x00x00 MVP
    Answer ✓
    User Meta is another way to store.

    grep is your friend.

  • Options
    @Todd : that works! I'm now able to store my new custom field, thanks so much.
Sign In or Register to comment.