Konu: YouTube Modu

Tekil Mesaj gösterimi
  #1  
Alt 25 November 2008, 10:51
ceyLin ceyLin isimli Üye şimdilik offline konumundadır
Senior Member
 
Kayıt Tarihi: 21 September 2008
Mesajlar: 15,180
Konular:
Aldığı Beğeni: 0 xx
Beğendiği Mesajlar: 0 xx
Post YouTube Modu

Subs.php Dosyasında bunu bulun

Kod:
array(
'tag' => 'green',
'before' => '<span style="color: green;">',
'after' => '</span>',
),

Sonrasına sunu ekle :

Kod:
array(
'tag' => 'youtube',
'type' => 'unparsed_commas_content',
'test' => '\d+,\d+\]',
'content' => '<object width="$2" height="$3"><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="$2" height="$3"></embed></object>',
'validate' => create_function('&$tag, &$data, $disabled', '
if (isset($disabled[\'url\']))
$tag[\'content\'] = \'$1\';
$pattern = \'/http:\/\/.+v=(.+)(&.+)*/i\';
if (preg_match($pattern, $data[0], $matches))
$data[0] = $matches[1];'),
'disabled_content' => '<a href="$1" target="_blank">$1</a>',
),
Post.template.php sunu bul

Kod:
 'flash' => array('code' => 'flash', 'before' => '[flash=200,200]', 'after' => '[/flash]', 'description' => $txt[433]),
Öncesine sunu ekle :

Kod:
'youtube' => array('code' => 'youtube', 'before' => '[YOUTUBE=425,350]', 'after' => '[/YOUTUBE]', 'description' => $txt['youtube']),
Modifications.turkish.php Bunu bul :

Kod:
?>
Öncesine ekle :

Kod:
$txt['youtube'] = 'YouTube';
Son oLarak youtube logosu bulun ve onu temanız=> images=>bbc klasörüne Atın..
Alıntı ile Cevapla