
Currently, I've got few custom profile fields and I can do this to access them:
function add_fields($data) {
global $mybb;
//$input = $mybb->get_input('profile_fields');
$fname = $mybb->input["profile_fields"]['fid4'];
$lname = $mybb->input["profile_fields"]['fid5'];
$number = $mybb->input['profile_fields']['fid8'];
$street = $mybb->input['profile_fields']['fid9'];
$zip = $mybb->input['profile_fields']['fid13'];
$city = $mybb->input['profile_fields']['fid14'];
But I also want to get the email from the people signing up, how can I do this?