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]:
- Код: Выделить всё
[audio]http://soundcloud.com/ronaldjenkees/from-the-arrow-loop[/audio]
phpBB [audio]
Supported audio services
Currently the following audio services are supported:
- soundcloud.com — the page URL and the URL from embed code
- promodj.com — the track URL, the download URL and the URL from embed code
- prostopleer.com — the track URL and the URL from embed code
- music.yandex.ru — the track URL (only for tracks that support embedding)
- yapfiles.ru — the URL from the embed code is required
- oga, ogg, mp3, aac audio files via HTML5 <audio>
It is convenient that our bbcode is updated and new services are supported automatically. If our BBCode doesn't support the needed audio service, we will be happy to add it. In this topic, please provide the URL of the page of the audio with the audio service you're interested in and the embed code. It will help us to add support of the service. If the new audio service is demanded we will soon add the support to our audio bbcode.
Automatic installation of [audio]
1. Download install_bbaudio.zip (2kb)
2. Extract it to your phpbb directory
3. Run http://yourphpbb/install_bbaudio.php
4. Remove install_bbaudio.php from your phpbb 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:
- Код: Выделить всё
[audio]{URL}[/audio]
- Код: Выделить всё
<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='//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 = '//phpbbex.com/api/bbmedia.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(e, s); }</script></div>
- Код: Выделить всё
Insert audio: [audio]http://soundcloud.com/url[/audio]
Links
phpBB [audio] topic on phpbb.com
Russian language support on phpbbex.com