==Strikethrough BB code add-on for miniBB==
Release date: February 22, 2022.
Latest update: November 25, 2025.
miniBB version: 3.3+
Author: Paul Puzyrev (minibb.com)

With this add-on it's possible to provide cross-out text in forum postings, also know as Strikethrough. Works like any regular BB code with the button provided. By default, available to all members - read below to know how to make it available for admins only.


==INSTALLATION==

* Copy the button image /img/button_sthrough.svg under /img/ folder of your forum

* Modify the file `bb_codes.php` file, adding the codes provided under `bb_codes.encode.txt` and `bb_codes.decode.txt`. For better appealing, the code from `bb_codes.encode.txt` could be pasted in the function `enCodeBB` below the line which looks like:

$replacement[]='<em>\\1</em>';

The code from `bb_codes.decode.txt` could be pasted in the function `deCodeBB` below the line which looks like:

$replacement[]="[u]\\1[/u]";

* Edit the `templates/main_post_form.html` template and paste the following in the position where other BB-styling buttons are placed (the code for a BB-button itself):

{$button_sthrough}

* Your language pack (lang/eng.php or any other) should contain the variable from `lang/eng.code.txt` (or related language pack), named $l_bb_sthrough.

* Modify bb_plugins.php and at anywhere, as for example before the closing `?>` tag, paste the code from `bb_plugins.code.txt` - it stands for a generated button, which could be optionally enabled for Members or Admins only, removing slashes - check the code. The same conditions provided could be replicated in `bb_codes.php`, so the code could not be entered manually for regular users.


==USAGE==

This styling usage is very similar to how the Bold or Italic codes are applied: select some text in the message form, click the button - it gets surrounded by '[s]...[/s]' code which on posting becomes '<s>...</s>'.


==FINALLY==
Questions? Suggestions? Improvements? Post them quickly on our support forums:
https://www.minibb.com/forums/
