Anomalum45 The author of this extension is Chinese, so README is also set to Chinese.
A paid reading plug-in used by Flarum. It supports the most basic paid reading setting operation.
Based on antoinefr/flarum-ext-money
Note: From v1.1.1->v1.2.0 due to some accidents, the model is incompatible. Please manually change the amount field in the database to amount, or directly delete the plug-in and reinstall it.
Large Version Migration Guide
If you have installed version 1.x, you need to do the following after installing version 2.0
Back up all databases or post tables (recommended)
Run php flarum migrate
Run php flarum xypp-ptr:migrate
Run php flarum cache:clear
After completing the above steps, please check whether it is consistent with the previous effect.
Instructions for use
After installing the plug-in, enable the plug-in in the administrator background, and you can see the paid visible icon in the Composer editor.
Click the icon to insert the following BBCode:
[Pay amount=1]… Here is the prompt you set [/pay]
Delete the prompt and replace it with your content, and save it to take effect.
When editing the post, you will see an extra ID after pay.
[Pay amount=1 id=1]
… Content
[/Pay]
If you want the paid user not to pay again, do not modify the id; otherwise, please delete the whole item of id=1.
Please do not manually modify the ID to other values, which will cause some strange problems.
Although according to the same post, two Blocks and the same ID, you can pay to watch two or something at a time.
It’s better to pretend that there is no such thing.
If you find any problems, you are welcome to leave a message on Issue.
In addition: This plug-in supports nested payment by default. If you don’t want it to appear, please change the number of nested layers to 0 in the settings.