承接 zhihe/restricted-posts 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

zhihe/restricted-posts

最新稳定版本:v1.0.1

Composer 安装命令:

composer require zhihe/restricted-posts

包简介

Allow post authors to mark their posts as restricted content

README 文档

README

Latest Stable Version Total Downloads License

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_restricted flag 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

Love this extension? Consider starring the repository and sharing it with the Flarum community! ⭐

统计信息

  • 总下载量: 203
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

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