- Edited
Color Circles for Groups
This Flarum extension adds color circles around avatars based on their group
Install or update
To install the latest version compatible with your forum:
composer require clarkwinkelmann/flarum-ext-circle-groups
This Flarum extension adds color circles around avatars based on their group
To install the latest version compatible with your forum:
composer require clarkwinkelmann/flarum-ext-circle-groups
Nice !! Very useful
In case some of you are confused, this extension is not new, it's been around since beta 6, but never had its own discussion on the forum. It started as a simple proof of concept but apparently many of you have installed it on their forum.
So following many queries for update, here it is, finally compatible with beta 8
clarkwinkelmann Wow, you are my idol, great.
Nice extension
Awesome +1
Bear hugs for @clarkwinkelmann
What happens if you're part of multiple groups? Just curious
luceos it seems it takes the first (the leftmost I think)
Cool extension! How about also coloring the circles on user profiles and user cards?
matteocontrini I was hoping it would be equal parts each color lol
MikeJones I second this, that would be cool.
MikeJones I was hoping it would be equal parts each color lol
that's more complicated
matteocontrini it seems it takes the first
Yes it was made as simple as possible. Depending on the order groups appear, you might not get the expected result.
I you put a bounty on those features I might implement them
Just released version 0.2.1
which fixes the extension to handle deleted users https://github.com/clarkwinkelmann/flarum-ext-circle-groups/issues/2 . In previous versions the frontend would break when browsing a discussion containing a post from a deleted user. Thanks @matteocontrini for the report.
Hi @clarkwinkelmann ,
your extension becomes incompatible if colored username is present. In fact, if I activate both, only the last activated works so I am obliged to use only one.
https://discuss.flarum.org/d/22411-coloured-usernames
Gatsu I'm not seeing any obvious problem by reading the code. I'll try to to a test when I have some time.
Did you try clearing the cache after enabling both extensions?
clarkwinkelmann Yes, I did it
clarkwinkelmann since what the other extension does is changing the text color with literally three lines of code, wouldn't it be easier to just incorporate the feature in this extension?
matteocontrini but then it would require settings to control which features are enabled. It's easier to have two extensions and enabling/disabling each feature by enabling/disabling the extension.
clarkwinkelmann but then it would require settings to control which features are enabled
Probably
clarkwinkelmann It's easier to have two extensions and enabling/disabling each feature by enabling/disabling the extension.
Mmm not sure how that would be easier? Having two extensions for such small features seems an overkill to me. Both need to be kept updated by the maintainer, and they are a pretty useless duplication of code, aren't they? The other extension is a copy-paste of this one with just a few lines changed :/