Open Tymewalk opened 7 years ago
This can be done by looking for the following code in config.js (chat/js/config.js);
// Defines the list of allowed BBCodes:
bbCodeTags:[
'b',
'i',
'u',
'quote',
'code',
'color',
'url',
'img'
],
and amend to the following;
// Defines the list of allowed BBCodes:
bbCodeTags:[
'b',
'i',
'u',
's',
'quote',
'code',
'color',
'url',
'img'
],
Adding a button is takes a bit more, in loggedIn.html (chat/lib/template/loggedIn.html) find the block towards the bottom with id's like bbCodeBold and bbCodeItalic and add this line of code where you want the button;
<input id="bbCodeStrikethrough" type="button" value="[LANG]bbCodeLabelStrikethrough[/LANG]" title="[LANG]bbCodeTitleStrikethrough[/LANG]" onclick="ajaxChat.insertBBCode('s');" style="text-decoration:line-through;"/>
Then edit every PHP file in chat\lib\lang to add (with the appropriate translations, here written for en.php);
$lang['bbCodeLabelStrikethrough'] = 's';
$lang['bbCodeTitleStrikethrough'] = 'Strikethrough text: [s]text[/s]';
Button on BBCode toolbar
Tooltip for button
Many forums support strikethrough, yet AJAX chat does not.
[s]Example[/s]
Appears as
ExampleFrom my view it should be simple, do the same thing with
[b]
,[i]
, and[u]
, but with<s></s>
instead.