huseyinfiliz/sort-changer 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

huseyinfiliz/sort-changer

最新稳定版本:v1

Composer 安装命令:

composer require huseyinfiliz/sort-changer

包简介

Change default discussion sort order in Flarum

关键字:

README 文档

README

License

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

  1. Enable the extension in admin panel
  2. Go to extension settings
  3. 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
  4. 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

GitHub 信息

  • Stars: 2
  • Watchers: 0
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-08-29