ernestdefoe / stances
Stances: one-click Agree/Disagree, Yes/No, This-or-That and Rating blocks anywhere in a post, and the side each member took shown beside their replies.
Fund package maintenance!
1.1.0
2026-11-12 04:07 UTC
Requires
- php: ^8.3
- ext-fileinfo: *
- flarum/core: ^2.0
Requires (Dev)
- flarum/approval: ^2.0
- flarum/gdpr: ^2.0
- flarum/lock: ^2.0
- flarum/phpstan: ^2.0
- flarum/tags: ^2.0
- flarum/testing: ^2.0
Suggests
- flarum/gdpr: Votes and blocks in a member's data export and erasure
- flarum/lock: Locked discussions take no votes
- flarum/mentions: Explain my vote mentions the block's post
- flarum/tags: Per-tag permissions to add blocks, vote, see voters and moderate
- fof/badges: Badges for stance blocks voted in and added
- fof/merge-discussions: Blocks follow their posts into the merged discussion
Provides
None
Conflicts
None
Replaces
None
README
A Flarum 2 extension: one-click blocks anywhere in a post, and the side each member took shown beside their replies.
- Four block types: Agree / Disagree, Yes / No, This or That (with an optional picture each) and a 1–5 star Rating. Members vote with one click, in place.
- Anywhere in a post: add blocks from the composer; each sits where its
[stance=…]line is. Up to 3 per post by default. - Results always, after voting, or after it closes. An optional close date. Votes can be changed or taken back, per block. Anonymous blocks never show who voted, to anyone.
- Stance badges: what each member chose shows beside their replies in that discussion, with a "changed" tag when they switched sides after replying. "Show replies from" filters the discussion to one side.
- Explain my vote starts a reply that mentions the block's post and says what you chose.
- Featured block under the opening post, and a Stances page with Needs your vote, Trending, New and Closing soon.
- Moderation: per-tag permissions, close, reopen, reset, make anonymous, feature, pick the badge block.
- FoF Badges metrics (blocks voted in, blocks added), when FoF Badges is installed.
Installation
composer require ernestdefoe/stances
Updating
composer update ernestdefoe/stances php flarum migrate php flarum cache:clear