vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - Full Screen Button in Youtube embedded Videos (https://vborg.vbsupport.ru/showthread.php?t=238243)

Sadikb 03-13-2010 10:00 PM

Full Screen Button in Youtube embedded Videos
 
1 Attachment(s)
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>

Replace with:

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>

I also blogged about it here.

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>

Replace with:

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}&amp;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>

Hope this helps...

arena 03-14-2010 10:11 PM

Thank you installed

Jabong82 03-14-2010 10:43 PM

Thank you very much. Great Mod Installed.

I have a question though. Is there a way to get this code to work so youtube videos can be displayed in an iphone?

I had a code which your mod replaced that allowed youtube videos to show in an iphone, however it was weird because it would show only some videos and some would be left with the little flash icon.

Any help would be appreciated. Thank you again for this mod though.

archet1337 03-14-2010 11:49 PM

This is awesome. Thanks for sharing.

Sadikb 03-15-2010 06:32 AM

Quote:

Originally Posted by arena (Post 2003703)
Thank you installed

Quote:

Originally Posted by archet1337 (Post 2003782)
This is awesome. Thanks for sharing.

Thanks guys for your appreciation. It's motivated me to share some of my other customizations too... :)

Sadikb 03-15-2010 06:37 AM

Quote:

Originally Posted by Jabong82 (Post 2003732)
Thank you very much. Great Mod Installed.

I have a question though. Is there a way to get this code to work so youtube videos can be displayed in an iphone?

I had a code which your mod replaced that allowed youtube videos to show in an iphone, however it was weird because it would show only some videos and some would be left with the little flash icon.

Any help would be appreciated. Thank you again for this mod though.

I am not sure if this will work, but I think the Iphone plays youtube videos if you have the embed tag in. So Try this:

Find:

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" />
</object>

Replace with:

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" />
  <embed
    src="http://www.youtube.com/v/{vb:raw code}&fs=1"
    type="application/x-shockwave-flash"
    allowscriptaccess="always"
    allowfullscreen="true"
    width="640"
    height="385">
  </embed>
</object>

You can reduce the embed width if it causes a problem with iphone screen. Once again, I am not sure it will work, give it a try, (I don't have an iphone) if it doesn't, remove the <embed></embed> tags.

COL NIL SATIS 03-15-2010 06:15 PM

ive added that code mate but im still not getting the full screen option ???? do we also have to edit the bb code replacement??? any ideas

Sadikb 03-15-2010 07:12 PM

Quote:

Originally Posted by COL NIL SATIS (Post 2004217)
ive added that code mate but im still not getting the full screen option ???? do we also have to edit the bb code replacement??? any ideas

It should come... Could you share the url with the video?

Videx 03-16-2010 11:11 AM

This really shouldn't be classified as a mod of any type, it should be entered in the bug tracker.

But until it's fixed in the default code, thanks!

B?rger_von_Rado 03-16-2010 03:48 PM

THX! Worked for me and is installed, or better modified.:D

COL NIL SATIS 03-16-2010 04:37 PM

Quote:

Originally Posted by Sadikb (Post 2004252)
It should come... Could you share the url with the video?

No problem mate ....its working A1 now....cheers :D

Sadikb 03-16-2010 05:01 PM

Quote:

Originally Posted by Videx (Post 2004724)
This really shouldn't be classified as a mod of any type, it should be entered in the bug tracker.

But until it's fixed in the default code, thanks!

Well maybe.. maybe not. It's not really a BUG, more of a desirable feature.

Quote:

Originally Posted by B?rger_von_Rado (Post 2004861)
THX! Worked for me and is installed, or better modified.:D

You are welcome.

Quote:

Originally Posted by COL NIL SATIS (Post 2004879)
No problem mate ....its working A1 now....cheers :D

Great... :)

Jabong82 03-16-2010 09:22 PM

Hey man thanks for the embed code. Unfortunately it didn't work for me :) Thank you again though I appreciate your effort.

Sadikb 03-17-2010 12:31 PM

Quote:

Originally Posted by Jabong82 (Post 2005039)
Hey man thanks for the embed code. Unfortunately it didn't work for me :) Thank you again though I appreciate your effort.

Sorry to hear that mate.

XLCR GODFATHER 03-25-2010 10:13 PM

Perfect
Easy
Thank You
As with any template mod ALWAYS save a copy of the orig. template!!!!

Sadikb 03-26-2010 03:04 AM

Quote:

Originally Posted by XLCR GODFATHER (Post 2010291)
Perfect
Easy
Thank You
As with any template mod ALWAYS save a copy of the orig. template!!!!

Thanks. You can always, click on revert to get back the original template.

thecelticway 03-26-2010 01:27 PM

works great

thank you

abdulbasitsaeed 04-03-2010 04:27 AM

Thank you very much for this simple modification, Sadikb. :)

Sadikb 04-07-2010 08:30 AM

Quote:

Originally Posted by thecelticway (Post 2010531)
works great

thank you

Quote:

Originally Posted by abdulbasitsaeed (Post 2014985)
Thank you very much for this simple modification, Sadikb. :)

You are welcome.

MartinMS 04-14-2010 09:27 AM

Lovely mod, thanks

NashChristian 04-18-2010 11:09 PM

ANOTHER mod that SHOULD be core vB! Thanks!

Videx 04-19-2010 02:07 AM

Quote:

Originally Posted by NashChristian (Post 2023484)
ANOTHER mod that SHOULD be core vB! Thanks!

Yes, but has anyone actually entered it in the bug tracker yet?

NashChristian 04-19-2010 09:18 AM

Am I the only person having problems getting the Facebook Full Screen button to work? My button is there, it looks active, but it doesn't do anything... is this a bug, or do we need to incorporate that into this mod or a similar mod, or am I just having issues? ;)

NashChristian 04-19-2010 09:18 AM

Quote:

Originally Posted by Videx (Post 2023533)
Yes, but has anyone actually entered it in the bug tracker yet?

Is it a "bug" or something vB just overlooked or didn't care to include?

Sadikb 04-19-2010 10:03 AM

Quote:

Originally Posted by NashChristian (Post 2023664)
Am I the only person having problems getting the Facebook Full Screen button to work? My button is there, it looks active, but it doesn't do anything... is this a bug, or do we need to incorporate that into this mod or a similar mod, or am I just having issues? ;)

Facebook? You mean Youtube, right?

NashChristian 04-19-2010 10:47 AM

Quote:

Originally Posted by Sadikb (Post 2023683)
Facebook? You mean Youtube, right?

No, Youtube is working fine with this mod... I mean Facebook.

I know that this isn't a Facebook mod, so I may be posting this in the wrong place, but if others are also having problems with their Facebook video integration, then a mod exactly like this, but made for Facebook, would be the perfect solution. Anyone else having problems with the maximize video on FB? Thanks.

Sadikb 04-19-2010 11:31 AM

Quote:

Originally Posted by NashChristian (Post 2023700)
No, Youtube is working fine with this mod... I mean Facebook.

I know that this isn't a Facebook mod, so I may be posting this in the wrong place, but if others are also having problems with their Facebook video integration, then a mod exactly like this, but made for Facebook, would be the perfect solution. Anyone else having problems with the maximize video on FB? Thanks.

Ya, the code in this MOD is for Youtube only. I can make one for facebook though... I'll look into it tonight.

Gamertype 04-20-2010 12:37 AM

Is there a way to auto start a video in HD if possible?

marshal_ramdev 04-21-2010 04:53 AM

thanks ..

forumsonsuz 04-23-2010 08:01 PM

Thank You

fluidswork 04-27-2010 02:44 AM

Great..........

COL NIL SATIS 04-29-2010 06:45 PM

Can you do this for vimeo too mate???

Sadikb 04-29-2010 07:11 PM

Quote:

Originally Posted by COL NIL SATIS (Post 2029157)
Can you do this for vimeo too mate???

Just did... :)

It's actually almost the same... Would be same for other providers too.

COL NIL SATIS 05-01-2010 04:26 PM

Quote:

Originally Posted by Sadikb (Post 2029170)
Just did... :)

It's actually almost the same... Would be same for other providers too.


fantastic!!! thanks a lot mate

NashChristian 05-01-2010 08:25 PM

Quote:

Originally Posted by Sadikb (Post 2029170)
Just did... :)

It's actually almost the same... Would be same for other providers too.

Cool! How about Facebook next? ;)

ArminTECH 05-18-2010 04:17 AM

tagged

Santori 06-20-2010 05:02 PM

Hello ,thank you for the mod.
But It donĀ“t work in 4.0.4 version.

iceytdot 06-26-2010 03:14 PM

thanks!

Videx 07-07-2010 02:40 AM

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.

abdulbasitsaeed 07-07-2010 02:57 AM

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>

and replace it with:

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>

Hope this works for you. :)


All times are GMT. The time now is 04:51 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01458 seconds
  • Memory Usage 1,844KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (4)bbcode_html_printable
  • (20)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete