I made a theme of my own based on the persona theme. I created new custom fields on the user profile, e.g. zodiac sign, personality, favourite movies, etc. For these fields to be saved I also changed the files:
- profile.js in nodebb/src/user/profile.js. To be precise I changed the function User.updateProfile
- edit.js in nodebb/public/src/client/account/edit.js. To be precise I changed the function updateProfile.
These functions in the files mentioned above are responsible for saving the field information of the user profile.
What happens if nodeBB is updated and I have to update my nodeBB? Will the changes I made in edit.js and profile.js be gone and I have to write them again? How do I add custom fields in the user profile in a way that is "update friendly", meaning that if I have to update nodeBB I don't have to think about changing the profile-update-function?