Avec le même bbcode, pour insérer des vidéos dans les messages, que ce soit youtube, daylymotion, facebook etc avec l'intégration entière (pour youtube) de l'Url (c'est a dire, ne plus placer la vidéo chiffre après le v)
Le bbcode se nomme vidéo
Dans le forum;
utilisation du bbcode
Code : Tout sélectionner
[video]{URL}[/video]
Code HTML de remplacement
Code : Tout sélectionner
<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 : Tout sélectionner
Insert video: [video]youtube.com/url, dailymotion.com/url, facebook.com/url[/video]
Prend en compte aussi ;
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