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 |
#32
|
||||
|
||||
Great..........
|
#33
|
|||
|
|||
Can you do this for vimeo too mate???
|
#34
|
||||
|
||||
Just did...
It's actually almost the same... Would be same for other providers too. |
#35
|
|||
|
|||
Quote:
fantastic!!! thanks a lot mate |
#36
|
||||
|
||||
Cool! How about Facebook next?
|
#37
|
|||
|
|||
tagged
|
#38
|
|||
|
|||
Hello ,thank you for the mod.
But It don´t work in 4.0.4 version. |
#39
|
|||
|
|||
thanks!
|
#40
|
||||
|
||||
Since the code in vb404 has changed slightly, this really needs to be updated. I understand it's really just a matter of adding "&fs=1" in two places.
Edit: Nope, it doesn't seem to be working in 404 even if you add that. Odd. |
#41
|
||||
|
||||
It actually does work with 4.0.4 too. The new and old templates don't match, and hence you need to revert to the default template. If you have already done that during the upgrade to 4.0.4,
Go to Styles & Templates ?> Style Manager ?> ?> BBCode Layout Templates ?> bbcode_video: Find: Code:
<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> Code:
<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}" /> <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> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|