phpBB [video]: universal video bbcode (without code changes)

Board index phpBBex in English General

Description: General discussion about phpBBex
Moderator: Поддержка

Post #1by VEG » 11.05.2012, 17:12

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.

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]

It is displayed as follows:
phpBB [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
  • ted.com
  • vine.co
  • coub.com
  • twitch.tv — streams and recorded videos
  • metacafe.com
  • video.yandex.ru — the URL from the embed code is required
  • myvideo.de
  • own3d.tv
  • ign.com
  • clipfish.de
  • veevr.com
  • pinkbike.com
  • mpora.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

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).

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.

Automatic installation of [video] and [video=]

1. Download install_bbvideo.zip (2kb)
2. Extract it to your phpbb directory
3. Run http://yourphpbb/install_bbvideo.php
4. Remove install_bbvideo.php from your phpbb directory

Manual 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:
Code: Select all
[video]{URL}[/video]
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> &#91;video&#93;</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!

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]
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> &#91;video&#93;</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

phpBB [video] topic on phpbb.com
Russian language support on phpbbex.com
С наилучшими пожеланиями, Евгений
VEG M
Topic author, Администратор
Avatar
Age: 30
Location: Минск, Беларусь
Reputation: 1574
With us: 5 years 7 months

Post #2by VEG » 23.05.2012, 15:01

A couple of news:

1. Now phpBB [video] supports myvideo.de (popular in Germany). Example:
Code: Select all
[media]http://www.myvideo.de/watch/7613831/Fler_Der_Chef[/media]
Live demo:
phpBB [media]


2. Many code optimizations
С наилучшими пожеланиями, Евгений
VEG M
Topic author, Администратор
Avatar
Age: 30
Location: Минск, Беларусь
Reputation: 1574
With us: 5 years 7 months

Post #3by DREGS » 15.06.2012, 01:27

Can you look into adding support for twitch.tv recorded videos?

Example:
http://www.twitch.tv/cursebf3/b/321448803
DREGS
Гость

Post #4by VEG » 17.06.2012, 19:53

1. Now phpBB [video] supports intv.ru and lovi.tv (popular in CIS). Examples:
Code: Select all
[video]http://www.intv.ru/v/3paglQbQe[/video]
Code: Select all
[video]http://lovi.tv/video/bzdwnirfug/Gost_Perepis_141010[/video]
2. Also now WebM, OGV and MP4 files supported via HTML5 <video> tag.
С наилучшими пожеланиями, Евгений
VEG M
Topic author, Администратор
Avatar
Age: 30
Location: Минск, Беларусь
Reputation: 1574
With us: 5 years 7 months

Post #5by VEG » 24.07.2012, 00:16

Now phpBB [video] supports dailymotion.com.
Code: Select all
[video]http://www.dailymotion.com/video/xs1m29_lightpaint-ru-freezelight-workshop-7-07-12_creation[/video]
Demo:
phpBB [video]
С наилучшими пожеланиями, Евгений
VEG M
Topic author, Администратор
Avatar
Age: 30
Location: Минск, Беларусь
Reputation: 1574
With us: 5 years 7 months

Post #6by wads24 » 14.12.2012, 06:48

I get the below error when running install file.

General Error
SQL ERROR [ mysqli ]

Unknown column 'bbcode_order' in 'field list' [1054]

SQL

SELECT MAX(bbcode_order) as max_bbcode_order FROM cbrt_bbcodes

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/includes/db/dbal.php
LINE: 757
CALL: trigger_error()

FILE: [ROOT]/includes/db/mysqli.php
LINE: 182
CALL: dbal->sql_error()

FILE: [ROOT]/install_bbvideo.php
LINE: 101
CALL: dbal_mysqli->sql_query()

FILE: [ROOT]/install_bbvideo.php
LINE: 225
CALL: set_bbcode()
wads24
Гость

Post #7by VEG » 14.12.2012, 11:12

Oh, sorry, my bad. You can use manual instruction until I fix automatic installer.

Добавлено спустя 13 минут 39 секунд:
It's a small dependence on Custom BBCode Sorting mod. I've fixed it.
С наилучшими пожеланиями, Евгений
VEG M
Topic author, Администратор
Avatar
Age: 30
Location: Минск, Беларусь
Reputation: 1574
With us: 5 years 7 months

need help using with ssl

Post #8by jason1021788 » 30.12.2012, 01:20

I was wondering if you could help me, for the life of me i can not figure it out, I have an SSL enabled website the bbcode that you have provided us works in all browsers except internet explorer, if i go to my site and use http://example.com it will work but if i go to https://example.com it will not work

so i am not sure if this is an internet explorer issue or what is wrong, its just odd that its the only browser ive experienced this kinda problem on, me personally use firefox most the time and it works just fine on that browser, but i do have visitors that use internet explorer and can not see the video tutorials.

any suggestions.
jason1021788
Гость

Post #9by VEG » 30.12.2012, 12:27

jason1021788, try this:
1. Download bbmedia.php.zip and extract it into root directory of your forum
2. In the field "HTML replacement" replace "http://phpbbex.com/api/bbmedia.js" to "bbmedia.php"
I think it should help you.
С наилучшими пожеланиями, Евгений
VEG M
Topic author, Администратор
Avatar
Age: 30
Location: Минск, Беларусь
Reputation: 1574
With us: 5 years 7 months

Post #10by jason1021788 » 30.12.2012, 18:56

Thanks VEG for replying I download the bbmedia.php zip and extracted to the root folder of my forum, and i changed the bbmedia.js to bbmedia.php

and i cleaered the cookie and cache of each browser just to be sure everything went smoothly, then i test in firefox 7, opera 12 google chrome 23 safari 5 and it worked perfectly in all these browsers...

and still when i tried in Internet explorer if i type in http it works fine but as soon as it changes to https all i get is a black video and doesnt play.

For testing purposes, i first tried on internet explorer 9, then i tried on my other computer running internet explorer 10 figured it might work on that one better since ie10 is more html5 ready.

I guess it just might be an internet explorer type of issue, I think internet explorer is just rendering things differently
jason1021788
Гость

Post #11by VEG » 31.12.2012, 12:57

jason1021788, please open developer tools (F12) and see console for errors while loading page with embedded video.
С наилучшими пожеланиями, Евгений
VEG M
Topic author, Администратор
Avatar
Age: 30
Location: Минск, Беларусь
Reputation: 1574
With us: 5 years 7 months

Post #12by jason1021788 » 31.12.2012, 13:34

What you mean by open developer tools, i did put the board in debug mode to check and see if i had any errors and i didnt find any
jason1021788
Гость

Post #13by VEG » 31.12.2012, 13:37

IE9 has developer tools where you can see some useful information. To run it press F12. It could help us to solve this problem.
С наилучшими пожеланиями, Евгений
VEG M
Topic author, Администратор
Avatar
Age: 30
Location: Минск, Беларусь
Reputation: 1574
With us: 5 years 7 months

Post #14by zambala » 24.02.2013, 10:41

Hello,

Nice BBCode, but could you add support for gloria.tv ?!

for example http://ru.gloria.tv/?media=404264
zambala
Гость

Post #15by horneyhubby » 22.03.2013, 17:21

Hello, love the video bbcode and working great with youtube. I am trying to get this to work with xhamster.com and it's looking like it would work when i insert a url. however a small error pops up that says THIS URL IS NOT SUPPORTED. there embed code looks like this:

Code: Select all
<iframe width="510" height="400" src="http://xhamster.com/xembed.php?video=1788145" frameborder="0" scrolling="no"></iframe>

but all i did was input the url. is there a way to fix this?
horneyhubby
Гость

Post #16by Velhym » 05.04.2013, 19:37

Would it be possible to add support for twitch.tv videos that use the /c/ path? Currently, just /b/ is included. The difference is /b/ is a full, previous recording, and /c/ is someone's "highlight" edit.
Velhym
Новичок
Reputation: 0
With us: 4 yaers 8 months

Post #17by VEG » 05.04.2013, 22:14

Velhym,
Can you provide any url with /c/ in path for an example?
С наилучшими пожеланиями, Евгений
VEG M
Topic author, Администратор
Avatar
Age: 30
Location: Минск, Беларусь
Reputation: 1574
With us: 5 years 7 months

Post #18by Velhym » 05.04.2013, 22:45

Velhym
Новичок
Reputation: 0
With us: 4 yaers 8 months

Post #19by VEG » 06.04.2013, 12:31

Velhym, now BB [media] supports this URLs. Don't forget clear your browser's cache.
С наилучшими пожеланиями, Евгений
VEG M
Topic author, Администратор
Avatar
Age: 30
Location: Минск, Беларусь
Reputation: 1574
With us: 5 years 7 months

Post #20by Velhym » 07.04.2013, 14:45

Fantastic! Thank you very much.
Velhym
Новичок
Reputation: 0
With us: 4 yaers 8 months

Next

Return to General