Subscriptions
zhihe/subscriptions
Extended subscriptions with follow_op support - Fork of flarum/subscriptions.
- Downloads
- 34
- Version control
- github.com/echolocked/zhihe-subscriptions
Enhanced Subscriptions for Flarum
An enhanced subscription system for Flarum with extended notification options and subscription analytics.
✨ Features
🎯 Follow OP Subscriptions
- Follow OP option: Get notifications only when the original poster replies
- Three subscription states: Following (all replies), Following OP (OP only), Ignore
- Perfect for tutorials, guides, and serialized content where OP responses are most important
📊 Subscription Analytics
- Display total follower count for each discussion
- Real-time subscription counts in discussion lists
- Visual indicators with star icons
- Always visible metrics (shows 0 when no followers)
🌍 Multi-language Support
- Full Chinese (Simplified) translations included
- Seamless bilingual interface support
- Easy to extend with additional languages
📋 Requirements
- Flarum 1.8 or higher
- PHP 8.0 or higher
🚀 Installation
composer require zhihe/subscriptions
php flarum extension:enable zhihe-subscriptions
⚠️ Important: This extension replaces the core flarum/subscriptions extension. Disable the original subscriptions extension before enabling this one.
🔧 Usage
For Users
- Following: Receive notifications for all replies to a discussion
- Following OP: Only get notified when the original poster responds
- Ignore: Stop all notifications from a discussion
For Administrators
- Subscription counts are automatically displayed in discussion lists
- All existing subscription data is preserved during migration
- No additional configuration required
🗄️ Database Schema
The extension adds a new subscription type to the existing schema:
-- Extends discussion_user.subscription enum
ALTER TABLE discussion_user
MODIFY COLUMN subscription ENUM('follow', 'ignore', 'follow_op');
🛠️ Development
Local Development Setup
git clone https://github.com/echolocked/zhihe-subscriptions.git
cd zhihe-subscriptions
composer install
cd js && npm install && npm run build
Keeping Updated
This extension maintains compatibility with the original flarum/subscriptions:
git remote add upstream https://github.com/flarum/subscriptions.git
git fetch upstream
git merge upstream/main
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
📄 License
MIT License - Compatible with original Flarum subscriptions extension.
🙏 Credits
- Based on flarum/subscriptions by the Flarum Team
- Enhanced and maintained by the Zhihe development team
🆘 Support
- Issues: GitHub Issues
- Community: Flarum Community Forum
Love this extension? Consider starring the repository and sharing it with the Flarum community! ⭐
Versions
-
Works with Flarum v1.8.13.
-
Works with Flarum v2.0.0-beta.7.
-
Last version v2.0.3 tagged.
-
31 more versions.
-
Extension created.