BBCode - Advanced Image
Adds an image BBCode to Flarum which allows extra attributes compared to the default image BBCode.
The default image BBCode is
[img] and so in order to not cause conflicts, this BBCode uses the full word,
The code with all options (although, only the URL is required):
[image=example.com/image.png width=100 unit=% class=cool alt=This in image title=The title]
Example on a live forum
The BBCode used for the goat image is:
[image=https://i.imgur.com/gqBG7EK.jpeg width=50 unit=% class=goats title=Climbing Goats alt=Image of goats climbing]
Install using composer:
composer require zerosonesfun/flarum-bbcode-advanced-image:"*"
Update using same command. I've found that works fine. It seems like you don't have to use the composer "update" command like most devs here include in their extension posts. But, if a dev tells me it's better to use update, I'll update this text.
composer remove zerosonesfun/flarum-bbcode-advanced-image
- Add image border options
- Add border radius options
- Add image effects
- Add anything else plain old HTML and CSS allow for images these days
I'll make a custom BBCode for your Flarum in record time. Contact me through wilcosky.com.