XF 2.3 Custom user fields: adding a "display group"

Wildcat Media

Well-known member
When adding custom fields, we have a choice of three "display groups":

1764725864941.webp

I would like to add a fourth.

Digging a little, it seems the display group is entered via <input> fields (via the radio buttons).

1764725997371.webp

If there is nothing preventing it, I could use a template modification to add another radio button, [SIZE=4]name="display_group" value="mygroup"[/SIZE] and that should get saved into the [SIZE=4]xf_user_field[/SIZE] table's [SIZE=4]display_group[/SIZE] column:

1764726198643.webp

Provided this works as expected, then how would I retrieve this as a separate group?

Ideally this group's custom fields would appear in the About tab in our profiles, or even as a separate tab.

Has anyone else attempted something like this? I'm no developer anymore, so use small words and the big crayons. 😁 I just want to see if this is feasible, and how hard it might be to make it work. I don't see it being all that difficult, but I haven't yet made the connection between data in the xf_user_field table and retrieving my custom group for display.
 
Back
Top Bottom