-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
65 changed files
with
688 additions
and
720 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: FoF Polls PHP | ||
name: Lottery PHP | ||
|
||
on: [workflow_dispatch, push, pull_request] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: FoF Polls JS | ||
name: Lottery JS | ||
|
||
on: [workflow_dispatch, push, pull_request] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,49 @@ | ||
# Polls by FriendsOfFlarum | ||
# Lottery by Nodeloc | ||
|
||
![License](https://img.shields.io/badge/license-MIT-blue.svg) [![Latest Stable Version](https://img.shields.io/packagist/v/fof/polls.svg)](https://packagist.org/packages/fof/polls) [![OpenCollective](https://img.shields.io/badge/opencollective-fof-blue.svg)](https://opencollective.com/fof/donate) [![Patreon](https://img.shields.io/badge/patreon-datitisev-f96854.svg?logo=patreon)](https://patreon.com/datitisev) | ||
![License](https://img.shields.io/badge/license-MIT-blue.svg) [![Latest Stable Version](https://img.shields.io/packagist/v/nodeloc/lottery.svg)](https://packagist.org/packages/nodeloc/lottery) [![OpenCollective](https://img.shields.io/badge/opencollective-fof-blue.svg)](https://opencollective.com/fof/donate) [![Patreon](https://img.shields.io/badge/patreon-datitisev-f96854.svg?logo=patreon)](https://patreon.com/datitisev) | ||
|
||
A [Flarum](http://flarum.org) extension. A Flarum extension that adds polls to your discussions. | ||
A [Flarum](http://flarum.org) extension. A Flarum extension that adds lottery to your discussions. | ||
|
||
### Installation | ||
|
||
```sh | ||
composer require fof/polls:"*" | ||
composer require nodeloc/lottery:"*" | ||
``` | ||
|
||
#### Migrating from ReFlar Polls | ||
#### Migrating from ReFlar Lottery | ||
|
||
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. | ||
Make sure you've updated to the latest `reflar/lottery` version and run `php flarum migrate` BEFORE installing `nodeloc/lottery`. | ||
You will not be able to install this extension if you have a version of ReFlar Lottery older than v1.3.4 as well. | ||
|
||
```sh | ||
$ composer require reflar/polls | ||
$ composer require nodeloc/lottery | ||
$ php flarum migrate | ||
$ composer require fof/polls | ||
``` | ||
|
||
### Updating | ||
|
||
```sh | ||
composer update fof/polls | ||
composer update nodeloc/lottery | ||
``` | ||
|
||
### Metadata update | ||
|
||
To improve performance, Polls calculates and stores the number of votes when it changes. | ||
To improve performance, Lottery 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. | ||
As long as the extension is active, Lottery 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 | ||
php flarum nodeloc:lottery:refresh | ||
``` | ||
|
||
You can only run the command when the extension is enabled in the admin panel. | ||
|
||
### Links | ||
|
||
[<img src="https://opencollective.com/fof/donate/button@2x.png?color=blue" height="25" />](https://opencollective.com/fof/donate) | ||
[<img src="https://c5.patreon.com/external/logo/become_a_patron_button.png" height="25" />](https://patreon.com/datitisev) | ||
- [Packagist](https://packagist.org/packages/nodeloc/lottery) | ||
- [GitHub](https://github.com/packages/Nodeloc/lottery) | ||
- [Discuss](https://www.nodeloc.com) | ||
|
||
- [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). | ||
An extension by [Nodeloc](https://github.com/Nodeloc). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.