Code Monkey home page Code Monkey logo

flarum-pay-to-read's Introduction

付费阅读[Pay to Read]

License Latest Stable Version Total Downloads

一个 Flarum 使用的付费阅读插件。支持了最基本的付费阅读设置操作。

基于 antoinefr/flarum-ext-money

注意:从v1.1.1->v1.2.0 由于一些意外导致了模型不兼容,请手动将数据库中的ammount字段改为amount,或直接删除插件重装

使用说明

安装插件后,在管理员后台启用该插件,即可在Composer编辑器中看到付费可见图标。

点击图标,将插入如下BBCode:

[pay amount=1]...这里是你设置的提示语[/pay]

将提示语删除,并换成你的内容,保存即可生效。

编辑帖子时,你将看到pay后面多了个ID

[pay amount=1 id=1]
...内容
[/pay]

如果希望付费用户不需要重新付费,则不修改id;否则,请删除id=1这整项。

请不要手动将ID修改为其他值,这将导致一些奇怪的问题

虽然按说同一个帖子两个Block同一个ID可以做到付费一次看两个啥的emmmm

还是当作没有这回事好了。

如果发现问题,欢迎Issue留言。

另:本插件默认支持嵌套付费。如果不希望出现请在设置中将嵌套层数改为0

安装

composer:

composer require xypp/pay-to-read:"*"

更新

composer update xypp/pay-to-read:"*"
php flarum migrate
php flarum cache:clear

Links

flarum-pay-to-read's People

Contributors

zxy19 avatar foskym avatar

Stargazers

 avatar  avatar Itz_Dr_Li  avatar Jansen Zhao avatar lyscf avatar InwardFlow avatar  avatar

Watchers

Lucian avatar  avatar  avatar

Forkers

nodeloc

flarum-pay-to-read's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.