v1.0.0
First public release, for testing.
Flarum shows a post author's badges as small icons tucked over the corner of the avatar, and you only find out what one means by hovering it. This extension writes each badge's name next to its icon and moves the badges somewhere they have room.
New
- Each badge becomes a single pill: its icon at the rounded left end, its name at the right, in the badge's own colour. Text colour is picked per badge so it stays readable on light and dark badges alike.
- Choose where the badges sit: in a column below the avatar (the author column widens to make room), or on the post header line beside the username, where they follow the timestamp.
- Optionally show how many posts the author has written, as a pill of its own in your theme's neutral badge colour so it is never mistaken for a group.
- Set how much room the author column gets, from 85 to 400 pixels, when the badges sit below the avatar.
- Phones keep Flarum's compact post header by default, since there is no room for titles there. One switch turns it on for phones too.
Notes
- Every badge is covered, not just group badges. The title comes from whatever each badge already tells Flarum its name is, so badges added by other extensions get labelled too, and badges with no name stay as plain icons.
- Nothing is added to your database, and nothing new is sent to visitors. The post count is the same one Flarum already shows on member profiles.
- Works on Flarum 1.8 and 2.x from this same release.
Thanks to Tutrix, whose CSS this grew out of, in reply to mihzor's request.
This is a first release put out for testing, so please report anything that looks wrong on your forum.