The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Updated bbcode_video template with available HTML5 Players Details »» | ||||||||||||||||||||||
Updated bbcode_video template with available HTML5 Players
Developer Last Online: Aug 2023
Brought to you by BirdOPrey5
http://www.birdoprey5.com/ NEW- April 5, 2013- Updated Facebook to HTML5, flash player stopped working! The template bbcode_video is the one that decides what embed code is used for the built in video embedding sites. This template relies mostly on Flash- only YouTube was ever updated to HTML5 in the stock bbcode_video template of VB 4.2.0. This new edit has HTML5 Players available for Vimeo and Dailymotion as well. It also has the code there that was to help IE6 compatibility removed as 4.2.0 officially dropped support for IE6 anyway. I have also made some of the video screens larger where appropriate. The benefits of HTML5 players is they will work on iPads, iPhones, and all current Android/mobile devices. Flash does not. To use this simply copy the code below and paste it into your template bbcode_video, deleting what used to be there. If you have any trouble simply "revert" the template back to the original. Repeat the above for each style you have. New bbcode_video template (Tested on 4.2.0): Code:
<vb:if condition="$provider == 'hulu'"> <object width="512" height="288"> <param name="movie" value="http://www.hulu.com/embed/{vb:raw code}"></param> <param name="allowFullScreen" value="true"></param> <embed src="http://www.hulu.com/embed/{vb:raw code}" type="application/x-shockwave-flash" width="512" height="288" allowFullScreen="true"></embed> </object> <vb:elseif condition="$provider == 'youtube'" /> <iframe class="restrain" title="YouTube video player" width="640" height="390" src="//www.youtube.com/embed/{vb:raw code}?wmode={vb:raw wmode}" frameborder="0" allowfullscreen></iframe> <vb:elseif condition="$provider == 'youtube_share'" /> <iframe class="restrain" title="YouTube video player" width="640" height="390" src="//www.youtube.com/embed/{vb:raw code}?wmode={vb:raw wmode}" frameborder="0"></iframe> <vb:elseif condition="$provider == 'vimeo'" /> <iframe src="http://player.vimeo.com/video/{vb:raw code}?portrait=0" width="640" height="360" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe> <vb:elseif condition="$provider == 'dailymotion'" /> <iframe frameborder="0" width="640" height="390" src="http://www.dailymotion.com/embed/video/{vb:raw code}"></iframe> <vb:elseif condition="$provider == 'metacafe'" /> <object class="restrain" type="application/x-shockwave-flash" width="640" height="380" data="http://www.metacafe.com/fplayer/{vb:raw code}.swf"> <param name="movie" value="http://www.metacafe.com/fplayer/{vb:raw code}.swf" /> <param name="wmode" value="{vb:raw wmode}" /> </object> <vb:elseif condition="$provider == 'google'" /> <object class="restrain" type="application/x-shockwave-flash" width="400" height="326" data="http://video.google.com/googleplayer.swf?docid={vb:raw code}"> <param name="movie" value="http://video.google.com/googleplayer.swf?docid={vb:raw code}" /> <param name="wmode" value="{vb:raw wmode}" /> </object> <vb:elseif condition="$provider == 'facebook'" /> <iframe src="https://www.facebook.com/video/embed?video_id={vb:raw code}" width="720" height="450" frameborder="0"></iframe> </vb:if> ------------------------------------------------------ Please "Mark as Installed" if you use this. Donations always appreciated. :up: Nominate MOTM if you LOVE it! Show Your Support
|
5 благодарности(ей) от: | ||
djbaxter, RichieBoy67, rodriiverduguez, Stratis, Taurus1 |
Comments |
#32
|
|||
|
|||
Thanks BOP!!
|
#33
|
||||
|
||||
Quote:
You need to be logged into the vBulletin Community Forum first as a licensed user before you can view that link. |
#34
|
|||
|
|||
Quote:
Code:
https://www.facebook.com/video/video.php?v=1944005363878 I did the XML edit to and went too Debug mode and rebuilt BB Video. But this still doesn't work: Code:
https://www.facebook.com/WilliamSinge/videos/10153926357545620 [video=facebook;10153926357545620]https://www.facebook.com/WilliamSinge/videos/10153926357545620/[/video] Then it works. Note: My video URL setup is different from Lynne. The difference between your working URL example & my video is this: - video.php?v= - videos/ & - video/ - WilliamSinge/ So the coding should account for both cases of it to work (I think). |
#35
|
||||
|
||||
I see, seems the real name in the URL is causing the issue- that's going to require separate custom code to deal with- that is beyond the scope of this template edit.
|
#36
|
|||
|
|||
Quote:
Quote:
Code:
https://www.facebook.com/video/video.php?v=1944005363878 Code:
https://www.facebook.com/WilliamSinge/videos/10153926357545620 |
#37
|
||||
|
||||
Do we must change http to https ? where is needed ?
Example: http://www.hulu.com is now https://www.hulu.com My forum is https Thanks |
#39
|
||||
|
||||
Ok, changed... Actually Dailymotion videos did not show up in pages (white space only).
So any one else use this must change too. Do not forget must not change all to https, only if they have change to. This is all reαdy code. Code:
<vb:if condition="$provider == 'hulu'"> <object width="512" height="288"> <param name="movie" value="https://www.hulu.com/embed/{vb:raw code}"></param> <param name="allowFullScreen" value="true"></param> <embed src="https://www.hulu.com/embed/{vb:raw code}" type="application/x-shockwave-flash" width="512" height="288" allowFullScreen="true"></embed> </object> <vb:elseif condition="$provider == 'youtube'" /> <iframe class="restrain" title="YouTube video player" width="640" height="390" src="//www.youtube.com/embed/{vb:raw code}?wmode={vb:raw wmode}" frameborder="0" allowfullscreen></iframe> <vb:elseif condition="$provider == 'youtube_share'" /> <iframe class="restrain" title="YouTube video player" width="640" height="390" src="//www.youtube.com/embed/{vb:raw code}?wmode={vb:raw wmode}" frameborder="0"></iframe> <vb:elseif condition="$provider == 'vimeo'" /> <iframe src="https://player.vimeo.com/video/{vb:raw code}?portrait=0" width="640" height="360" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe> <vb:elseif condition="$provider == 'dailymotion'" /> <iframe frameborder="0" width="640" height="390" src="https://www.dailymotion.com/embed/video/{vb:raw code}"></iframe> <vb:elseif condition="$provider == 'metacafe'" /> <object class="restrain" type="application/x-shockwave-flash" width="640" height="380" data="http://www.metacafe.com/fplayer/{vb:raw code}.swf"> <param name="movie" value="http://www.metacafe.com/fplayer/{vb:raw code}.swf" /> <param name="wmode" value="{vb:raw wmode}" /> </object> <vb:elseif condition="$provider == 'google'" /> <object class="restrain" type="application/x-shockwave-flash" width="400" height="326" data="https://video.google.com/googleplayer.swf?docid={vb:raw code}"> <param name="movie" value="https://video.google.com/googleplayer.swf?docid={vb:raw code}" /> <param name="wmode" value="{vb:raw wmode}" /> </object> <vb:elseif condition="$provider == 'facebook'" /> <iframe src="https://www.facebook.com/video/embed?video_id={vb:raw code}" width="720" height="450" frameborder="0"></iframe> </vb:if> |
Благодарность от: | ||
MarkFL |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|