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 - Youtube enabler for iPhone/iPod Touch in the CMS (https://vborg.vbsupport.ru/showthread.php?t=232619)

reimic 01-08-2010 10:00 PM

Youtube enabler for iPhone/iPod Touch in the CMS
 
1 Attachment(s)
If you add a Youtube Video in the CMS, you can't see it with an iPhone or iPod Touch. With this mod you could change that!



1) Log in into AdminCP.

2) Open the template "bbcode_video" in your Template Manager.

3) Find the line "<vb:elseif condition="$provider == 'youtube'" />"

4) Find the line "<vb:elseif condition="$provider == 'vimeo'" />"

5) Between these two lines replace with the following code:

HTML Code:

<object width="100%" height="385" data="http://www.youtube.com/v/{vb:raw code}">
        <param name="movie" value="http://www.youtube.com/v/{vb:raw code}">
        <embed src="http://www.youtube.com/v/{vb:raw code}" type="application/x-shockwave-flash" allowfullscreen="true"></embed>
</object>

It should look like this:

http://img.skitch.com/20100109-1u1kb...ny11h9jsp8.gif

Now if you write something an insert an Youtube Video, you could also see it on your iPhone. If you have inserted a Video before you do this mod here, you must edit it, and save it again. Than this mod also works with you previous videos.

javivi0 02-11-2010 09:09 AM

1 Attachment(s)
Hi,

Thaks for the mod :-)

one question.... in Chrome work fine but in IE8 I have a problem the size video is small

with parameter width="640" height="385" but not work....

adjunt screen

Jabong82 03-06-2010 11:23 PM

Hello is there a reason why some youtube videos work and some don't? Thank you.

Barakat 03-09-2010 12:55 AM

wow ,, i was wondering today why it could not works for me ,,,,

now it will work

thanks a lot

Samhayne-MMS 04-01-2010 09:26 PM

Thank you!

cmeinck 04-07-2010 01:45 PM

This isn't working for me in the forums.

I made the edit and posted a video using vB's WYSWYG -- using the YouTube link.

The resulting video doesn't play in the iPhone.


All times are GMT. The time now is 12:50 PM.

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.01119 seconds
  • Memory Usage 1,720KB
  • 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
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete