A Flarum 2.0 extension that adds a small OP label next to the original poster's name whenever they reply in their own discussion. Makes it easy to spot the discussion author's contributions across a long thread.
This is a Flarum 2.0 port of dem13n/topic-starter-label (Flarum 1.x), with the label changed to "OP" and adapted for Flarum 2.0's component registry.
Inside a discussion, every reply written by the person who started it gets a small OP badge added to its author byline. Two rules keep the badge useful:
- Only the original poster. Replies from everyone else are left untouched.
- Replies only, not the opening post. The first post is the OP by definition, so badging it would just be noise. The badge is there to pick the OP's replies out from the rest of the conversation.
The badge only renders on the discussion page, so post previews and other lists stay clean. It uses your theme's primary color, so it fits in on any light or dark theme without configuration.
- No settings and no migrations. The badge is on for everyone once the extension is enabled.
- No permission to hide it from particular groups — everyone who can read the discussion sees it.
- Nothing outside the discussion page. The discussion list, post previews and search results are untouched, so a long index doesn't fill with badges.
- It never badges the opening post. That post is the OP by definition, so a badge there would mark every discussion's first post and tell you nothing.
The badge is a single element with the class .LinkRobinsOp-badge, inside the post's author byline. It inherits your theme's primary colour, so it follows light and dark themes without configuration. To restyle it, override that class in your theme's custom LESS:
.LinkRobinsOp-badge {
background: @secondary-color;
text-transform: none;
}composer require linkrobins/op
php flarum cache:clearThen enable it in Admin → Extensions. No configuration and no migrations.
- Flarum 2.0 (tested through 2.0.0-rc.5)
- PHP 8.3+
- No dependencies beyond
flarum/core
MIT. Credit to Dem13n for the original implementation.