YouTube BBCode
Bu Modifikasyonun uyumlu olduğu sürümler:
1.1.8, 1.1.10, 1.1.11, 2.0 RC1, 2.0 RC1.2, 2.0 RC2, 2.0 RC3

Buradan download edebilirsiniz.
Modifikasyonda türkçe dil seçeneği mevcuttur.
Manuel kurmak için lütfen yedek alınız aksi takdirde sorun olduğunda sorumlusu ben değilim kolay gelsin.
2.0.2 İçin Manuel:
./Sources/Subs.php
BUL
array( 'tag' => 'white', 'before' => '<span style="color: white;" class="bbc_color">', 'after' => '</span>', ),Sonrasına Ekle
array( 'tag' => 'youtube', 'type' => 'unparsed_content', 'validate' => create_function('&$tag, &$data, $disabled', ' // Access globals global $txt, $context; // Determine which variable is the link $link = !is_array($data) ? $data : $data[0] ; // Remove linebreaks & trim $link = trim(strtr($link, array(\'<br />\' => \'\'))); // Parse the ID of video or playlist safely if (preg_match(\'~^(?:http://((?:www|au|br|ca|es|fr|de|hk|ie|in|il|it|jp|kr|mx|nl|nz|pl|ru|tw|uk)\.)?youtube\.com/(?:[^"]*?)(??:video_)?id=|(?:v|p)(?:/|=)))?([0-9a-f]{16}|[0-9a-z-_]{11})~i\'.($context[\'utf8\'] ? \'u\' : \'\'), $link, $matches)) { // Localised youtube site? If not use www. $site = !empty($matches[1]) ? strtolower($matches[1]) : \'www.\' ; // Video or Playlist ID? $type = strlen($matches[2]) == 11 ? 1 : 0 ; // Set sizes Or Normalise sizes (If sizes are <100 or > 780) if(!is_array($data) || ($data[1] > 780 || $data[1] < 100 || $data[2] > 780 || $data[2] < 100)) $data = array(0, 425, ($type ? 350 : 355)); // Set ID in the array $data[0] = $matches[2]; // Tidy up unset($matches, $link); // Set the Content (With conditions on disabled types of BBCode) if (isset($disabled[\'url\']) && isset($disabled[\'youtube\'])) // Youtube & Url bbc disabled? (eg Printer friendly pages) $tag[\'content\'] = "http://". $site ."youtube.com/". ($type ? "watch?v" : "view_play_list?p") ."=". $data[0]; elseif(isset($disabled[\'youtube\'])) // Only Youtube is disabled, So make an active link $tag[\'content\'] = "<a href=\"http://". $site ."youtube.com/". ($type ? "watch?v" : "view_play_list?p") ."=". $data[0]."\" target=\"_blank\">http://". $site ."youtube.com/". ($type ? "watch?v" : "view_play_list?p") ."=". $data[0]."</a>"; else { // Empty content $tag[\'content\'] = \'\'; // Build the <object> (Non-Mac IE Only) if($context[\'browser\'][\'is_ie\'] && !$context[\'browser\'][\'is_mac_ie\']) $tag[\'content\'] = \'<object width="\'.$data[1].\'px" height="\'.$data[2].\'px">\' .\'<param name="movie" value="http://www.youtube.com/\'.($type ? "v" : "p").\'/\'.$data[0].\'&rel=1&fs=1" />\' .\'<param name="wmode" value="transparent" /><param name="allowFullScreen" value="true" />\' .\'<param name="allowScriptAccess" value="never" />\'; // Build the <embed> $tag[\'content\'] .= \'<embed src="http://www.youtube.com/\'.($type ? "v" : "p").\'/\'.$data[0].\'&rel=1&fs=1" \' .\'type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="never" \' .\'wmode="transparent" width="\'.$data[1].\'px" height="\'.$data[2].\'px">\'; // Build the <noembed> $tag[\'content\'] .= "<noembed><a href=\"http://". $site ."youtube.com/". ($type ? "watch?v" : "view_play_list?p" ) ."=". $data[0]."\" target=\"_blank\">http://". $site ."youtube.com/". ($type ? "watch?v" : "view_play_list?p") ."=". $data[0]."</a></noembed>"; // Closing <embed> $tag[\'content\'] .= \'</embed>\'; // Close the <object> (Non-Mac IE Only) if($context[\'browser\'][\'is_ie\'] && !$context[\'browser\'][\'is_mac_ie\']) $tag[\'content\'] .= \'</object>\'; } } else // Invalid link $tag[\'content\'] = $txt[\'youtube_invalid\']; '), 'disabled_content' => '$1', ), array( 'tag' => 'youtube', 'type' => 'unparsed_commas_content', 'test' => '\d+,\d+\]', 'validate' => create_function('&$tag, &$data, $disabled', ' // Access globals global $txt, $context; // Determine which variable is the link $link = !is_array($data) ? $data : $data[0] ; // Remove linebreaks & trim $link = trim(strtr($link, array(\'<br />\' => \'\'))); // Parse the ID of video or playlist safely if (preg_match(\'~^(?:http://((?:www|au|br|ca|es|fr|de|hk|ie|in|il|it|jp|kr|mx|nl|nz|pl|ru|tw|uk)\.)?youtube\.com/(?:[^"]*?)(??:video_)?id=|(?:v|p)(?:/|=)))?([0-9a-f]{16}|[0-9a-z-_]{11})~i\'.($context[\'utf8\'] ? \'u\' : \'\'), $link, $matches)) { // Localised youtube site? If not use www. $site = !empty($matches[1]) ? strtolower($matches[1]) : \'www.\' ; // Video or Playlist ID? $type = strlen($matches[2]) == 11 ? 1 : 0 ; // Set sizes Or Normalise sizes (If sizes are <100 or > 780) if(!is_array($data) || ($data[1] > 780 || $data[1] < 100 || $data[2] > 780 || $data[2] < 100)) $data = array(0, 425, ($type ? 350 : 355)); // Set ID in the array $data[0] = $matches[2]; // Tidy up unset($matches, $link); // Set the Content (With conditions on disabled types of BBCode) if (isset($disabled[\'url\']) && isset($disabled[\'youtube\'])) // Youtube & Url bbc disabled? (eg Printer friendly pages) $tag[\'content\'] = "http://". $site ."youtube.com/". ($type ? "watch?v" : "view_play_list?p") ."=". $data[0]; elseif(isset($disabled[\'youtube\'])) // Only Youtube is disabled, So make an active link $tag[\'content\'] = "<a href=\"http://". $site ."youtube.com/". ($type ? "watch?v" : "view_play_list?p") ."=". $data[0]."\" target=\"_blank\">http://". $site ."youtube.com/". ($type ? "watch?v" : "view_play_list?p") ."=". $data[0]."</a>"; else { // Empty content $tag[\'content\'] = \'\'; // Build the <object> (Non-Mac IE Only) if($context[\'browser\'][\'is_ie\'] && !$context[\'browser\'][\'is_mac_ie\']) $tag[\'content\'] = \'<object width="\'.$data[1].\'px" height="\'.$data[2].\'px">\' .\'<param name="movie" value="http://www.youtube.com/\'.($type ? "v" : "p").\'/\'.$data[0].\'&rel=1&fs=1" />\' .\'<param name="wmode" value="transparent" /><param name="allowFullScreen" value="true" />\' .\'<param name="allowScriptAccess" value="never" />\'; // Build the <embed> $tag[\'content\'] .= \'<embed src="http://www.youtube.com/\'.($type ? "v" : "p").\'/\'.$data[0].\'&rel=1&fs=1" \' .\'type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="never" \' .\'wmode="transparent" width="\'.$data[1].\'px" height="\'.$data[2].\'px">\'; // Build the <noembed> $tag[\'content\'] .= "<noembed><a href=\"http://". $site ."youtube.com/". ($type ? "watch?v" : "view_play_list?p" ) ."=". $data[0]."\" target=\"_blank\">http://". $site ."youtube.com/". ($type ? "watch?v" : "view_play_list?p") ."=". $data[0]."</a></noembed>"; // Closing <embed> $tag[\'content\'] .= \'</embed>\'; // Close the <object> (Non-Mac IE Only) if($context[\'browser\'][\'is_ie\'] && !$context[\'browser\'][\'is_mac_ie\']) $tag[\'content\'] .= \'</object>\'; } } else // Invalid link $tag[\'content\'] = $txt[\'youtube_invalid\']; '), 'disabled_content' => '$1', ),BUL
$disabled['email'] = true; $disabled['flash'] = true;
// Disable youtube if on 'printer friendly page' $disabled['youtube'] = true;./Sources/Subs-Editor.php
BUL
'flash' => array('code' => 'flash', 'before' => '[flash=200,200]', 'after' => '[/flash]', 'description' => $txt['flash']),Öncesine Ekle
'youtube' => array('code' => 'youtube', 'before' => '[youtube]', 'after' => '[/youtube]', 'description' => $txt['youtube']),BUL
array( 'image' => 'flash', 'code' => 'flash', 'before' => '[flash=200,200]', 'after' => '[/flash]', 'description' => $txt['flash'] ),Öncesine Ekle
array( 'image' => 'youtube', 'code' => 'youtube', 'before' => '[youtube]', 'after' => '[/youtube]', 'description' => $txt['youtube'] ),./Themes/default/languages/Modifications.english.php
BUL
?>Öncesine Ekle
$txt['youtube'] = 'YouTube'; $txt['youtube_invalid'] = '#Invalid YouTube Link#';./Themes/default/languages/Modifications.turkish.php
BUL
?>Öncesine Ekle
$txt['youtube'] = 'YouTube'; $txt['youtube_invalid'] = '#Gecersiz YouTube Linki#';Aşşağıdaki dosyayı indirdikten sonra içindeki resmi /Themes/default/images/bbc dosyasının içine atın
http://www.dosya.tc/server10/HBJwAD/..._v2.6.zip.html
Haydi kolay gelsin..