phpBB [media]

media.png
1.0 phpBB 3.0.x
Released:
Wed Jan 23, 2013 7:49 am
File size:
3.4 KiB
Validated for:
phpBB 3.0.x
MD5 checksum:
1630bf3c23451131c315c71999dc666f
Description
BBCode: phpBB [audio] | phpBB [video] | phpBB [media]

We are glad to present you a new universal BBCode "phpBB [media]". It's a 2-in-1 bbcode: [video] and [audio]. Moreover it supports embedding of maps, panoramas and other multimedia. It 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.

Supported services

This version supports the following media services:
  • youtube.com, vimeo.com and all the other video services from phpBB [video]
  • soundcloud.com, promodj.com and all the other audio services from phpBB [audio]
  • maps.google.com (maps, panoramas)
  • dermandar.com (panoramas)

Usage example

To ebmed a video the user copies the URL of the page of the video and inserts it between the [media][/media]:

Code: Select all

[media]http://vimeo.com/40558553[/media]
or (with size specified):

Code: Select all

[media=640,360]http://vimeo.com/40558553[/media]

It is displayed as follows (it's an image, see live demo):
Image

To ebmed an audio the user copies the URL of the page of the audio and inserts it between the [media][/media]:

Code: Select all

[media]http://soundcloud.com/ronaldjenkees/from-the-arrow-loop[/media]

In the message is displayed as follows (it's an image, see live demo):
Image

URLs do not need to be cleaned from the garbage arguments as our [media] will work it out.

Installation of [media] and [media=width,height]

1. Download bbmedia.js.zip and extract it into your phpbb directory
2. Go to ACP, tab "Posting", page "BBCodes"
3. Add [media] BBCode as described below
4. Add [media=] BBCode as described below

Automatic updates

We regularly add support for new services, so the BBCode is updated frequently. For automatic updates you can use special PHP script. See FAQ for details.
  • Author VEG
  • Last updated Wed Jan 23, 2013 7:49 am
  • Total Downloads 3847
  • Rating
    (4)
  • Categories Video and Audio

Public performance attribution has been waived.

Settings

BBCode Usage: Select all
[media]{URL}[/media]

HTML Replacement: Select all
<div class='bbmedia' 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;media&#93;</div><script>if (typeof bbmedia == 'undefined') { bbmedia = true; var e = document.createElement('script'); e.async = true; e.src = 'bbmedia.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(e, s); }</script></div>

Help Line: Select all
Insert audio, video, map, panorama or other multimedia: [media]http://youtube.com/url[/media]
  • Revisions
    Version
    phpBB Version(s)
  • 1.0
    3.0.x
    Validation time: Jan 23, 2013 7:49 am
    Downloads: 3846

    BBCode Usage: Select all
    [media]{URL}[/media]

    HTML Replacement: Select all
    <div class='bbmedia' 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;media&#93;</div><script>if (typeof bbmedia == 'undefined') { bbmedia = true; var e = document.createElement('script'); e.async = true; e.src = 'bbmedia.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(e, s); }</script></div>

    Help Line: Select all
    Insert audio, video, map, panorama or other multimedia: [media]http://youtube.com/url[/media]