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.
Usage example
To ebmed a video the user copies the URL of the page of the video and inserts it between the [media][/media]:
- Код: Выделить всё
[media]http://vimeo.com/40558553[/media]
- Код: Выделить всё
[media=640,360]http://vimeo.com/40558553[/media]
phpBB [media]
To ebmed an audio the user copies the URL of the page of the audio and inserts it between the [media][/media]:
- Код: Выделить всё
[media]http://soundcloud.com/ronaldjenkees/from-the-arrow-loop[/media]
phpBB [media]
Supported services
Currently the following media services are supported:
- 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)
- 360cities.net (panoramas)
- dermandar.com (panoramas)
- picasaweb.google.com (slide show)
- connect.garmin.com (GPS-tracks)
- endomondo.com (GPS-tracks)
- gpsies.com (GPS-tracks)
- bikemap.net (GPS-tracks)
It is convenient that our bbcode is updated and new services are supported automatically. If our BBCode doesn't support the needed service, we will be happy to add it. In this topic, please provide the URL of the page of the media with the media service you're interested in and the embed code. It will help us to add support of the service. If the new media service is demanded we will soon add the support to our media bbcode.
Automatic installation of [media] and [media=]
1. Download install_bbmedia.zip (2kb)
2. Extract it to your phpbb directory
3. Run http://yourphpbb/install_bbmedia.php
4. Remove install_bbmedia.php from your phpbb directory
Manual installation of [media] (with fixed size)
1. Admin panel, tab "Posting", page "BBCodes", add BBCode (if you already have a [media] then delete it).
2. In the field "BBCode usage" enter:
- Код: Выделить всё
[media]{URL}[/media]
- Код: Выделить всё
<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='//phpbbex.com/' target='_blank'>phpBB</a> [media]</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, video, map, panorama or other multimedia: [media]http://youtube.com/url[/media]
Manual installation of [media=width,height] (in addition to the previous)
1. Admin panel, tab "Posting", page "BBCodes", add BBCode (if you already have a [media=] then delete it).
2. In the field "BBCode usage" enter:
- Код: Выделить всё
[media={INTTEXT}]{URL}[/media]
- Код: Выделить всё
<div class='bbmedia' data-url='{URL}' data-args='{INTTEXT}' 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> [media]</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, video, map, panorama or other multimedia: [media=height,width]http://youtube.com/url[/media]
Links
phpBB [media] topic on phpbb.com
Russian language support on phpbbex.com