huoxin / user-handles
Display @username handles alongside nicknames across the forum.
Package info
github.com/huoxin233/flarum-ext-user-handles
Language:TypeScript
Type:flarum-extension
pkg:composer/huoxin/user-handles
1.0.0
2026-09-28 09:53 UTC
Requires
- flarum/core: ^1.2.0
Requires (Dev)
- flarum/testing: ^1.0.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
A Flarum extension that displays @username handles alongside display names / nicknames across the forum.
Features
- Dual Identity Display: Prominently shows both nickname and
@usernamehandle. - Zero Redundancy: If a user's nickname is the same as their username, only the single name is rendered.
- Customizable Format: Admins can customize the handle template in the admin settings using
{username}(e.g.,@{username},(@{username}),[{username}]). - Capitalization Differences Option: Toggle whether case-only differences (e.g.
Alicevsalice) should be treated as identical. - Independent Location Toggles: Choose whether to display handles in post author headers, user cards & profile banners, or both.
- Native & Responsive: Clean typography using Flarum's native LESS variables with responsive breakpoints for mobile screens.
- Secure & Lightweight: Native text rendering with zero raw HTML. Zero database migrations needed.
Configuration
In your Flarum Admin Area > Extensions > User Handles:
| Setting | Description | Default |
|---|---|---|
| Handle Format Template | Template for formatting the handle. Use {username} as placeholder. |
@{username} |
| Ignore capitalization differences | When enabled, names differing only by case (e.g., Alice and alice) are treated as identical and hide the handle. |
Off |
| Display on Posts | Show user handles beside nicknames in post author headers. | On |
| Display on User Cards | Show user handles on hover profile cards and hero profile banners. | On |
Installation
Install with composer:
composer require huoxin/user-handles:"*"
Updating
composer update huoxin/user-handles:"*"
php flarum cache:clear