Link to ModOverviewThis mod allows a poster the option to embed a YouTube video in a post through the use of the [youtube=425,350][/youtube] BBC (bulletin board code) tags. What makes this variation different from other YouTube BBC mods is that the code it uses is XHTML compliant, thus keeping with the forum's XHTML validity.
Its use is easy: simply plug the video ID (random jumble of letters and numbers) between the [youtube][youtube] tags.
Language IntegrationTo make the mod work with your language, simply open Modifications.*.php, where * is the language you wish to integrate the mod into, and add
$txt['youtube'] = 'YouTube'; to its own line in the file.
Theme IntegrationTheme integration for this mod is fairly straight forward. Simply copy youtube.gif from the default theme's images directory into your custom theme's images directory. If your custom theme happens to use its own Post.template.php, open that template file and find:
'flash' => array('code' => 'flash', 'before' => '[flash=200,200]', 'after' => '[/flash]', 'description' => $txt[433]),
Following that code, add:
'youtube' => array('code' => 'youtube', 'before' => '[youtube=425,350]', 'after' => '[/youtube]', 'description' => $txt['youtube']),
CompatibilityThis mod is only compatible with SMF 1.1 and 1.1.1. This mod will not be ported to work with any version bellow 1.1, as I only encourage the use of version 1.1 or above.