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 |
#62
|
|||
|
|||
Can this be done for Facebook videos, and if so, how?
Chris |
#63
|
|||
|
|||
Very nice, thank you (works with 4.0.7)
|
#64
|
|||
|
|||
question:
For example, links for vimeo : 1 - http:\/\/(?:www\.)?vimeo\.com\/([0-9]+) 2 - http://vimeo.com/moogaloop.swf?clip_id={vb:raw code} For example, links for youtube 1 - http:\/\/www\.youtube\.com\/watch\?.*v=([a-z0-9-_]+) 2 - http://www.youtube.com/v/{vb:raw code} IMDB What are the links? |
#65
|
|||
|
|||
I have the 4.1.0 Pl2 version of Vbulletin.
I made the change but it duplicates the youtube video? Any idea? |
#66
|
||||
|
||||
I believe I read in one of the change logs that this functionality is now included in vb.?
|
#67
|
||||
|
||||
Sorry guys but I haven't upgraded to 4.1. So I have not yet been able to test.
|
#68
|
|||
|
|||
how would one get this to work for youtube videos posted in the vB CMS?
|
#69
|
||||
|
||||
As of VB 4.1.2 this is incorporated in VBulletin Core. So this MOD is no longer necessary.
|
#70
|
|||
|
|||
Quote:
Thanks mate edit: I'm on 4.0.2 |
#71
|
||||
|
||||
Yes sure. This Mod however has HTML which was changed in 4.0.6. So you may not Find the code as given here. However the html which you are supposed to add will still work. Tell you what I am free right now so if you drop me a PM in the next 10 mins, with your board's login details I can add the code for you. But that's just for now.
If not, what you need to do is find the HTML code for object element for Youtube and replace it with the one provided here. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|