[Not a MOD]: universal audio bbcode (no code changes)

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
User avatar
VEG
Registered User
Posts: 84
Joined: Sat Jun 25, 2005 9:31 am
Location: Belarus, Minsk

[Not a MOD]: universal audio bbcode (no code changes)

Post by VEG »

Modification Name: phpBB [audio] v1.13
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]
In the message is displayed as follows (it's an image, live phpBB [audio] demo on my forum):
Image

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
URLs do not need to be cleaned from the garbage arguments as our [audio] will work it out.

In the nearest future the following audio services will be supported:
  • oga, ogg, mp3, aac audio files
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 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]
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

English language demo of phpBB [audio]
Russian language support of phpBB [audio]
Last edited by VEG on Fri May 25, 2012 10:25 am, edited 2 times in total.
Best regards, Evgeny
User avatar
VEG
Registered User
Posts: 84
Joined: Sat Jun 25, 2005 9:31 am
Location: Belarus, Minsk

Re: [RC] phpBB [audio]: universal audio bbcode (no code chan

Post by VEG »

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]
Best regards, Evgeny
User avatar
tumba25
Former Team Member
Posts: 4430
Joined: Wed Jun 06, 2007 6:42 am
Location: Kokkola, Finland.
Name: Jari Kanerva

Re: [RC] phpBB [audio]: universal audio bbcode (no code chan

Post by tumba25 »

This thing is per definition not a MOD. There is a topic with BBCodes in the support forums, try there. I'll lock the topic.
Need a mod/extension created/installed, other custom-coded solution or a server admin? https://tumba25.net

Return to “[3.0.x] Abandoned MODs”