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
Репутация: 1667
С нами: 12 лет 5 месяцев


http://www.freeintertv

Сообщение #41 the Code » 24.02.2014, 10:09

Sorry for not Add that in the post for you.

<iframe scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:640px; height:360px;" src="http://veetle.com/index.php/widget/index/6A01DC880C02167FB90BB384D4308DDD/0/true/default/false"></iframe>
the Code
Гость

Сообщение #42 whiplash » 19.06.2014, 05:15

could you add support for dropbox videos?

here is am example:

https://www.dropbox.com/s/b4qsb9f9lngy9fr/VR Mustang.mp4
whiplash
Гость

Сообщение #43 mohawk411 » 30.08.2014, 19:02

I now have a responsive PHPBB theme. Is there a way to get the videos to scale down for mobile users?
mohawk411
Гость

Сообщение #44 VEG » 31.08.2014, 10:59

mohawk411, you can set height and width of video in percents.
VEG M
Автор темы, Администратор
Аватара
Откуда: Finland
Репутация: 1667
С нами: 12 лет 5 месяцев

Сообщение #45 juangonzalez » 05.11.2014, 14:11

[quote="the Code"]Sorry for not Add that in the post for you.

<iframe scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:640px; height:360px;" src="http://veetle.com/index.php/widget/index/6A01DC880C02167FB90BB384D4308DDD/0/true/default/false"></iframe>[/quote]
Mohawk411
juangonzalez
Гость

Сообщение #46 afornoas » 12.12.2014, 23:47

Hello!

I have this version of plugin installed on my site. I am trying to add support for PornHub.com and Eroticvideosex.com videos. Can you help me - how I can add it to code? Just replace youtube.com with pornhub.com or eroticvideosex.com everywhere in plugin code?

Thanks,
Afor
afornoas
Репутация: 0
С нами: 9 лет 9 месяцев

Сообщение #47 okkess » 03.02.2015, 12:49

[video=youtube;6xCZIUnwY88]http://www.youtube.com/watch?v=6xCZIUnwY88[/video]

How to custom code ???
okkess
Гость

Сообщение #48 Proxus » 03.02.2015, 19:02

Now that imgur is doing video -> gif would it be possible to get support for imgur.com + gifv ?

Example link: http://i.imgur.com/v0y5h39.gifv

Thanks,
Prox
Proxus
Гость

Сообщение #49 ЖЪРЧИК » 03.02.2015, 19:17

Proxus, now work inter [media] /viewtopic.php?t=36
html5 player
phpBB [media]

Код: Выделить всё
[media]http://i.imgur.com/v0y5h39.webm[/media]

.webm and .mpg
ЖЪРЧИК
Аватара
Репутация: 174
С нами: 10 лет 2 месяца

Сообщение #50 ЖЪРЧИК » 04.02.2015, 16:45

Test, у меня в копипасте страниц заготовка просто под штлм :biggrin:
ЖЪРЧИК
Аватара
Репутация: 174
С нами: 10 лет 2 месяца

Сообщение #51 wallart » 27.08.2015, 11:20

Hello VEG.

Can you please add : http://veetle.com/index.php/channel/view/4cae6de01903d#54593a2d61985
I have ask for that long time ago here,So please if that can be done I will be grateful.

Thank you in Advance.
wallart.
wallart
Гость

Сообщение #52 Melarn » 28.09.2015, 10:08

heya, is there any chance there could be support for www.xboxclips.com please :)

Thanks :)
Melarn
Гость


Сообщение #54 sina92 » 14.01.2016, 20:13

I can't figure out how to embed an .mp4 attachment into my post on my phpbb forum.

I've followed this great guide guide: /viewtopic.php?t=29, but unfortunately it doesn't apply to attached .mp4 files it seems.

[media]http: //blablabla[/media] works for videos on the internet, but what should I write if I want to embed an attached video?

[.attachment=0]xxxx.mp4[/attachment] gives me a plug in error.

Anyone has any idea?

Best regards
sina92
Репутация: 0
С нами: 8 лет 8 месяцев

Сообщение #55 Svetlana2000 » 13.02.2016, 12:47

very nice video code, thx!

Sometimes it takes several minutes to load the player :(
because my ads takes some minutes to load and the videos will not load until the ads are finishing the process .
Any ideas?
Svetlana2000
Гость

Сообщение #56 Sumanai » 13.02.2016, 13:25

Do not use ads that is loaded for a long time.
Sumanai M
Аватара
Репутация: 1677
С нами: 11 лет 8 месяцев

Сообщение #57 Svetlana2000 » 13.02.2016, 15:21

i need a better solution
Svetlana2000
Гость

Сообщение #58 Sumanai » 13.02.2016, 19:26

This is the best solution.
Script phpBB [video] is started after the execution of the other scripts on the page.

You can try searching the asynchronous version of the script for your ad, and make it to the end of the page.
Sumanai M
Аватара
Репутация: 1677
С нами: 11 лет 8 месяцев

Сообщение #59 Svetlana2000 » 13.02.2016, 23:41

asynchronous. thats it, thx
Svetlana2000
Гость

Сообщение #60 krazor » 22.02.2016, 18:29

Hello any chance you can add this site to the list please, love the work here =)

https://channel9.msdn.com/
krazor
Гость

Пред.След.

Вернуться в General



cron