Skip to content

pluveto/flarum-bbcode-audio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Audio BBCode

A Flarum extension. Adds an [audio] BBCode. This is compatible with my SM2 audio extension; feel free to install and use both. Let your members decide which they want to use. This is not needed if you use my BBBBCode extension because that extension already includes this extact BBCode. This extension is only for those who do not want all the other codes that come with BBBBCode and only need the audio code.

Usage

[audio mp3="song.mp3" ogg="song.ogg"]
[audio mp3="song.mp3"]
[audio ogg="song.ogg"]
[audio m4a="song.m4a"]
[audio wav="song.wav"]
[audio flac="song.flac"]
[audio webm="song.webm"]
[audio mp3="song.mp3" width="50"]

(You may put a mp3 and ogg file together for maximum browser compatibility, or just post a mp3, ogg, wav, flac, webm or m4a file alone. Also, as the last example shows, you may modify the width. The width will become a percentage and by default, if you choose not to declare a width, the player will be 100% width.)

Installation

composer require zerosonesfun/flarum-bbcode-audio

Updating

composer update zerosonesfun/flarum-bbcode-audio
php flarum cache:clear

Links

About

A Flarum extension. Adds an [audio] BBCode.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages