Shoutbox widget for fof/forum-widgets-core
composer require linkrobins/shoutbox
Then enable it in your forum's admin panel under Extensions.
A real-time shoutbox widget for Flarum 2.0, built as a widget for fof/forum-widgets-core.
viewForum permissionfof/forum-widgets-core installed and enabledThe shoutbox is intentionally simple about permissions.
The widget uses Flarum 2's CSS custom properties (var(--primary-color), var(--text-color), etc.) so it picks up your theme automatically. The send button shape changes based on placement, detected via parent class:
.sideNav, .IndexPage-nav, .FofWidgets-sideNavAlt ancestors → icon-only square buttonIf you want to override styles, target .ShoutboxWidget and its modifier classes from your custom Less in Admin → Appearance.
Widget doesn't appear in fof/forum-widgets-core config page:
Run php flarum cache:clear and reload the admin page. If it still doesn't appear, verify the extension is enabled in Extensions.
500 error on the homepage after enabling:
Almost always a missing migration. Run php flarum migrate. If it persists, check storage/logs/flarum-YYYY-MM-DD.log for the actual exception.
Shouts post but don't appear until refresh:
Polling is set to 15 seconds. If you're seeing longer delays, check the browser's network tab for failing GET /api/shoutbox requests.