https://github.com/FriendsOfFlarum/polls
A Flarum extension that adds polls to your discussions
https://github.com/FriendsOfFlarum/polls
Last synced: 23 days ago
JSON representation
A Flarum extension that adds polls to your discussions
- Host: GitHub
- URL: https://github.com/FriendsOfFlarum/polls
- Owner: FriendsOfFlarum
- License: mit
- Created: 2019-07-02T20:15:03.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-28T22:02:59.000Z (6 months ago)
- Last Synced: 2024-10-29T22:37:24.490Z (6 months ago)
- Language: PHP
- Homepage: https://discuss.flarum.org/d/20586
- Size: 6.53 MB
- Stars: 24
- Watchers: 5
- Forks: 11
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- awesome-flarum - FoF Polls - Adds polls to your discussions. (Extensions / Discussion ([:top:](#table-of-contents)))
README
# Polls by FriendsOfFlarum
 [](https://packagist.org/packages/fof/polls) [](https://opencollective.com/fof/donate) [](https://patreon.com/datitisev)
A [Flarum](http://flarum.org) extension. A Flarum extension that adds polls to your discussions.
### Installation
```sh
composer require fof/polls:"*"
```#### Migrating from ReFlar Polls
Make sure you've updated to the latest `reflar/polls` version and run `php flarum migrate` BEFORE installing `fof/polls`.
You will not be able to install this extension if you have a version of ReFlar Polls older than v1.3.4 as well.```sh
$ composer require reflar/polls
$ php flarum migrate
$ composer require fof/polls
```### Updating
```sh
composer update fof/polls
```### Metadata update
To improve performance, Polls calculates and stores the number of votes when it changes.
As long as the extension is active, Polls will automatically keep those numbers up to date and you don't need to do anything.
If you are updating from a version prior to 0.3.3, if you disabled the extension for a while or if you made manual changes to the database you should run the following command to refresh the numbers:
```sh
php flarum fof:polls:refresh
```You can only run the command when the extension is enabled in the admin panel.
### Links
[
](https://opencollective.com/fof/donate)
[](https://patreon.com/datitisev)
- [Packagist](https://packagist.org/packages/fof/polls)
- [GitHub](https://github.com/packages/FriendsOfFlarum/polls)
- [Discuss](https://discuss.flarum.org/d/20586)An extension by [FriendsOfFlarum](https://github.com/FriendsOfFlarum).