PHPackages                             fof/discussion-templates - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. fof/discussion-templates

ActiveFlarum-extension[Utility &amp; Helpers](/categories/utility)

fof/discussion-templates
========================

Create per-tag templates for new discussions.

1.0.0(6mo ago)01.9k↑36.3%[1 issues](https://github.com/FriendsOfFlarum/discussion-templates/issues)MITPHPCI passing

Since Dec 24Pushed 4mo agoCompare

[ Source](https://github.com/FriendsOfFlarum/discussion-templates)[ Packagist](https://packagist.org/packages/fof/discussion-templates)[ Fund](https://opencollective.com/fof)[ RSS](/packages/fof-discussion-templates/feed)WikiDiscussions 2.x Synced today

READMEChangelog (2)Dependencies (4)Versions (4)Used By (0)

FoF Discussion Templates
========================

[](#fof-discussion-templates)

[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667) [![Latest Stable Version](https://camo.githubusercontent.com/f6245941727fbe4dab9f7b7fac0523d245a644b56967f006cbc3056814464123/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666f662f64697363757373696f6e2d74656d706c617465732e737667)](https://packagist.org/packages/fof/discussion-templates)

A [Flarum](http://flarum.org) extension that allows you to create customizable templates for new discussions. Templates can be assigned per tag or set as a default for discussions without tags. Additionally, discussion owners and moderators can set reply templates to guide responses.

> **Note:** This extension is a direct replacement for the abandoned [`askvortsov/flarum-discussion-templates`](https://github.com/askvortsov1/flarum-discussion-templates). Upgrading from the old version is seamless - simply install this new version and your existing templates and settings will be automatically migrated!

Features
--------

[](#features)

- **Tag-Based Templates**: Create specific templates for each tag to guide users on what information to include
- **Default Template**: Set a fallback template for discussions created without any tags
- **Reply Templates**: Discussion owners can set templates that appear when users reply to their discussions
- **Permission System**: Granular control over who can manage templates
    - `discussion.manageOwnDiscussionReplyTemplates` - Allow users to manage reply templates on their own discussions
    - `discussion.manageAllReplyTemplates` - Allow users (e.g., moderators) to manage reply templates on any discussion
- **Auto-Insert**: Templates automatically populate the composer when creating new discussions or can append when tags change

Installation
------------

[](#installation)

Install with composer:

```
composer require fof/discussion-templates
php flarum migrate
php flarum cache:clear
```

Setup
-----

[](#setup)

### Tag Templates

[](#tag-templates)

1. Navigate to the Tags page in your admin panel
2. Click on a tag you want to add a template to
3. In the modal, you'll see a "Discussion Template" field
4. Enter your template using markdown or BBCode formatting
5. Save the tag

### Default Template (No Tags)

[](#default-template-no-tags)

1. Go to the Extensions page in your admin panel
2. Find "FoF Discussion Templates" and click settings
3. Enter your default template in the "Template for discussions with no tag" field
4. You can also enable "Append template when tags change" to update the composer when users modify tags

### Reply Templates

[](#reply-templates)

**For Discussion Owners:**

1. Navigate to one of your discussions
2. Click the three-dot menu and select "Set Reply Template"
3. Enter the template you want users to see when replying
4. Save

**For Moderators:**

- Moderators with the appropriate permission can set reply templates on any discussion using the same method

Permissions
-----------

[](#permissions)

Configure permissions in your admin panel under the Permissions page:

- **Manage own discussion reply templates**: Allows users to set reply templates on discussions they created
- **Manage all discussion reply templates**: Allows users (typically moderators) to set reply templates on any discussion

Usage
-----

[](#usage)

### Creating a Discussion

[](#creating-a-discussion)

When a user creates a new discussion:

- If a tag is selected and has a template, that template will be inserted into the composer
- If no tags are selected and a default template exists, it will be inserted
- If multiple tags are selected with templates, the primary tag's template takes precedence

### Replying to a Discussion

[](#replying-to-a-discussion)

When a discussion has a reply template set:

- The template will appear in the composer when users click "Reply"
- Users can modify or remove the template as needed before posting

Notes
-----

[](#notes)

- Templates support markdown and BBCode formatting
- The composer preview is not available in the admin area. To preview formatting, create a test discussion in the forum and copy the formatted content
- Templates are automatically inserted when the composer is opened, but users can freely edit or remove them

Updating
--------

[](#updating)

```
composer update fof/discussion-templates
php flarum migrate
php flarum cache:clear
```

Links
-----

[](#links)

- [Packagist](https://packagist.org/packages/fof/discussion-templates)
- [Github](https://github.com/FriendsOfFlarum/discussion-templates)
- [Discuss](https://discuss.flarum.org/d/38552-fof-discussion-templates)

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance72

Regular maintenance activity

Popularity21

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 55.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~18 days

Total

4

Last Release

138d ago

Major Versions

1.0.0 → 2.0.0-beta.12025-12-24

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16573496?v=4)[IanM](/maintainers/imorland)[@imorland](https://github.com/imorland)

![](https://avatars.githubusercontent.com/u/1630413?v=4)[Gregor Hammerschmidt](/maintainers/GreXXL)[@GreXXL](https://github.com/GreXXL)

![](https://www.gravatar.com/avatar/0538135c1debcef5602dce7ece027909cc832b7a6284ab9189a19aa8de98d60d?d=identicon)[clarkwinkelmann](/maintainers/clarkwinkelmann)

![](https://www.gravatar.com/avatar/1298cdc0b2402a1aa34fb75a254947d655e090d62bd0531311331d369cac934e?d=identicon)[datitisev](/maintainers/datitisev)

---

Top Contributors

[![askvortsov1](https://avatars.githubusercontent.com/u/38059171?v=4)](https://github.com/askvortsov1 "askvortsov1 (30 commits)")[![flarum-bot](https://avatars.githubusercontent.com/u/39334649?v=4)](https://github.com/flarum-bot "flarum-bot (13 commits)")[![imorland](https://avatars.githubusercontent.com/u/16573496?v=4)](https://github.com/imorland "imorland (5 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![clarkwinkelmann](https://avatars.githubusercontent.com/u/5264300?v=4)](https://github.com/clarkwinkelmann "clarkwinkelmann (1 commits)")[![davwheat](https://avatars.githubusercontent.com/u/7406822?v=4)](https://github.com/davwheat "davwheat (1 commits)")[![luceos](https://avatars.githubusercontent.com/u/504687?v=4)](https://github.com/luceos "luceos (1 commits)")[![SKevo18](https://avatars.githubusercontent.com/u/39010496?v=4)](https://github.com/SKevo18 "SKevo18 (1 commits)")[![wloot](https://avatars.githubusercontent.com/u/30223095?v=4)](https://github.com/wloot "wloot (1 commits)")

---

Tags

flarum

### Embed Badge

![Health badge](/badges/fof-discussion-templates/health.svg)

```
[![Health](https://phpackages.com/badges/fof-discussion-templates/health.svg)](https://phpackages.com/packages/fof-discussion-templates)
```

###  Alternatives

[fof/discussion-language

Specify the language a discussion is written in &amp; sort by language

1034.8k4](/packages/fof-discussion-language)[flarum-lang/russian

Russian language pack for Flarum.

12128.3k](/packages/flarum-lang-russian)[fof/byobu

Well integrated, advanced private discussions.

59120.6k13](/packages/fof-byobu)[fof/best-answer

Mark a post as the best answer in a discussion

25154.0k20](/packages/fof-best-answer)[michaelbelgium/mybb-to-flarum

Migrate a MyBB Forum to a fresh Flarum instance

261.1k](/packages/michaelbelgium-mybb-to-flarum)[flarum-lang/french

French language pack to localize the Flarum forum software plus its official and third-party extensions.

1938.7k](/packages/flarum-lang-french)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
