XF 2.2 Changing the display style group with a user preference

Lee

Well-known member
I have got a user preference set up which displays the groups a user is a member of, this can be used to set an integer in a field in the xf_user table.

This field is xf.user_xm_chosen_group.

I am looking to override the users display_style_group id with this value that they have selected.

I am looking through the existing code to find out where I need to hook in too, but I can't seem to find where the style_group id is determined.

Any help pointing me in the right direction would be greatly appreciated.
 
You can likely create a getter on the user entity to shadow the column value with the chosen value.
 
  • Like
Reactions: Lee
Top Bottom