VEG wrote: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.
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]
or (with size specified):
Code: Select all
[video=640,360]http://vimeo.com/40558553[/video]
The message is displayed as follows (it's an image,
live phpBB [video] demo on my forum):
Supported video services
Currently the following video services are supported:
- youtube.com (youtu.be) - playlists are also supported
- vimeo.com
- rutube.ru — it is recommended to use the URL from the embed code
- vk.com (vkontakte.ru) — the URL from the embed code is required
- facebook.com
- metacafe.com
- clipfish.de
- veevr.com
- video.mail.ru
- smotri.com
- video.qip.ru
- video.google.com
- video.yandex.ru — the URL from the embed code is required
- video.bigmir.net
- tvigle.ru — the URL from the embed code is required
- video.online.ua
- video.sibnet.ru
- yapfiles.ru
URLs do not need to be cleaned from the garbage arguments as our [video] will work it out. You can use both the URL of the video page and the URL of the embed code (unless other instructions are given).
In the nearest future the following video services will be supported:
- vision.rambler.ru
- intv.ru
- lovi.tv
- webm, mp4 and flv video files
It is convenient that our bbcode is updated and new services are supported automatically. If our BBCode doesn't support the needed video service, we will be happy to add it. In this topic, please provide the URL of the page of the video with the video service you're interested in and the embed code. It will help us to add support of the service. If the new video service is demanded we will soon add the support to our video-bbcode.
Installation of [video] (with 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:
3. In the field "HTML replacement" enter (you can only change the width and height of the layer!):
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>
4. In the field "Help line" enter:
Code: Select all
Insert video: [video]http://youtube.com/url[/video]
5. Set the checkbox "Display on posting" and save the form. Done!
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]
3. In the field "HTML replacement" enter (no change!):
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>
4. In the field "Help line" enter:
Code: Select all
Insert video: [video=width,height]http://youtube.com/url[/video]
5. Save the form. Done!
Links
English language demo of phpBB [video]
Russian language support of phpBB [video]