Package Exports
- nodebb-plugin-anonymous
- nodebb-plugin-anonymous/library.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nodebb-plugin-anonymous) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
NodeBB Anonymous Posting Plugin
Note: 🛠️ This plugin is currently under development. Features and functionality may change, and it is not recommended for use in production environments at this time.
Overview
The Anonymous Posting Plugin for NodeBB allows logged-in users to post anonymously in topics and replies. This plugin ensures that the identity of the user is hidden while still allowing moderation and administrative actions.
Features
- Anonymous topic creation for logged-in users.
- Anonymous replies in existing topics.
- Ensures anonymity by replacing user details with "Anonymous."
- Moderators and administrators can still manage anonymous posts.
- Fully configurable via Admin Control Panel (ACP).
Installation
Navigate to your NodeBB installation directory.
Install the plugin via npm:
npm install nodebb-plugin-anonymous
Activate the plugin in the Admin Control Panel under Plugins.
Rebuild and restart your NodeBB instance:
./nodebb build && ./nodebb restart
Hooks Used
The plugin integrates with the following NodeBB hooks:
- static:app.load: Initializes the plugin.
- filter:topic.create: Handles anonymous topic creation.
- action:topic.save: Ensures anonymous flag is saved after topic creation.
- filter:topic.get: Filters anonymous topics during retrieval.
- filter:post.create: Handles anonymous post creation.
- action:post.save: Ensures anonymous flag is saved after post creation.
- filter:post.get: Filters anonymous posts during retrieval.
- filter:composer.build: Adds anonymous posting options to the composer.
Configuration
- Go to the Admin Control Panel.
- Navigate to Plugins > Anonymous Posting.
- Configure the following options:
- Enable/Disable anonymous posting.
- Allow anonymous posting in specific categories.
- Customize the display name for anonymous users.
Usage
Anonymous Topic Creation
- Navigate to a category.
- Click New Topic.
- Toggle the "Post Anonymously" option in the composer.
- Submit the topic. Anonymous Replies
- Open a topic.
- Click Reply.
- Toggle the "Post Anonymously" option in the composer.
- Submit the reply.
Contributing
Contributions are welcome! Please submit a pull request or open an issue on GitHub.
License
This project is licensed under the MIT License.