Custom Registration help
Hello Vanilla users. I've been trying to add this 1 extra field to my registration field but I can't seem to have actually write it to my database.
Must say I'm quite new at using PHP and doesn't seem like the API is explained very well for Vanilla or I've been unable to find the proper site.
Anyways based on this:http://vanillaforums.org/discussion/15120/custom-registration-fields
I've tried to edit my \applications\dashboard\views\entry\registerapproval.php
<?php echo $this->Form->Label('Main Warframe', 'main_warframe'); echo $this->Form->DropDown('main_warframe', array('Ash', 'Banshee', 'Ember', 'Excalibur', 'Frost', 'Loki', 'Mag', 'Nova', 'Nyx', 'Rhino', 'Saryn', 'Trinity', 'Vauban', 'Volt'), array('default' => 'Ash')); ?> </li>
And I've edited \applications\dashboard\models\class.usermodel.php
To following (Under InsertForApproval() )
$Fields['Email'] = $Email;
$Fields['Roles'] = (array)$RoleIDs;
$Fields['main_warframe'] = $_POST['main_warframe'];
Even though in my database it keeps getting set as 'NULL'
I probably have done something horrible wrong question is what. I simply have 'NULL' idea what the heck I've done wrong.
Anyone know what to do? Please share!