mirror of
https://hk.gh-proxy.com/https://github.com/NodeBB/nodebb-plugin-poll.git
synced 2025-10-03 04:31:04 +08:00
Poll plugin for NodeBB.
|
||
---|---|---|
languages | ||
lib | ||
public | ||
templates | ||
upgrades | ||
vendor | ||
.editorconfig | ||
.eslintrc | ||
.gitignore | ||
library.js | ||
LICENSE | ||
package-lock.json | ||
package.json | ||
plugin.json | ||
README.md |
NodeBB Poll plugin
This NodeBB plugin will allow you to add polls to the first post of a topic with the following markup:
[poll <settings>]
- Poll option
- Another option
[/poll]
Currently supported settings:
maxvotes="1" //Max number of votes per user. If larger than 1, a multiple choice poll will be created
disallowVoteUpdate="0" //if set, users won't be able to update/remove their vote
title="Poll title" //Poll title
There's also a helpful modal available that will allow you to easily create a poll:
Todo
- Add the ability to edit a poll
- Anonymous voting
- A lot more...
If you're willing to help, please make any improvements you want and submit a PR.
Installation
Either through the NodeBB ACP or:
npm install nodebb-plugin-poll