HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

How to add custom fields to registration...

kachan64kachan64 New
edited December 2012 in General Banter

I am **** tired and I'm trying to write this quickly as possible.
Took me a lot of tries on editing class.usermodel.php and finally got it working.

  $UserID = $this->SQL->Insert($this->Name, $Fields);

That thing above was actually for username, i tried to follow that and do my own field and did not work...
Finding and searching on forums also no luck to me.

  1. OPen your datbase the vanilla one.
  2. Open up the user table and add a filed called 'Whatever' (Whatever will be changed to whatever you call it)
  3. Open up register*.php and copy the li tag from the name filed (cuz is easier) and just remove the error fail bit and change both 'name' with the quotes to your own. best is to follow up the 'whatever' field from the database.
  4. THen open up class.usermodel.php and above the code I just listed add:
    $WhateverID = $_POST['whatever'];

Change WhateverID to what you did before.
Change WhatEver to what you use before.
and done!
thanks for reading hope not to bad... Back to bed thx.


  • Options
    LincLinc Detroit Admin

    In the latest version of Vanilla (not sure if this exists in, the way to do this would be 1) Enable the Profile Extender plugin. 2) Type 'Whatever' into the Registration Fields text box and save.

  • Options

    Hello Lincoln:
    I see ist a old post but, Is any pluging like Extender or similar for

  • Options
    GaryFunkGaryFunk Senior Application Developer ✭✭

    @Lincoln I modified one of the SSO plugins and added the following:

    $Form->SetFormValue('Twitter', GetValue('twitter', $Profile['response']['user']['contact']));
    $Form->SetFormValue('Facebook', GetValue('facebook', $Profile['response']['user']['contact']));

    However, the form fields do not get filled in. How should one handle this with your Profile Extender plugin?



Sign In or Register to comment.