Back to vBulletin 4.x Template Modifications

Youtube enabler for iPhone/iPod Touch in the CMS
Mod Version: 1.00, by reimic

vB Version: 4.0.0 Rating: (3 votes - 5.00 average) Installs: 16
Released: 09 Jan 2010 Last Update: Never Downloads: 0
Not Supported Template Edits  

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:



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.

Download

No files for download.


vblts.ru supports vBulletin®, 2022-2024