


<!-- BEGIN youtube -->
<object width="425" height="355">
<param name="movie" value="http://www.youtube.com/v/{YOUTUBEID}&rel=0&color1=0x234900&color2=0x4e9e00&border=0"></param>
<param name="wmode" value="transparent"></param>
<embed src="http://www.youtube.com/v/{YOUTUBEID}&rel=0&color1=0x234900&color2=0x4e9e00&border=0" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed>
</object>
<br />
» <a href="http://youtube.com/watch?v={YOUTUBEID}" target="_blassen_">{YOUTUBELINK}</a><br />
<!-- END youtube -->


<td>
<input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="width: 40px" onclick="bbstyle(16)" onmouseover="helpline('w')" />
</td>

<td>
<input type="button" class="button" accesskey="y" name="addbbcode17" value="YouTube" style="width: 50px" onclick="BBCyoutube()" onmouseover="helpline('y')" />
</td>

// Shows the help messages in the helpline window
function helpline(help) {
document.post.helpbox.value = eval(help + "_help");
}



// YouTube Video BBCode from BLASSENweb.net
function BBCyoutube() {
var FoundErrors = '';
var enterURL = prompt("Enter the YouTube URL","http://");
if (!enterURL) {
FoundErrors += "You didn't write the Youtube URL";
}
if (FoundErrors) {
alert("Error :"+FoundErrors);
return;
}
var ToAdd = "[youtube]"+enterURL+"[/youtube]";
document.post.message.value+=ToAdd;
document.post.message.focus();
}


bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]');

bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]','[youtube]','[/youtube]');

$bbcode_tpl['email'] = str_replace('{EMAIL}', '\\1', $bbcode_tpl['email']);

$bbcode_tpl['youtube'] = str_replace('{YOUTUBEID}', '\\1', $bbcode_tpl['youtube']);
$bbcode_tpl['youtube'] = str_replace('{YOUTUBELINK}', $lang['youtube_link'], $bbcode_tpl['youtube']);

$replacements[] = $bbcode_tpl['email'];

// [youtube]YouTube URL[/youtube] code..
$patterns[] = "#\[youtube\]http://(?:www\.)?youtube.com/watch\?v=([0-9A-Za-z-_]{11})[^[]*\[/youtube\]#is";
$replacements[] = $bbcode_tpl['youtube'];

$lang['youtube_link'] = 'YouTube - Video Link';

$lang['bbcode_f_help'] = 'Velikost písma: [size=x-small]malý text[/size]';

$lang['bbcode_y_help'] = 'Vloľit URL Youtube: [youtube]Video URL[/youtube]';

Obsah fóra BLASSENweb » Tipy a Triky
![]() |
|