There is no way to insert potentially required code in adm/style/acp_profile.html STEP 1 (lines 106 to 128) as code is hardcoded for the existing types. Given the way profilefields work, using an event would be (in my opinion) a bad resolution to this.
A flexible schema, similar to the one used for STEP 2 (lines 141 to 146), should be used.
This would require some rewriting of the profilefields/type subsystem, including additions to type_interface and all profilefields/type/* classes.
Besides this, the interface is not very clear and poorly documented, so some enhancements and clarifications would clearly help.
Small bug with no consequences: get_field_name is not defined as part of the type_interface, yet it is required (and implemented as part of type_base).
Discuss requests for comments/changes posted in the Issue Tracker for the development of phpBB. Upcoming releases are 3.2/Rhea and 3.3.
2 posts • Page 1 of 1
Created a PR for this.