The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Full Screen Button in Youtube embedded Videos Details »» | |||||||||||||||||||||||||||
Full Screen Button in Youtube embedded Videos
Developer Last Online: Jun 2022
Updated to work with 4.0.6
Hi, a member posted a video on my site and complained to me that there is no Full Screen Button in the embedded video. The fix to this is really simple: You need to go to Styles & Templates ?> Style Manager ?> ?> BBCode Layout Templates ?> bbcode_video: Find: HTML Code:
<vb:elseif condition="$provider == 'youtube'" /> <object class="restrain" type="application/x-shockwave-flash" width="640" height="385" data="http://www.youtube.com/v/{vb:raw code}"> <param name="movie" value="http://www.youtube.com/v/{vb:raw code}" /> <param name="wmode" value="transparent" /> <!--[if IE 6]> <embed width="640" height="385" type="application/x-shockwave-flash" src="http://www.youtube.com/v/{vb:raw code}" /> <![endif]--></object> HTML Code:
<vb:elseif condition="$provider == 'youtube'" /> <object class="restrain" type="application/x-shockwave-flash" width="640" height="385" data="http://www.youtube.com/v/{vb:raw code}&fs=1"> <param name="movie" value="http://www.youtube.com/v/{vb:raw code}&fs=1" /> <param name="wmode" value="transparent" /> <param name="allowFullScreen" value="true" /> <!--[if IE 6]> <embed width="640" height="385" type="application/x-shockwave-flash" src="http://www.youtube.com/v/{vb:raw code}" /> <![endif]--></object> For Vimeo, the process is the same, Find: HTML Code:
<vb:elseif condition="$provider == 'vimeo'" /> <object class="restrain" type="application/x-shockwave-flash" width="640" height="360" data="http://vimeo.com/moogaloop.swf?clip_id={vb:raw code}"> <param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id={vb:raw code}" /> <param name="wmode" value="transparent" /> <!--[if IE 6]> <embed width="640" height="360" type="application/x-shockwave-flash" src="http://vimeo.com/moogaloop.swf?clip_id={vb:raw code}" /> <![endif]--></object> HTML Code:
<vb:elseif condition="$provider == 'vimeo'" /> <object class="restrain" type="application/x-shockwave-flash" width="640" height="360" data="http://vimeo.com/moogaloop.swf?clip_id={vb:raw code}&fullscreen=1"> <param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id={vb:raw code}" /> <param name="wmode" value="transparent" /> <param name="allowfullscreen" value="true" /> <!--[if IE 6]> <embed width="420" height="339" type="application/x-shockwave-flash" src="http://www.dailymotion.com/swf/{vb:raw code}" /> <![endif]--></object> Show Your Support
|
Comments |
#72
|
||||
|
||||
Hi schchief,
Got your PM. Could you post the code of your bbcode_video template here. If you do I can give you instructions on what to change. |
#73
|
|||
|
|||
an update would be nice
|
#74
|
||||
|
||||
This is included in core in VB 4.1.2 so updating is no longer necessary.
|
#75
|
|||
|
|||
simple easy and great THANK YOU VERY MUCH
|
#76
|
|||
|
|||
how about google?
did try few things but its not working for me |
#77
|
||||
|
||||
Huh? Google is Youtube now.
|
#78
|
|||
|
|||
|
#79
|
||||
|
||||
Quote:
|
#80
|
|||
|
|||
How to change new default VB code in order to have full screen, did try several things but nothing, this is new code, now its iframe:
Code:
<vb:elseif condition="$provider == 'youtube'" /> <iframe class="restrain" title="YouTube video player" width="512" height="308" src="//www.youtube.com/embed/{vb:raw code}?wmode={vb:raw wmode}" frameborder="0" ></iframe> <vb:elseif condition="$provider == 'youtube_share'" /> <iframe class="restrain" title="YouTube video player" width="512" height="308" src="//www.youtube.com/embed/{vb:raw code}?wmode={vb:raw wmode}" frameborder="0" ></iframe> |
#81
|
||||
|
||||
Wow a two year old resurrection! I had actually long ago forgotten about this mod. But I just tracked down a recent embed on our forum and it's got full screen. Either the change I made long ago is still working, or Youtube finally fixed the issue.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|