Link Robins Shoutbox — A Live Shoutbox Widget
Hey everyone! Sharing my latest extension: Link Robins Shoutbox.
What it does
This extension adds a live shoutbox widget to your Flarum forum, built on top of fof/forum-widgets-core. Members can post short messages (up to 280 characters) that appear in real time, and the widget can be placed anywhere widgets are supported — sidebar, top, bottom, or full-width sections.
Features
- Live updates — the widget polls every 15 seconds so new shouts appear without a page refresh (don't need realtime)
- Smart button styling — automatically detects placement: icon-only square button when in the sidebar, icon + "Send" label when in top/bottom/full-width sections
- Configurable height — admins can set the messages area height in the extension settings (default 320px)
- Permission-aware profile links — usernames link to profiles only if the viewer has
viewForum permission; otherwise the name shows as plain text
- Guest-friendly — guests see the most recent 10 messages with a "Log in to shout!" prompt; members see 30 and can post
- Admin moderation — only administrators can delete shouts, keeping moderation centralized
- 280-character limit per shout, Twitter-style
- Avatar fallback — users without an avatar get a coloured letter avatar with a deterministic per-user colour
- Theme-friendly — uses Flarum 2's CSS custom properties so it picks up your theme colours automatically
How it works
For members:
- Find the shoutbox wherever the admin has placed it
- Type a message (up to 280 characters) and hit Enter or click Send
- The shout appears immediately and is visible to everyone
For guests:
- They see the last 10 shouts
- A "Log in to shout!" prompt appears in place of the input
For admins:
- Enable the extension and place the widget via the
fof/forum-widgets-core admin page
- Adjust the messages area height in Admin → Extensions → Link Robins Shoutbox
- Hover over any shout to reveal the delete button — admins only
Installation
composer require linkrobins/shoutbox
php flarum migrate
php flarum cache:clear
Then enable it in the admin panel and configure widget placement under fof/forum-widgets-core.
Requirements
- Flarum 2.0+
- PHP 8.2+
fof/forum-widgets-core installed and enabled
License
MIT
Links
As always, feedback and bug reports are welcome — drop them here or open an issue on GitHub.

