Skip to content
A Flarum extension. Adds an [audio] BBcode.
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
composer.json
extend.php

README.md

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 mp3="song.mp3" width="50"]

(You may put a mp3 and ogg file together for maximum browser compatibility, or just post a mp3, ogg, or m4a file alone. Also, as the last example shows, you may modify the width. The width will become a percentage and by delfault, 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

An extension by Billy Wilcosky.

You can’t perform that action at this time.