Hello. I am working on an extension that adds birthdays to User accounts. Currently I have added a birthday column to the users table and the birthday is displayed on the users profile (although I don't think the way my code adds this is the proper way. ). My problem right now is adding a Modal to the users setting page that will allow for editing the birthday. A button currently is setup to trigger the ChangeBirthdayModal class just like the flarum-ext-tags extension. However the tags extension has added a few methods to the User class and I am wondering if that is a smart way to do this as well as how to do it.
Here is a link to my code should anyone be interested.
https://github.com/ryanvade/flarum-ext-birthdays/