Modification Description: Universal audio bbcode without any code changes
Installation Level: Easy
Installation Time: ~1minute
BBCode: phpBB [audio] | phpBB [video] | phpBB [media]
We are glad to present you a new universal BBCode "phpBB [audio]" which is compatible with both phpBB and phpBBex. To install you do not need to edit any files, it can be added through the admin panel or by running installation script.
Usage example
The user copies the URL of the page of the audio and inserts it between the [audio][/audio]:
Code: Select all
[audio]http://z-mc.ru/627hqsbwjdc/[/audio]
Supported audio services
Currently the following audio services are supported:
- soundcloud.com — the page URL and the URL from embed code
- z-music.org (z-mc.ru) — the track URL and the URL from embed code (click "share" to get it)
- prostopleer.com — the track URL and the URL from embed code
- video.yandex.ru — the URL from the embed code is required
- yapfiles.ru — the URL from the embed code is required
In the nearest future the following audio services will be supported:
- oga, ogg, mp3, aac audio files
Automatic installation of [audio]
1. Download install_bbaudio.zip (2kb)
2. Extract it to your forum directory
3. Run http://youforum/install_bbaudio.php
4. Remove install_bbaudio.php from your forum directory
Manual installation of [audio]
1. Admin panel, tab "Posting", page "BBCodes", add BBCode (if you already have a [audio] then delete it).
2. In the field "BBCode usage" enter:
Code: Select all
[audio]{URL}[/audio]
Code: Select all
<div class='bbaudio' data-url='{URL}' style='margin: 1px; display: inline-block; vertical-align: bottom;'><div style='width: 200px; height: 40px; border: 1px solid #999; display: table-cell; text-align: center; vertical-align: middle; font: 10px/10px Verdana; color: #555; opacity: 0.5;'><a style='color: #105289; text-decoration: none;' href='http://phpbbex.com/' target='_blank'>phpBB</a> [audio]</div><script>if (typeof bbmedia == 'undefined') { bbmedia = true; var e = document.createElement('script'); e.async = true; e.src = 'http://phpbbex.com/api/bbmedia.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(e, s); }</script></div>
Code: Select all
Insert audio: [audio]http://soundcloud.com/url[/audio]
Links
English language demo of phpBB [audio]
Russian language support of phpBB [audio]