nodebb-plugin-anonymous
v1.1.14
Published
A plugin for NodeBB which allows users to post anonymously
Downloads
88
Maintainers
Readme
NodeBB Anonymous Posting Plugin
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-anonymousActivate 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.
