wolfgang-demeter/flarum-ext-bbcode-5star-rating
Composer 安装命令:
composer require wolfgang-demeter/flarum-ext-bbcode-5star-rating
包简介
Rate some things in Flarum with 5 stars - but in half-star increments!
README 文档
README
Insert Ratings into your posts in half-star increments.
Installation
Run composer require wolfgang-demeter/flarum-ext-bbcode-5star-rating in Flarum's folder.
Usage
You can either select your rating via a modal, by clicking on the Star-Icon in the Text-Editor or you can directly use the BBCode below.
| Stars | BBCode |
|---|---|
| 0 stars | [fivestar rating=0] |
| 0.5 stars | [fivestar rating=1] |
| 1 star | [fivestar rating=2] |
| 1.5 stars | [fivestar rating=3] |
| 2 stars | [fivestar rating=4] |
| 2.5 stars | [fivestar rating=5] |
| 3 stars | [fivestar rating=6] |
| 3.5 stars | [fivestar rating=7] |
| 4 stars | [fivestar rating=8] |
| 4.5 stars | [fivestar rating=9] |
| 5 stars | [fivestar rating=10] |
Customize
This extension uses the defined secondary color (@secondary-color) of Flarum to highlight the rating by default. If you want to change the highlight color you can do so, by adding the following CSS custom property definition to your custom CSS in Flarum.
:root { --bbcode-fivestar-rating-color: #ff79c6 !important; }
Screenshots
Select your rating
Show your rating
统计信息
- 总下载量: 679
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-07-31

