Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. Edit: /board/includes/xml/bbcode_video_vbulletin.xml
- Add to bottom:
- <provider tagoption="secureyoutube">
- <title>SecureYouTube</title>
- <url>https://www.youtube.com</url>
- <regex_url><![CDATA[https:\/\/www\.youtube\.com\/watch\?.*v=([a-z0-9-_]+)]]></regex_url>
- <regex_scrape></regex_scrape>
- <embed><![CDATA[<object class="restrain" type="application/x-shockwave-flash" width="640" height="385" data="http://www.youtube.com/v/{vb:raw code}?version=3&color1=0xb1b1b1&color2=0xcfcfcf&feature=player_embedded">
- <param name="movie" value="http://www.youtube.com/v/{vb:raw code}?version=3&color1=0xb1b1b1&color2=0xcfcfcf&feature=player_embedded" />
- <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}?version=3&color1=0xb1b1b1&color2=0xcfcfcf&feature=player_embedded" allowfullscreen="true" />
- <![endif]--></object>]]></embed>
- </provider>
- 2. Edit vb 'bbcode_video' template from admincp
- Add to top:
- <vb:elseif condition="$provider == 'secureyoutube'"/>
- <div class="video-wrapper"><div class="video-container">
- <iframe title="YouTube video player" class="youtube-player" type="text/html" width="640" height="390" src="http://www.youtube.com/embed/{vb:raw code}?theme=light" frameborder="0" allowFullScreen ></iframe></div></div>
- <!--[if IE 6]>
- <embed width="640" height="385" type="application/x-shockwave-flash" src="http://www.youtube.com/v/{vb:raw code}?version=3&color1=0xb1b1b1&color2=0xcfcfcf&feature=player_embedded" allowfullscreen="true" />
- <![endif]--></object>
- 3. Enable vb debug mode.
- 4. Rebuild video bbcode from admincp.
- 5. Turn off debug.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement