Add Alerts and custom Notifications to your Flarum posts.
Github
Packagist
Why?
Not sure the best usage for this would be, guess it could be helpful for moderators to flag posts or issue warnings. Might work well with Byobu for issuing warnings etc.
Current Version:
0.1.6 - Released 6/22/2017
♦ Added support for Mobile Devices (Responsive)
Install:
composer require oe800/flarum-ext-bbcode-alerts
Update:
composer update oe800/flarum-ext-bbcode-alerts
php flarum cache:clear
Usage:
Basic notification alert:
[AWARNING]{TEXT}[/AWARNING]
[ASUCCESS]{TEXT}[/ASUCCESS]
[AINFO]{TEXT}[/AINFO]
[ABASIC]{TEXT}[/ABASIC]
[ACUSTOM]{COLOR},{COLOR2},{COLOR3},{TEXT}[/ACUSTOM]
More styled notification:
[berror]{TEXT}[/berror]
[cerror]{COLOR},{COLOR2},{COLOR3},{TEXT},{TEXT2}[/cerror]
[bsuccess]{TEXT}[/bsuccess]
[csuccess]{COLOR},{COLOR2},{COLOR3},{TEXT},{TEXT2}[/csuccess]
[bwarning]{TEXT}[/bwarning]
[cwarning]{COLOR},{COLOR2},{COLOR3},{TEXT},{TEXT2}[/cwarning]
[bnotice]{TEXT}[/bnotice]
[cnotice]{COLOR},{COLOR2},{COLOR3},{TEXT},{TEXT2}[/cnotice]
Added proper BBCode formatting: - Thanks to JoshyPHP for help and expertise.
[BCUSTOM]title={TEXT} font={COLOR} gb={COLOR2} border={COLOR3}[/BCUSTOM]
[derror title={TEXT} font={COLOR} bg={COLOR2} border={COLOR3}]{TEXT2}[/derror]
[dsuccess title={TEXT} font={COLOR} bg={COLOR2} border={COLOR3}]{TEXT2}[/dsuccess]
[dwarning title={TEXT} font={COLOR} bg={COLOR2} border={COLOR3}]{TEXT2}[/dwarning]
[dnotice title={TEXT} font={COLOR} bg={COLOR2} border={COLOR3}]{TEXT2}[/dnotice]
Examples:
Proper BBCode formatting:
Todo:
♦ Make it responsive. Currently lacking proper mobile support.
♦ Add more styles