PHPackages                             weixinxin1994/flarum-custom-discussions-item - 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. weixinxin1994/flarum-custom-discussions-item

ActiveFlarum-extension

weixinxin1994/flarum-custom-discussions-item
============================================

Enhanced Discussions List Item for Flarum - Add author avatars, likes count, and reply user avatars

v1.0.1(5mo ago)041MITLess

Since Sep 29Pushed 5mo agoCompare

[ Source](https://github.com/Weixinxin1994/flarum-custom-discussions-item)[ Packagist](https://packagist.org/packages/weixinxin1994/flarum-custom-discussions-item)[ Docs](https://github.com/Weixinxin1994/flarum-custom-discussions-item)[ RSS](/packages/weixinxin1994-flarum-custom-discussions-item/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (3)Versions (3)Used By (0)

Flarum Custom Discussions Item
==============================

[](#flarum-custom-discussions-item)

Enhanced Discussions List Item for Flarum - Add author avatars, likes count, and reply user avatars to discussion list items.

功能特性
----

[](#功能特性)

- ✨ **作者头像显示** - 在讨论列表中显示讨论作者的头像
- ❤️ **点赞数统计** - 显示讨论的总点赞数
- 👥 **回帖用户头像** - 显示最近回帖用户的头像列表
- ⚙️ **后台配置** - 可控制各项功能的开启/关闭
- 📱 **响应式设计** - 支持移动端显示
- 🌍 **多语言支持** - 支持中文和英文

安装
--

[](#安装)

```
composer require weixinxin1994/flarum-custom-discussions-item
```

启用
--

[](#启用)

```
php flarum extension:enable custom-discussions-item
```

配置
--

[](#配置)

在Flarum后台的扩展设置中，你可以配置：

- **显示作者头像** - 控制是否显示讨论作者头像
- **显示点赞数** - 控制是否显示点赞统计
- **显示回帖用户头像** - 控制是否显示回帖用户头像
- **最大回帖头像数量** - 设置显示的回帖用户头像数量（1-10个）
- **头像大小** - 设置头像的显示大小（像素）

截图
--

[](#截图)

[![讨论列表增强效果](https://camo.githubusercontent.com/d6b667c552ce235bcccad4483c4feb156fdce9e3fb4811c383f961ca4873b63a/68747470733a2f2f7669612e706c616365686f6c6465722e636f6d2f383030783430303f746578743d44697363757373696f6e2b4c6973742b456e68616e63656d656e74)](https://camo.githubusercontent.com/d6b667c552ce235bcccad4483c4feb156fdce9e3fb4811c383f961ca4873b63a/68747470733a2f2f7669612e706c616365686f6c6465722e636f6d2f383030783430303f746578743d44697363757373696f6e2b4c6973742b456e68616e63656d656e74)

技术实现
----

[](#技术实现)

- 扩展了 `DiscussionSerializer` 来添加 `likesCount` 和 `replyUsers` 属性
- 扩展了 `ForumSerializer` 来传递后台配置到前端
- 使用 `DiscussionListItem` 组件扩展来添加新的显示元素
- 支持Flarum的权限系统和缓存机制

开发
--

[](#开发)

### 本地开发

[](#本地开发)

1. 克隆仓库

```
git clone https://github.com/Weixinxin1994/flarum-custom-discussions-item.git
cd flarum-custom-discussions-item
```

2. 安装依赖

```
composer install
```

3. 编译资源

```
npm install
npm run build
```

### 测试

[](#测试)

```
composer test
```

更新日志
----

[](#更新日志)

### v1.0.0

[](#v100)

- 初始版本发布
- 支持作者头像、点赞数、回帖用户头像显示
- 完整的后台配置界面
- 中英文语言支持

许可证
---

[](#许可证)

MIT License. 详见 [LICENSE](LICENSE) 文件。

支持
--

[](#支持)

如果你遇到问题或有建议，请：

1. 查看 [Issues](https://github.com/Weixinxin1994/flarum-custom-discussions-item/issues)
2. 创建新的 Issue
3. 联系开发者：

贡献
--

[](#贡献)

欢迎提交 Pull Request 来改进这个扩展！

相关链接
----

[](#相关链接)

- [Flarum官网](https://flarum.org/)
- [Flarum扩展开发文档](https://docs.flarum.org/extend/)
- [Packagist页面](https://packagist.org/packages/weixinxin1994/flarum-custom-discussions-item)

###  Health Score

32

—

LowBetter than 74% of packages

Maintenance70

Regular maintenance activity

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

174d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/706078dcc7046f28694d787166df7efdf964de89c623f1aae9c98b664dee1f66?d=identicon)[Weixinxin1994](/maintainers/Weixinxin1994)

---

Top Contributors

[![Weixinxin1994](https://avatars.githubusercontent.com/u/26537465?v=4)](https://github.com/Weixinxin1994 "Weixinxin1994 (9 commits)")

---

Tags

extensionavatarflarumlikesdiscussionsrepliesitem

### Embed Badge

![Health badge](/badges/weixinxin1994-flarum-custom-discussions-item/health.svg)

```
[![Health](https://phpackages.com/badges/weixinxin1994-flarum-custom-discussions-item/health.svg)](https://phpackages.com/packages/weixinxin1994-flarum-custom-discussions-item)
```

###  Alternatives

[fof/mason

Add custom fields to discussions

205.8k](/packages/fof-mason)

PHPackages © 2026

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