Total Users Online: 0 üye, 248 guest | Tarih/Saat: 2026-05-25 02:20
 
BBcode Youtube Kodu
2010-03-16 01:21 GMT  oklu Alnt
KaPTaN
Seditio
User is: Online status   Gender_M
Posts: 44
Ülke: --- - 00
Meslek: Öðrenci--sayýlýr xD
Age: 36

sorun nerede acaba arkada?lar

Kod:
if ($cfg['parser_vid'])
{
$bbcodes = array(
'\\[youtube=([^\\[]*)\\]' => '<object width="425" height="350">
<param name="movie" value="http://www.youtube.com/v/\\1"></param>
<embed src="http://www.youtube.com/v/\\1" type="application/x-shockwave-flash" width="425" height="350"></embed>
</object>',
'\\[googlevideo=([^\\[]*)\\]' => '<embed style="width:425px; height:326px;" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=\\1&hl=en-GB"> </embed>',
'\\[metacafe=([^\\[]*)\\]' => '<embed style="width:425px; height:345px;" src="http://www.metacafe.com/fplayer/\\1" width="400" height="345" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');

foreach($bbcodes as $bbcode => $bbcodehtml)
{ $text = eregi_replace($bbcode,$bbcodehtml,$text); }
}

$bbcodes = array(
'\\[colleft\\]([^\\[]*)\\[/colleft\\]' => '<div class="colleft">\\1</div>',
'\\[colright\\]([^\\[]*)\\[/colright\\]' => '<div class="colright">\\1</div>',
'\\[center\\]([^\\[]*)\\[/center\\]' => '<div style="text-align:center;">\\1</div>',
'\\[right\\]([^\\[]*)\\[/right\\]' => '<div style="text-align:right;">\\1</div>',
'\\[left\\]([^\\[]*)\\[/left\\]' => '<div style="text-align:left;">\\1</div>',
'\\[c1\\:([^\\[]*)\\]([^\\[]*)\\[c2\\:([^\\[]*)\\]([^\\[]*)\\[c3\\]' => '<table style="margin:0; vertical-align:top; width:100%;"><tr><td style="padding:8px; vertical-align:top; width:\\1%;">\\2</td><td  style="padding:8px; vertical-align:top; width:\\3%;">\\4</td></tr></table>'
);

foreach($bbcodes as $bbcode => $bbcodehtml)
{ $text = eregi_replace($bbcode,$bbcodehtml,$text); }

return(substr($text,1));
}

/* ------------------ */

function sed_bbcode_autourls($text)
{
$text = ' '.$text;
$text = preg_replace("#([\n ])([a-z0-9]+?)://([^\t \n\r]+)#i", "\\1[url]\\2://\\3[/url]", $text);
$text = preg_replace("#([\n ])([a-z0-9-_.]+?@[A-z0-9-]+\.[^,\t \n\r]+)#i", "\\1[email]\\2[/email]", $text);
return(substr($text,1));
}
Konuyla İlgili Diğer Başlıklar
üye konu açarken güvenlik kodu
PHP: JSON: AJAX: Youtube Video Aramaları
Üye Kayıt Sayfasında Sorulu Güvenlik kodu
Youtube'dan Ramazan'a özel hazırlık!
Youtube sorunu
Durdurun d?nyay? inecek var!

 

Powered by Seditio © 2009-2012 All Rights Reserved