msikma / gwbbc

SMF 2.0.19 modification for Gaming World Forums

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MIT license

GW BBC

A mod for SMF 2.0.19 (Simple Machine Forums) that adds several new BBC (Bulletin Board Code) tags.

It's made specifically for the Gaming World Forums.

This mod uses SMF integration hooks and doesn't require any modifications to the core files. It can be installed through the package manager in the admin panel.

Tags

The following tags are added:

[youtube]Q3ok1bN0PAk[/youtube] Displays a Youtube embed for the given video ID.
[hide]post content[/hide]
[hide="reason"]post content[/hide]
Hides content and requires the user to click to see it.
[irc="irc://example.com"]link name[/hide] Links to an IRC server.
[spoiler]post content[/spoiler] Marks text as a spoiler and requires a click to reveal it. Like [hide], but inline instead of block.
[dohtml]html content[/dohtml] Sanitizes HTML and then prints it.

The HTML sanitizer uses symfony/html-sanitizer to do the actual work, and does the work of removing dangerous tags as well as fixing invalid HTML.

License

MIT license.

About

SMF 2.0.19 modification for Gaming World Forums

License:MIT License


Languages

Language:PHP 86.9%Language:JavaScript 8.3%Language:CSS 3.7%Language:Shell 1.1%