How to add custom fields to registration...
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.
- OPen your datbase the vanilla one.
- Open up the user table and add a filed called 'Whatever' (Whatever will be changed to whatever you call it)
- 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.
- 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.
thanks for reading hope not to bad... Back to bed thx.