The discussion revolves around a Christmas hats component for Discourse forums. barryvan introduced the component, which adds festive hats to user avatars. The component is available on GitHub and can be installed as a theme component.
Users have reported varying levels of success with the component, including issues with mobile compatibility. Jason3 shared a modified version of the component that works on mobile and allows users to choose from multiple hat designs.
Some users have requested additional features, such as the ability to upload custom images or target specific users or groups with the hats. puchal asked about uploading custom images, and anon48433008 provided a solution by changing the URL of the image.
Other issues reported include an undefined variable error in the admin panel and the hats not displaying correctly on certain themes. frold shared a solution to a similar error in a different theme component.
The discussion also touches on the topic of user opt-out options, with Sailsman63 requesting a way to opt out of the Christmas hats due to finding the holiday offensive.
Overall, the Christmas hats component is a fun and festive addition to Discourse forums, but may require some tweaking and customization to work correctly for all users.
This theme assumes list avatars are 25x25 with a 2px border all round; you may need to tweak some of the positioning in the CSS for your avatars.
It also assumes that thread avatars are 64x64 with a 2px border all round; again, tweak the positioning as you see fit.
To avoid excessive festiveness, not all avatars in lists will be bedecked with Christmas cheer, but once you open up a thread, everyone is part of the fun.
thank you for your help, my forums are loving all the Christmas themes and hat components.
thank you for the great component to work off of, its awesome
Thanks for the help, I hadn’t read too carefully, and I’m not familiar with themes/components yet, so I was expecting it to “just work.” I’ll give it a shot with your instructions.
Yeah, that’d be nice. It’s a bit beyond my ability at the moment, I’m afraid, or I’d try to contribute back in that way.