Pay to Read
! License ! [Latest Stable Version](https://img.shields.io/packagist/v/xypp/pay-to-read.svg) ! [Total Downloads](https://img.shields.io/packagist/dt/xypp/pay-to-read.svg)
A pay-to-read extension for Flarum. Supports the basic pay-to-read feature .
Depends on antoinefr/flarum-ext-money
.
Note: from v1.1.1->v1.2.0 due to some accidents caused by the model is not compatible, please manually change the database ammount
field to amount
, or just delete the plugin to re-install it.
Introduce
After installing the extension and enabling the extension in the administrator panel, you can see the pay-to-read icon in the Composer editor.
Clicking on the icon will insert the following BBCode:
[pay amount=1 id=0]... Here's the tips[/pay].
Delete the prompt and replace it with your content, save it and it will take effect.
When editing the post, you will see an additional ID after the pay
[pay amount=1 id=1]
... Content
[/pay]
Leave the id unchanged if you want the paying user not to have to pay again; otherwise, remove the whole item id=1.
Please do not manually change the id to any other value, as this will cause some strange problems
Although it is supposedly possible to pay to see two whatsits at a time for the same post two blocks with the same ID .
It's better to ignore it.
If you find any problems, feel free to leave a comment on Issue.
Also: This plugin supports nested payments by default. If you don't want it, please change the Maxium stack level to 0 in the settings.
Installation
composer.
composer require xypp/pay-to-read: "*"
Update
composer update xypp/pay-to-read: "*"
php flarum migrate
php flarum cache:clear
Links