zhihe/restricted-posts
| Install | |
|---|---|
composer require zhihe/restricted-posts |
|
| Latest Version: | v1.0.2 |
| PHP: | ^8.1 |
| License: | MIT |
| Last Updated: | Feb 21, 2026 |
| Links: | GitHub · Packagist |
Restricted Posts for Flarum
A Flarum extension that allows post authors to mark their posts as restricted content with visual indicators and integrated access control.
✨ Features
- 🔒 Post Marking: Post authors can mark their own posts as restricted
- 🎯 Visual Indicators: Lock icon badges appear on restricted posts
- ⚙️ Post Controls: Easy mark/unmark via post dropdown menu
- 📝 Composer Integration: Checkbox to mark posts as restricted during creation
- 🌐 Multi-language: English and Chinese (Simplified) support
- 🔗 Extension Integration: Works with money systems and access control
📋 Requirements
- Flarum 1.8.0+
- PHP 8.1+
🚀 Installation
composer require zhihe/restricted-posts
php flarum extension:enable zhihe-restricted-posts
php flarum migrate
Usage
For Post Authors
- Use the "Restricted" checkbox when creating posts
- Mark existing posts via the post dropdown menu (⋮)
- Only post authors can mark/unmark their own posts
Visual Design
- 🔒 Orange lock badge appears on the right side of post headers
- Works alongside zhihe-primary-posts bookmark badges
- Consistent styling with Flarum's design system
🔗 Integration
This extension is designed to work seamlessly with:
- zhihe-money-system: Provides the
is_restrictedflag for money-based content filtering - zhihe-primary-posts: Compatible badge positioning
- Access control systems: Integrates with permission-based restrictions
🛠️ Development
Local Development Setup
git clone https://github.com/echolocked/zhihe-restricted-posts.git
cd zhihe-restricted-posts
composer install
cd js && npm install && npm run build
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
📄 License
MIT License
🆘 Support
- Issues: GitHub Issues
- Community: Flarum Community Forum
Love this extension? Consider starring the repository and sharing it with the Flarum community! ⭐
Related Packages
Mark posts as primary content for serialized stories and multi-chapter discussio...
A CommonMark extension that lets you use Laravel's route(), url(), and asset() h...
Content management package for Laravel with pages, posts, blocks and menus. Blad...
Send email notification for each post written or modified
Provides a Laravel 5 caching framework for content retrieved from remote server(...
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| v1.0.2 | ^8.1 | MIT | |
| v1.0.1 | ^8.1 | MIT | |
| v1.0.0 | ^8.1 | MIT |