承接 ekumanov/flarum-ext-post-search 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ekumanov/flarum-ext-post-search

Composer 安装命令:

composer require ekumanov/flarum-ext-post-search

包简介

Search and filter posts within a discussion by keyword or author, with search result highlighting.

README 文档

README

Search and filter posts within a discussion by keyword or author, with matched terms highlighted in the post stream.

Features

  • Find in discussion — A toolbar search field that filters the current discussion's post stream to posts matching a keyword. Non-matching posts are replaced with a "N non-matching posts hidden" gap indicator so navigation stays anchored to the full discussion.
  • Filter by author — Multi-user chip selector next to the search field. Pick one or more participants to restrict the stream to their posts. Suggestions are pre-loaded with the discussion's actual participants, so the dropdown works for regular users without viewUserList permission.
  • Search highlighting — Matched query terms are wrapped in <mark> tags within rendered post content while a filter is active.
  • Sticky toolbar — Pin button keeps the filter toolbar open across discussions; close button clears filters and hides it.
  • Multiple access points — Configurable entry buttons in the discussion controls dropdown, the sidebar navigation, and per-post controls.
  • Author quick-filter — Optional "Show only replies from this author" item in each post's controls menu.
  • Discussion-starter shortcut — Optional clickable "Discussion starter" label next to each post by the original poster; clicking it filters the stream to that user.
  • Permission-aware — Respects post visibility: soft-deleted / hidden posts and posts in restricted discussions are filtered server-side via Flarum's whereVisibleTo scope.
  • Fully localizable — All UI strings use locale keys with ICU plural support.

Requirements

  • Flarum 2.0 (not compatible with Flarum 1.x)
  • PHP 8.2+

Installation

composer require ekumanov/flarum-ext-post-search
php flarum cache:clear

Then enable the extension in the admin panel under Extensions > Post Search.

Configuration

Admin Settings

Setting Default Description
Access via discussion dropdown Disabled Show a "Search discussion" button in the discussion controls dropdown
Access via discussion side navigation Disabled Show a "Search discussion" button in the discussion sidebar
Quick filter for post author Disabled Add a "Show only replies from this author" shortcut to each post's controls
Discussion-starter shortcut Disabled Show a clickable "Discussion starter" label next to posts by the original poster; clicking it filters the stream to that user

All four toggles default to off so the extension is opt-in per forum.

Credits

This extension is a port and consolidation of two of Clark Winkelmann's Flarum 1.x extensions into a single Flarum 2.0 package:

The "Discussion starter" shortcut is a small original feature added on top — a clickable label, not a styled badge.

The relationship-select component used by the author filter is inlined from flamarkt/backoffice, so there is no runtime dependency on that package.

Porting and merging was done with Claude Code.

Updating

composer update ekumanov/flarum-ext-post-search
php flarum cache:clear

Links

License

MIT

统计信息

  • 总下载量: 246
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 1
  • 开发语言: TypeScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固