Herşeyde biraz 2de1 - Tekil Mesaj gösterimi - YouTube Modu
Konu: YouTube Modu
Tekil Mesaj gösterimi
  #1 (permalink) Alt 29-06-2007, 17:35
Mr.CoWbOy
~*~ گєà£ Of گpєєd ~*~
 
Mr.CoWbOy - ait Kullanıcı Resmi (Avatar)

ÆonFLux
 
Kayıt: 20.04.2006
Yaş: 25
Mesajlar: 1.479
Rep gücü: 15
Rep derecesi: Mr.CoWbOy Hızlanmaya Başladı Kim Tutar Seni BeaMr.CoWbOy Hızlanmaya Başladı Kim Tutar Seni BeaMr.CoWbOy Hızlanmaya Başladı Kim Tutar Seni Bea

Arrow YouTube Modu

 
Subs.php dosyasında

Bul :
Kod:
			array(
				'tag' => 'green',
				'before' => '<span style="color: green;">',
				'after' => '</span>',
			),
Sonrasına 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 dosyasında

Bul :
Kod:
			'flash' => array('code' => 'flash', 'before' => '[flash=200,200]', 'after' => '[/flash]', 'description' => $txt[433]),
Öncesine EkLe :
Kod:
			'youtube' => array('code' => 'youtube', 'before' => '[youtube=425,350]', 'after' => '[/youtube]', 'description' => $txt['youtube']),
Modifications.turkish.php dosyasında

Bul :
Kod:
?>
Öncesine ekle :
Kod:
$txt['youtube'] = 'YouTube';
ekte verdiğim youtube gifini de temanız=>images=>bbc dizinine atın adı : youtube olacak...

Yedeğinizi aLmayı unutmayın!!!

Resim :


Konu Mr.CoWbOy tarafından (29-06-2007 Saat 18:25 ) değiştirilmiştir..
Mr.CoWbOy Çevrimdışı   Alıntı ile Cevapla