phpBB [audio]: universal audio bbcode (without code changes)

Board index phpBBex in English General

Description: General discussion about phpBBex
Moderator: Поддержка

Post #1by VEG » 22.05.2012, 20:05

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://prostopleer.com/tracks/4796774kBZr[/audio]
In the message is displayed as follows:
phpBB [audio]


Or this:
Code: Select all
[audio]http://soundcloud.com/ronaldjenkees/from-the-arrow-loop[/audio]
In the message is displayed as follows:
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
  • 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
  • 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>
URLs do not need to be cleaned from the garbage arguments as our [audio] will work it out.

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:
Code: Select all
[audio]{URL}[/audio]
3. In the field "HTML replacement" enter (you can only change the width of the layer!):
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> &#91;audio&#93;</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>
4. In the field "Help line" enter:
Code: Select all
Insert audio: [audio]http://soundcloud.com/url[/audio]
5. Set the checkbox "Display on posting" and save the form. Done!

Links

phpBB [audio] topic on phpbb.com
Russian language support on phpbbex.com
С наилучшими пожеланиями, Евгений
VEG M
Topic author, Администратор
Avatar
Age: 29
Location: Минск, Беларусь
Reputation: 1607
With us: 4 yaers 10 months

Post #2by VEG » 25.05.2012, 13:27

A couple of news:
1. Now phpBB [audio] uses common code from phpBB [media]
2. Added support of yapfiles.ru service:
Code: Select all
[audio]http://www.yapfiles.ru/static/play.swf?st=aMDAzOTY0ODctfcd6&allowscriptaccess=always[/audio]
С наилучшими пожеланиями, Евгений
VEG M
Topic author, Администратор
Avatar
Age: 29
Location: Минск, Беларусь
Reputation: 1607
With us: 4 yaers 10 months

Post #3by guess » 30.07.2014, 14:34

Hi buddy, nice feature! I wonder if it's possible to play an uploaded audio file, besides files hosted in an external sound server (like soundcloud)

Added after 4 hours 3 minutes:
Hello? :smile:
guess
Гость

Post #4by VEG » 31.07.2014, 10:21

guess, yes, you can play Ogg Vorbis/Opus/MP3/AAC files via BB [audio] if your browser supports it.
С наилучшими пожеланиями, Евгений
VEG M
Topic author, Администратор
Avatar
Age: 29
Location: Минск, Беларусь
Reputation: 1607
With us: 4 yaers 10 months

Post #5by guess » 31.07.2014, 19:31

Ok, buddy, thanks for answering.
guess
Гость

Post #6by guess » 20.08.2014, 17:05

Hi again, buddy. I'm making some test with your bbcode. After installing it (I chose media bbocde, instead of installing audio and video), I'm trying to play an uploaded mp3 file, as I asked you some days ago, but it doesn't work, the only thing I get is this:

Image

Image

What am I doing wrong? Could you please help me?
guess
Гость

Post #7by ЖЪРЧИК » 20.08.2014, 17:18

guess, upload file on http://pleer.com/ or other service and copy url from share. phpBBex dont play your attachment mp3-files
Code: Select all
[media]http://pleer.com/tracks/443628Ozt7[/media]
phpBB [media]

phpBB [media]
плешивый кот
ЖЪРЧИК
Гуру
Avatar
Reputation: 175
With us: 2 yaers 6 months

Post #8by guess » 20.08.2014, 17:34

Yes, ЖЪРЧИК, I know that :weirdface: Please read existing replies before answering. I asked days ago to VEG if uploaded files can be played and he answered 'yes'.
guess
Гость

Post #9by ЖЪРЧИК » 20.08.2014, 17:41

guess, apparently he did not understand the question, but play of attachments is possible only in a new tab-window browser. :nervious:
плешивый кот
ЖЪРЧИК
Гуру
Avatar
Reputation: 175
With us: 2 yaers 6 months

Post #10by guess » 20.08.2014, 18:07

Well, in this case, it's a pity... I thought that I finally found a mod/bbcode which could play uploaded media... Bye :wink:
guess
Гость

Post #11by Sumanai » 20.08.2014, 18:18

It is possible, in phpBBex is implemented without BBCode, with the help of a group of extensions added. For phpBB ready code no.
But the return of investment in phpBB is implemented poorly, and creates a very high load on the server.
Использование поиска продлевает жизнь.
Это форум поддержки форка phpBBex. Поддержка по phpBB осуществляется в других местах.
Sumanai M Online
Гуру
Avatar
Reputation: 1502
With us: 4 yaers

Post #12by VEG » 26.08.2014, 12:43

guess wrote:I asked days ago to VEG if uploaded files can be played and he answered 'yes'.
BB [media] can play uploaded files via direct link. It means you have to upload file via FTP and use direct URL for BB [media]. BB [media] can't play files from attachments.
С наилучшими пожеланиями, Евгений
VEG M
Topic author, Администратор
Avatar
Age: 29
Location: Минск, Беларусь
Reputation: 1607
With us: 4 yaers 10 months


Forum name: General
Description: General discussion about phpBBex

Quick reply


Enter the code exactly as it appears. All letters are case insensitive.
Confirmation code
:hi: :smile: :wink: :twisted: :sad: :evil: :smoke: :eh: :eek: :fie: :silenced: :razz: :oops: :help: :spy: :insane: :biggrin: :toothless: :ill: :nervious: :weirdface: :pray: :clap: :think: :boxing: :cyclop: :rambo: :zombie: :cry: View more smilies

   

Return to General