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
- 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}
- 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.