zerosonesfun / bbbbcode
大而美的 BBCode(安装多个 BBCode 扩展。)
Requires
- flarum/core: ^0.1.0-beta.8
- zerosonesfun/accordion: ^2.0
- zerosonesfun/action: ^1.0
- zerosonesfun/blur: ^1.0
- zerosonesfun/chat: ^1.0
- zerosonesfun/flarum-bbcode-audio: ^1.0
- zerosonesfun/font: ^1.0
- zerosonesfun/pop: ^1.0
- zerosonesfun/spoiler: ^1.0
- zerosonesfun/tooltip: ^1.0
- dev-master
- 3.3
- 3.2.2
- 3.2.1
- 3.2
- 3.1
- 3.0
- 2.9.6.1
- 2.9.6
- 2.9.5
- 2.9.4
- 2.9.3
- 2.9.2
- 2.9.1
- 2.9
- 2.8
- 2.7
- 2.6
- 2.5.1
- 2.5
- 2.4
- 2.3
- 2.2
- 2.1.4
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1
- 2.0
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2
- 1.1.6
- 1.1.5
- 1.1.4.4
- 1.1.4.3
- 1.1.4.2
- 1.1.4.1
- 1.1.4
- 1.1.3.1
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0
- 0.3.4
- 0.3.3
- 0.3.2
- 0.3.1
- 0.3.0
- 0.2.9
- 0.2.8
- 0.2.7
- 0.2.6
- 0.2.5
- 0.2.4
- 0.2.3
- 0.2.2
- 0.2.1
- v0.2.0.2-beta.8
- v0.2.0.1-beta.8
- v0.2.0-beta.8
- v0.1.9.9-beta.8
- v0.1.9.8-beta.8
- v0.1.9.7-beta.8
- v0.1.9.6-beta.8
- v0.1.9.5-beta.8
- v0.1.9.4-beta.8
- v0.1.9.3-beta.8
- v0.1.9.2-beta.8
- v0.1.9.1-beta.8
- v0.1.9-beta.8
- v0.1.8-beta.8
- v0.1.7-beta.8
- v0.1.6-beta.8
- v0.1.5-beta.8
- v0.1.4-beta.8
- v0.1.3-beta.8
- v0.1.2-beta.8
- v0.1.1-beta.8
- v0.1.0-beta.8
- v0.0.3-beta.8
- v0.0.2-beta.8
- v0.0.1-beta.8
This package is auto-updated.
Last update: 2020-05-09 08:16:32 UTC
README
大而美的 BBCode
一个 Flarum 扩展,添加额外的 BBCode。它安装了多个独立的 BBCode 扩展,因此您可以启用所需的任何功能。如果您想启用 HTML 表格、水平线、浮动,以及其他可能的 BBCode,请保持此扩展(bbbbcode)启用。所有 BBCode 都很轻量;大多数都是 HTML 和 CSS。
安装
composer require zerosonesfun/bbbbcode
上述命令将安装以下所有内容。然后,只需激活您想要的内容即可。或者,您也可以只安装以下内容中的一项或两项。
composer require zerosonesfun/spoiler
composer require zerosonesfun/blur
composer require zerosonesfun/tooltip
composer require zerosonesfun/accordion
composer require zerosonesfun/chat
composer require zerosonesfun/pop
composer require zerosonesfun/action
composer require zerosonesfun/font
composer require zerosonesfun/flarum-bbcode-audio
更新
-
composer update zerosonesfun/bbbbcode
-
在您的管理员中停用并重新激活扩展。
-
转到您的仪表板,点击工具,点击清除缓存。
-
清除您的浏览器缓存以及任何其他缓存,如 Cloudflare(如果适用)。
卸载
composer remove zerosonesfun/bbbbcode
用法
以下 BBCode 可用
工具提示
[tooltip="your tip here" placement="right"]word[/tooltip]
(对于 "placement",您可以使用:top, bottom, left, right)
揭秘
[spoiler="The text you click on"]The hidden text goes here.[/spoiler]
模糊悬停揭秘
[blur]This is the blurred secret.[/blur]
(悬停/按住 4 秒以显示)
手风琴
[accordion header="YOUR HEADER TEXT"]The text that is hidden at first but then appears goes here[/accordion]
[accordion header="YOUR NEXT HEADER TEXT"]The text that is hidden at first but then appears goes here[/accordion]
(重复所需的次数)
聊天
[chat-a="Why did the chicken cross the road?" who="Me"]
[chat-b="It was hungry?" who="Mary"]
[chat-a="No! Wrong!" who="Me"]
[space][/space]
(重复所需的次数,交替使用 chat-a 和 chat-b)
("space" BBcode 在聊天的末尾是可选的 - 它添加了一些额外空间)
快速字体颜色
[red]This will be red.[/red]
(包括的颜色:red, orange, yellow, green, blue, purple)
高亮显示
[hl]This text will be highlighted.[/hl]
(那是 "L" 而不是 "1";它是 hl 用于高亮显示)
音频
[audio mp3="song.mp3" ogg="song.ogg"]
[audio mp3="song.mp3"]
[audio ogg="song.ogg"]
[audio m4a="song.m4a"]
[audio wav="song.wav"]
[audio flac="song.flac"]
[audio webm="song.webm"]
[audio mp3="song.mp3" width="50"]
(您可以将 mp3 和 ogg 文件一起使用以获得最大的浏览器兼容性,或者只发布 mp3、ogg、wav、flac、webm 或 m4a 文件。另外,如最后一个示例所示,您还可以修改宽度。宽度将变为百分比,默认情况下,如果您不声明宽度,播放器将宽度为 100%)
动作
[action]Walks into a wall[/action]
弹出窗口
[pop button="Click Here" title="Hello" content="Thank you for being a friend."]
KBD
请输入 [kbd]Y[/kbd] 表示是。
还包括
[background]
、[font]
、[hr]
以及 HTML 表格 BBCodes。最后,Flarum 已经内置了一个核心 BBCode 扩展,它添加了其他标准 BBCodes,例如加粗、删除线、图片、链接等。