Modification Description: Universal video 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 [video]" 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 video and inserts it between the [video][/video]:
Code: Select all
[video]http://vimeo.com/40558553[/video]
Code: Select all
[video=640,360]http://vimeo.com/40558553[/video]
Supported video services
Currently the following video services are supported:
- youtube.com (youtu.be) - playlists are also supported
- vimeo.com
- vk.com (vkontakte.ru) — the URL from the embed code is required
- facebook.com
- dailymotion.com
- ustream.tv — streams and recorded videos
- twitch.tv — streams and recorded videos
- metacafe.com
- video.google.com
- video.yandex.ru — the URL from the embed code is required
- myvideo.de
- own3d.tv
- clipfish.de
- veevr.com
- rutube.ru — it is recommended to use the URL from the embed code
- video.mail.ru
- smotri.com
- video.qip.ru
- video.bigmir.net
- tvigle.ru — the URL from the embed code is required
- video.online.ua
- video.sibnet.ru
- yapfiles.ru
- megogo.net
- intv.ru
- lovi.tv
- WebM, OGV and MP4 files via HTML5 <video> tag
In the nearest future the following video services will be supported:
- hulu.com
- webm, mp4 and flv video files
Automatic installation of [video] and [video=] (with local js)
MODX instruction: install_bbvideo.zip
Manual installation of [video] (fixed size)
1. Admin panel, tab "Posting", page "BBCodes", add BBCode (if you already have a [video] then delete it).
2. In the field "BBCode usage" enter:
Code: Select all
[video]{URL}[/video]
Code: Select all
<div class='bbvideo' data-url='{URL}' style='width: 640px; height: 390px; margin: 2px 0; display: inline-block; background: #000; color: #fff; overflow: hidden; vertical-align: bottom;'><div style='height: 100%;'><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><div style='text-align: right; height: 14px; margin-top: -14px; padding-right: 2px; font: 10px/10px Verdana; color: #555;'><a style='color: #105289; text-decoration: none;' href='http://phpbbex.com/' target='_blank'>phpBB</a> [video]</div></div>
Code: Select all
Insert video: [video]http://youtube.com/url[/video]
Manual installation of [video=width,height] (in addition to the previous)
1. Admin panel, tab "Posting", page "BBCodes", add BBCode (if you already have a [video=] then delete it).
2. In the field "BBCode usage" enter:
Code: Select all
[video={NUMBER1},{NUMBER2}]{URL}[/video]
Code: Select all
<div class='bbvideo' data-url='{URL}' style='width: {NUMBER1}px; height: {NUMBER2}px; margin: 2px 0; display: inline-block; background: #000; color: #fff; overflow: hidden; vertical-align: bottom;'><div style='height: 100%;'><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><div style='text-align: right; height: 14px; margin-top: -14px; padding-right: 2px; font: 10px/10px Verdana; color: #555;'><a style='color: #105289; text-decoration: none;' href='http://phpbbex.com/' target='_blank'>phpBB</a> [video]</div></div>
Code: Select all
Insert video: [video=width,height]http://youtube.com/url[/video]
Links
English language demo of phpBB [video]
Russian language support of phpBB [video]