Back to vBulletin 3.8 Add-ons

Youtube Embed Full URL BB Code - [yt]
Mod Version: 1.00, by 1Unreal

vB Version: 3.8.x Rating: (18 votes - 4.67 average) Installs: 194
Released: 13 Jun 2009 Last Update: Never Downloads: 1635
Not Supported Uses Plugins  

Right, there are lots of mods for embeding Youtube videos on here in one way or another. However they all require your users to get the ID and do it that way. If your users are not quite so savvy they may not know how to do this.

So this makes things very simple. Heres the syntax

Code:
[yt]http://www.youtube.com/watch?v=gEl1xSPyOwA[/yt]
Also, the URL doesn't have to be perfect. For example, if a user pastes in a URL such as http://www.youtube.com/watch?v=gEl1xSPyOwA&feature=rec-HM-fresh+div it will still find the ID and embed it perfectly.

Simple!

How to add a button to the toolbar

Spoiler (click to open)


If you like to add a icon to editor tooldar then do this:

Find on editor_toolbar_on template this:

Code:
<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_html"><img src="$stylevar[imgdir_editor]/html.png"  width="16" height="16" alt="$vbphrase[wrap_html_tags]" /></div></td>
Add bellow this:

Code:
<!--custom bbcode youtube start -->
<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_yt"><img src="$stylevar[imgdir_editor]/youtube.gif" width="21" height="20" alt="Wrap [yt] tags around selected text" /></div></td>
<!--custom bbcode youtube end -->
Upload the image in to your style editor folder:


Thanks a lot!!

Close

Download

File Type: %1$s product-ytembed.xml (1.7 KB, 1762 downloads)

Similar Mods

BB Code Enhancements [BB Code] YouTube Javascript Embed vBulletin 3.8 Add-ons
BB Code Enhancements YouTube Full Url embed BB Code vBulletin 3.7 Template Modifications
BB Code Enhancements [BB Code] YouTube Javascript Embed Modification Graveyard

vblts.ru supports vBulletin®, 2022-2024