treeslins/flarum-ext-reply-to-see

Hide content until users reply — supports Flarum 2.0. Encourage engagement by revealing hidden posts only after replying.

Maintainers

Package info

github.com/treeslins/flarum-ext-reply-to-see

Issues

Forum

Language:JavaScript

Type:flarum-extension

pkg:composer/treeslins/flarum-ext-reply-to-see

Statistics

Installs: 8

Dependents: 0

Suggesters: 0

Stars: 0

1.0.6 2026-05-07 16:20 UTC

This package is auto-updated.

Last update: 2026-05-07 16:20:55 UTC


README

A Flarum extension that hides content until users reply to the discussion. Supports Flarum 2.0.

一个 Flarum 扩展,隐藏帖子内容直到用户回复该讨论。支持 Flarum 2.0。

Features / 功能

  • BBCode tag / BBCode 标签: Wrap content with [REPLY]...[/REPLY] to hide it / 使用 [REPLY]...[/REPLY] 包裹内容进行隐藏
  • Auto-reveal / 自动解锁: Content automatically shows after the user replies / 用户回复后自动显示隐藏内容
  • Editor button / 编辑器按钮: One-click toolbar button to insert the [REPLY] tag / 工具栏一键插入 [REPLY] 标签
  • Role-based access / 角色权限控制:
    • Post author — always visible / 帖子作者 — 始终可见
    • Admin — always visible / 管理员 — 始终可见
    • Users with bypass permission — always visible / 拥有免回复权限的用户 — 始终可见
    • Guests & non-replying users — see placeholder text / 游客和未回复用户 — 看到占位提示
  • Customizable / 可自定义: Change the placeholder text in the admin settings / 在后台设置中自定义提示文字
  • Secure / 安全: Content is filtered server-side / 内容在服务端过滤,无法通过浏览器查看源码绕过

Installation / 安装

composer require treeslins/flarum-ext-reply-to-see

Usage / 使用方法

In the post editor / 在帖子编辑器中:

This is public content everyone can see. / 这是所有人可见的公开内容。

[REPLY]This content is hidden until the user replies. / 这段内容需要回复后才能查看。[/REPLY]

Admin Settings / 后台设置

  • Placeholder text / 占位提示文字 — Customize the message shown to non-replying users / 自定义未回复用户看到的提示信息
  • Bypass permission / 免回复权限 — Grant specific groups the ability to view hidden content without replying / 授予特定群组无需回复即可查看隐藏内容的权限

Compatibility / 兼容性

  • Flarum ^2.0

License / 许可证

MIT