Estadísticas sobre la utilización de temas

On my forum I created multiple themes (with different colour schemes and features). I liked the customisation :wink:

After a few years, I am now doing a refresh. I want to eliminate the old themes that are poorly utilised and consolidate on just 3 or 4. Is there any easy way of determining which themes are being utilised by my community?

2 Me gusta

Here’s my best answer before my battery dies:

UserOption.where("theme_ids is not null").pluck(:theme_ids)

Better would be to search for where that array is longer than 0, but I don’t know how to do that. This will get you all of them. You can then do something clever to sort and count.

3 Me gusta

See also

4 Me gusta

Brillant. Thank you goes !

:slight_smile:

1 me gusta

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.