zhihe / subscriptions
Extended subscriptions with follow_op support - Fork of flarum/subscriptions.
Fund package maintenance!
Website
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Type:flarum-extension
- dev-main
- v2.0.1
- v2.0.0-beta.3
- v2.0.0-beta.2
- v2.0.0-beta.1
- v1.9.0
- v1.8.1
- v1.8.0
- v1.7.0
- v1.6.3
- v1.6.1
- v1.6.0
- v1.5.0
- v1.4.0
- v1.3.1
- v1.3.0
- v1.2.0
- v1.1.0
- v1.0.0
- v0.1.0-beta.16
- v0.1.0-beta.15
- v0.1.0-beta.14
- v0.1.0-beta.13
- v0.1.0-beta.12
- v0.1.0-beta.9
- v0.1.0-beta.8
- v0.1.0-beta.6
- v0.1.0-beta.5
- v0.1.0-beta.4
- v0.1.0-beta.3
This package is auto-updated.
Last update: 2025-08-12 02:19:29 UTC
README
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! ⭐