huseyinfiliz/sort-changer
最新稳定版本:v1
Composer 安装命令:
composer require huseyinfiliz/sort-changer
包简介
Change default discussion sort order in Flarum
关键字:
README 文档
README
A Flarum extension that allows you to change the default discussion sort order.
Features
- 🎯 Set default sort order (Latest, Top, Newest, Oldest)
- 🏠 Works only on homepage (not on tag or search pages)
- 🔗 Clean URLs for default sort option
- ⚡ Seamless user experience
Installation
Install with composer:
composer require huseyinfiliz/sort-changer
Updating
composer update huseyinfiliz/sort-changer php flarum cache:clear
Configuration
- Enable the extension in admin panel
- Go to extension settings
- Select your preferred default sort order:
- Latest: Shows discussions with most recent replies
- Top: Shows most popular discussions
- Newest: Shows newest created discussions
- Oldest: Shows oldest created discussions
- Save changes
How it Works
- Sets the default sort order when users first visit your forum homepage
- Users can still change the sort order manually using the dropdown
- Clean URLs: Hides the sort parameter when the default option is selected
- Only applies to the main index page (doesn't affect tag or search pages)
Compatibility
- Flarum: 1.8.1+
- PHP: 8.1+
- MySQL: 5.6+/8.0.23+ or MariaDB: 10.0.5+
- Works with both Nginx and Apache
统计信息
- 总下载量: 380
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-08-29