Flarumite Simple Spoilers

BBCode spoilers (with custom title support) with pure HTML and CSS.

Compatible with Flarum v1.8.5

Latest release 1.0.0

1,152 downloads

released on Mar 5, 2021

Tags

Simple Spoilers

MIT License Latest Stable Version Total Downloads Donate

  • HTML5 only spoilers - no JS needed!
  • Works with FriendsOfFlarum/nightmode
  • Integrates with standard Flarum BBCode
  • Supports all modern browsers (96.26% of web traffic)

A Flarum extension. Adds simple spoilers to your forum. Uses pure HTML and CSS with absolutely no JavaScript.

Supports FriendsOfFlarum's Night Mode.

Browser support

As this extension uses the <details> and <summary> elements, this extension is compatible with all modern browsers with 96.26% support for web traffic.

Installation

Install with composer:

composer require flarumite/simple-spoilers:"*"

To update:

composer update flarumite/simple-spoilers
php flarum cache:clear

Usage

Spoilers are available in two versions: normal and customised title. The normal spoilers use the values in the locale file as titles (button text), whereas the customised title version allows users to add their own title to replace the localised versions.

Normal spoiler

Click to show

[spoiler]
Some content
[/spoiler]

Spoiler with custom title

Click to show

[spoiler title=My cool title]
Some content
[/spoiler]

Spoiler-ception!

Putting spoilers inside spoilers even works!

Click to show

[spoiler]
test
[spoiler]
embedded
[spoiler]
embedded
[spoiler]
embedded
[/spoiler]
[/spoiler]
[/spoiler]
[/spoiler]

Links

© 2024 Hyn by DaniĆ«l "Luceos" Klabbers. All rights reserved. · Extensions and extension information is provided by the respective (copyright holding) authors. · Extiverse is not affiliated to the Flarum project or Flarum foundation. · Images on Extiverse pages are from Unsplash.