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

Список разделов phpBBex in English General

Описание: General discussion about phpBBex.
Модератор: Поддержка

Сообщение #1 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]:
Код: Выделить всё
[video]http://vimeo.com/40558553[/video]
or (with size specified):
Код: Выделить всё
[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
  • ign.com
  • pinkbike.com
  • rutube.ru — it is recommended to use the URL from the embed code
  • video.mail.ru
  • video.bigmir.net
  • video.online.ua
  • video.sibnet.ru
  • yapfiles.ru
  • 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:
Код: Выделить всё
[video]{URL}[/video]
3. In the field "HTML replacement" enter (you can only change the width and height of the layer!):
Код: Выделить всё
<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 = '//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='//phpbbex.com/' target='_blank'>phpBB</a> &#91;video&#93;</div></div>
4. In the field "Help line" enter:
Код: Выделить всё
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:
Код: Выделить всё
[video={NUMBER1},{NUMBER2}]{URL}[/video]
3. In the field "HTML replacement" enter (no change!):
Код: Выделить всё
<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 = '//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='//phpbbex.com/' target='_blank'>phpBB</a> &#91;video&#93;</div></div>
4. In the field "Help line" enter:
Код: Выделить всё
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
Автор темы, Администратор
Аватара
Откуда: Finland
Репутация: 1653
С нами: 11 лет 11 месяцев

Сообщение #2 VEG » 23.05.2012, 15:01

A couple of news:

1. Now phpBB [video] supports myvideo.de (popular in Germany). Example:
Код: Выделить всё
[media]http://www.myvideo.de/watch/7613831/Fler_Der_Chef[/media]
Live demo:
phpBB [media]


2. Many code optimizations
VEG M
Автор темы, Администратор
Аватара
Откуда: Finland
Репутация: 1653
С нами: 11 лет 11 месяцев

Сообщение #3 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
Гость

Сообщение #4 VEG » 17.06.2012, 19:53

1. Now phpBB [video] supports intv.ru and lovi.tv (popular in CIS). Examples:
Код: Выделить всё
[video]http://www.intv.ru/v/3paglQbQe[/video]
Код: Выделить всё
[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
Автор темы, Администратор
Аватара
Откуда: Finland
Репутация: 1653
С нами: 11 лет 11 месяцев

Сообщение #5 VEG » 24.07.2012, 00:16

Now phpBB [video] supports dailymotion.com.
Код: Выделить всё
[video]http://www.dailymotion.com/video/xs1m29_lightpaint-ru-freezelight-workshop-7-07-12_creation[/video]
Demo:
phpBB [video]
VEG M
Автор темы, Администратор
Аватара
Откуда: Finland
Репутация: 1653
С нами: 11 лет 11 месяцев

Сообщение #6 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
Гость

Сообщение #7 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
Автор темы, Администратор
Аватара
Откуда: Finland
Репутация: 1653
С нами: 11 лет 11 месяцев

need help using with ssl

Сообщение #8 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
Гость

Сообщение #9 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
Автор темы, Администратор
Аватара
Откуда: Finland
Репутация: 1653
С нами: 11 лет 11 месяцев

Сообщение #10 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
Гость

Сообщение #11 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
Автор темы, Администратор
Аватара
Откуда: Finland
Репутация: 1653
С нами: 11 лет 11 месяцев

Сообщение #12 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
Гость

Сообщение #13 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
Автор темы, Администратор
Аватара
Откуда: Finland
Репутация: 1653
С нами: 11 лет 11 месяцев

Сообщение #14 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
Гость

Сообщение #15 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:

Код: Выделить всё
<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
Гость

Сообщение #16 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
Репутация: 0
С нами: 10 лет 11 месяцев

Сообщение #17 VEG » 05.04.2013, 22:14

Velhym,
Can you provide any url with /c/ in path for an example?
VEG M
Автор темы, Администратор
Аватара
Откуда: Finland
Репутация: 1653
С нами: 11 лет 11 месяцев

Сообщение #18 Velhym » 05.04.2013, 22:45

Velhym
Репутация: 0
С нами: 10 лет 11 месяцев

Сообщение #19 VEG » 06.04.2013, 12:31

Velhym, now BB [media] supports this URLs. Don't forget clear your browser's cache.
VEG M
Автор темы, Администратор
Аватара
Откуда: Finland
Репутация: 1653
С нами: 11 лет 11 месяцев

Сообщение #20 Velhym » 07.04.2013, 14:45

Fantastic! Thank you very much.
Velhym
Репутация: 0
С нами: 10 лет 11 месяцев

След.

Вернуться в General



cron