shebaoting / money
Adds a virtual currency system to the Flarum community, allowing users to earn and spend points.
Installs: 232
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:flarum-extension
Requires
- flarum/core: ^1.2.0
Requires (Dev)
- flarum/testing: ^1.0.0
README
A Flarum extension. Adds a virtual currency system to the Flarum community, allowing users to earn and spend points.
This extension is modified from flarum-ext-money by AntoineFr. It's an excellent extension, and I want to express my gratitude to the original author. I have added some additional features that I needed and have published it here in the hope that you will enjoy it as well.
Features
-
All original features: The extension retains all the functionalities of the original version.
-
Points Record: Added a feature to record all points transactions.
-
Initial Points on Registration: New users receive a set amount of points upon registration.
-
Negative Points Deduction: If points are set to negative, they will be deducted from the user's own account. If the account has insufficient points, the operation cannot be performed.
-
Points Redistribution: When points are negative, and the user replies to a discussion, the deducted points will be awarded to the discussion starter.
-
Like Reward System: When points are negative, points deducted from liking a post will be awarded to the person who received the like.
Idea
The design philosophy behind this system is a metaphor for time.
Everything you do here consumes your time. If a task is completed without receiving any meaningful response, it’s as if the task was done in vain. If a person continues to engage in meaningless activities, they are essentially wasting their time.
For a similar concept, I recommend watching the movie In Time.
Contact
You can also contact me if you wish to pay something to develop the flarum extension. Email: th9th@th9th.com
Installation
Install with composer:
composer require shebaoting/money:"*"
Updating
composer update shebaoting/money:"*"
php flarum migrate
php flarum cache:clear