How to add two new fields for users

Describe the issue or problem
I’m trying to add two new fields for users in OJS, I managed to insert the fields visually, but I don’t know how to make the data inserted in these fields be saved (database, controller, DAO, etc.) in my system, I need help on how to proceed with this.

Steps I took leading up to the issue

  1. In “userDetails.tpl” I added two fields (academicTitle and phone):

{fbvFormSection for=“affiliation”}
{fbvElement type=“text” label=“user.academicTitle” name=“academicTitle” id=“academicTitle” value=$academicTitle maxlength=“255” size=$fbvStyles.size.MEDIUM inline=false}
{/fbvFormSection}
{fbvElement type=“text” label=“user.phone” name=“phone” id=“phone” value=$phone maxlength=“24” size=$fbvStyles.size.SMALL inline=false}

  1. In “user.po” I defined the msgid and msgstr for these two new fields.

What application are you using?
OJS 3.2.1.4

Additional information
I tried to add the fields in some functions that I saw in “UserDetailsForm.inc.php” and I also tried to create some in “User.inc.php”, but without success in saving this data in my OJS application.

Yesterday I managed to add these two attributes to the database, I did this through the migration file that contains the users table (common.xml).

I ran the upgrade command (php tools/upgrade.php upgrade). So the new fields are in the database, I already checked: academic_title and phone.

I added the fields to the user model (UserDAO.inc.php) and added the methods (get and set) to access said fields.

Then I edited the userDetails.tpl file, adding these two inputs, as in the image below:

But I still can’t get the data entered in these form inputs to be saved (persisted) in the database.

I need help with this, how can I correctly associate these form fields with my database?