Simple Machines Community Forum

SMF Support => Özelleştirme => Türkçe Bölümü (Turkish) => Language Specific Support => Paketler ve Çeviriler => Topic started by: Hoochie Coochie Man on October 29, 2007, 05:54:46 PM

Title: YouTube Playlist BBCode
Post by: Hoochie Coochie Man on October 29, 2007, 05:54:46 PM
Türkçe çeviri bana aittir..


Sources'de Subs.php dosyasında
Bul:
array(
'tag' => 'white',
'before' => '<span style="color: white;">',
'after' => '</span>',
),


Sonrasına ekle
array(
'tag' => 'ytplaylist',
'type' => 'unparsed_content',
'content' => '<object width="530px" height="370px">'
.'<param name="movie" value="http://www.youtube.com/p/$1" />'
.'<param name="wmode" value="transparent" />'
.'<param name="allowScriptAccess" value="never" />'
.'<embed src="http://www.youtube.com/p/$1" type="application/x-shockwave-flash" allowScriptAccess="never" wmode="transparent" width="530px" height="370px"></embed>'
.'</object>',
'validate' => create_function('&$tag, &$data, $disabled', '
// WE MAY NEED ACCESS TO THE YTPLAYLIST TXT STRING
global $txt;
// REMOVE EXTRA LINES
$data = strtr($data, array(\'<br />\' => \'\'));
// SET DEFAULT SITE (TO TRY TO RETURN, IF DISABLED)
$site = \'www.\';
// JUST A PLAYLIST ID?
if (preg_match(\'#^([0-9a-f]{16})#i\', trim($data), $matches)) {
$data = $matches[1];
} else {
// MATCH THREE FORMS, THE PAGE URL, THE EMBED LINK, THE PLAYER EMBED LINK
if (preg_match(\'#^http://(www\.|uk\.|fr\.|ie\.|it\.|jp\.|pl\.|es\.|nl\.|br\.|)youtube\.com/(ep\.swf\?id=|view_play_list\?p=|p/)([0-9a-f]{16})(.*?)#i\', trim($data), $matches)) {
$data = $matches[3];
$site = !empty($matches[1]) ? strtolower($matches[1]) : $site;
} else {
// INVALID YT PLAYLIST LINK, SO RETURN ERROR MESSAGE
$tag[\'content\'] = $txt[\'ytplaylist_invalid\'];
return;
}
}
// YTPLAYLIST & URL DISABLED? (INCLUDES THE PRINT VERSION) USE PRINTER FRIENDLY TEXT (WITH PARSED SITE)
if (isset($disabled[\'url\']) && isset($disabled[\'ytplaylist\'])) {
$tag[\'content\'] = $txt[\'ytplaylist\'].\': http://\'.$site.\'youtube.com/view_play_list?p=\'.$data;
return;
// ONLY YT PLAYLIST DISABLED? USE LINK INSTEAD (WITH PARSED SITE)
} elseif(isset($disabled[\'ytplaylist\'])) {
$tag[\'content\'] = \'<a href="http://\'.$site.\'youtube.com/view_play_list?p=\'.$data.\'" target="_blank">\'.$txt[\'ytplaylist\'].\': http://\'.$site.\'youtube.com/view_play_list?p=\'.$data.\'</a>\';
return;
}
'),
'disabled_content' => '$1',
            ),
array(
'tag' => 'ytplaylist',
'type' => 'unparsed_commas_content',
'test' => '\d+,\d+\]',
'content' => '<object width="$2px" height="$3px">'
.'<param name="movie" value="http://www.youtube.com/p/$1" />'
.'<param name="wmode" value="transparent" />'
.'<param name="allowScriptAccess" value="never" />'
.'<embed src="http://www.youtube.com/p/$1" type="application/x-shockwave-flash" allowScriptAccess="never" wmode="transparent" width="$2px" height="$3px"></embed>'
.'</object>',
'validate' => create_function('&$tag, &$data, $disabled', '
// WE MAY NEED ACCESS TO THE YTPLAYLIST TXT STRING
global $txt;
// REMOVE EXTRA LINES
$data[0] = strtr($data[0], array(\'<br />\' => \'\'));
// SET DEFAULT SITE (TO TRY TO RETURN, IF DISABLED)
$site = \'www.\';
// JUST A PLAYLIST ID?
if (preg_match(\'#^([0-9a-f]{16})#i\', trim($data[0]), $matches)) {
$data[0] = $matches[1];
} else {
// MATCH THREE FORMS, THE PAGE URL, THE EMBED LINK, THE PLAYER EMBED LINK
if (preg_match(\'#^http://(www\.|uk\.|fr\.|ie\.|it\.|jp\.|pl\.|es\.|nl\.|br\.|)youtube\.com/(ep\.swf\?id=|view_play_list\?p=|p/)([0-9a-f]{16})(.*?)#i\', trim($data[0]), $matches)) {
$data[0] = $matches[3];
$site = !empty($matches[1]) ? strtolower($matches[1]) : $site;
} else {
// INVALID YT PLAYLIST LINK, SO RETURN ERROR MESSAGE
$tag[\'content\'] = $txt[\'ytplaylist_invalid\'];
return;
}
}
// YTPLAYLIST & URL DISABLED? (INCLUDES THE PRINT VERSION) USE PRINTER FRIENDLY TEXT (WITH PARSED SITE)
if (isset($disabled[\'url\']) && isset($disabled[\'ytplaylist\'])) {
$tag[\'content\'] = $txt[\'ytplaylist\'].\': http://\'.$site.\'youtube.com/view_play_list?p=\'.$data[0];
return;
// ONLY YT PLAYLIST DISABLED? USE LINK INSTEAD (WITH PARSED SITE)
} elseif(isset($disabled[\'ytplaylist\'])) {
$tag[\'content\'] = \'<a href="http://\'.$site.\'youtube.com/view_play_list?p=\'.$data[0].\'" target="_blank">\'.$txt[\'ytplaylist\'].\': http://\'.$site.\'youtube.com/view_play_list?p=\'.$data[0].\'</a>\';
return;
}
// SANITIZE/VALIDATE THE SIZES
// IF EITHER THE WIDTH AND/OR THE HEIGHT IS LESS THAN 100 OR GREATER THAN 800, USE THE DEFAULT YOUTUBE PLAYLIST SIZES
if($data[1] > 800 || $data[1] < 100 || $data[2] > 800 || $data[2] < 100) {
$data[1] = 530;
$data[2] = 370;
} else {
$data[1] = (int) $data[1];
$data[2] = (int) $data[2];
}

'),
'disabled_content' => '$1',
            ),


Bul:
$disabled['email'] = true;
$disabled['flash'] = true;


Sonrasına ekle
// DISABLE YT PLAYLIST IF ON 'PRINTER FRIENDLY PAGE'
$disabled['ytplaylist'] = true;


Post.template.php dosyasında
Bul:
'flash' => array('code' => 'flash',

Öncesine ekle:
'ytplaylist' => array('code' => 'ytplaylist', 'before' => '[ytplaylist]', 'after' => '[/ytplaylist]', 'description' => $txt['ytplaylist']),

Modifications.turkish.php dosyasında
Bul:
?>

Öncesine ekle:
$txt['ytplaylist'] = 'YouTube Playlist';
$txt['ytplaylist_invalid'] = '#Geçersiz YouTube Playlist Linki#';


Ve ekteki resmi
Tema_ismi/images/bbc
dizinine atın..
Title: Re: YouTube Playlist BBCode
Post by: mersindost on November 09, 2007, 03:20:03 PM
Teşekkürler MAN  ;)
Title: Re: YouTube Playlist BBCode (Tüyo)
Post by: Hoochie Coochie Man on December 07, 2007, 03:36:37 AM
Dil dosyalarınızı editlemeye gerek yok, mod sahibi çevirimi pakete koymuştur.. bilginize..
Title: Re: YouTube Playlist BBCode (Tüyo)
Post by: grknzsy on December 07, 2007, 04:57:08 AM
teşekkürler.ama senin verdiğin auto embed modu daha kolayıma geliyor.ben onu kullanıyorum. :) :)
Title: Re: YouTube Playlist BBCode (Tüyo)
Post by: Hoochie Coochie Man on December 07, 2007, 06:01:27 AM
Bu ondan farklı birşey zaten..
Title: Re: YouTube Playlist BBCode (Tüyo)
Post by: dostcan on December 08, 2007, 07:39:20 PM
kodları verdiğin gibi kurdum ama #Geçersiz YouTube Playlist Linki# hatası veriyor birde youtube resmi gözükmüyor birdaha bakarmısın eksik birşy varmı
Title: Re: YouTube Playlist BBCode (Tüyo)
Post by: Hoochie Coochie Man on December 09, 2007, 04:03:41 AM
kodlarda bişi yok, o  zaman sen bunu paket halinde kur  defaulta
eğer başka tema kulalnıyosan Modifications.turkish.php editlemelerini yap
Title: Re: YouTube Playlist BBCode (Tüyo)
Post by: dostcan on December 09, 2007, 05:11:48 PM
default tema kullanıyorum paket halinde dediğin nasıl oluyor
Title: Re: YouTube Playlist BBCode (Tüyo)
Post by: Hoochie Coochie Man on December 09, 2007, 05:48:55 PM
arkadaşım ilk mesajda modun orjinali diye bi link var, indir & kur!
Title: Re: YouTube Playlist BBCode (Tüyo)
Post by: dostcan on December 09, 2007, 06:02:54 PM
tamam yaptım sağol
Title: Re: YouTube Playlist BBCode (Tüyo)
Post by: Hoochie Coochie Man on December 29, 2007, 09:30:16 AM
Quote from: mersindost on November 09, 2007, 03:20:03 PM
Teşekkürler MAN  ;)

Rica ederim MAN..
Title: Re: YouTube Playlist BBCode (Tüyo)
Post by: sessizrock on December 30, 2007, 03:45:44 PM
Subs.php  bu dosyayı bulamadım
Title: Re: YouTube Playlist BBCode (Tüyo)
Post by: grknzsy on December 30, 2007, 04:09:56 PM
Quote from: yamyam on December 30, 2007, 03:45:44 PM
Subs.php  bu dosyayı bulamadım
sources dosyasının içine bak.mutlaka vardır. :)
Title: Re: YouTube Playlist BBCode
Post by: KryC on February 14, 2008, 02:34:28 PM
ben farlı bir tema kullanıorum ve geçersiz link uyarısı alıorum.
youtube linkinin acaba = dan sonraki kısmını falanmı yazıcaz yani öle bi olay varmı..veyatta nasıl yapıcam anlatabilirmisin :S ayrıca ilk msj ındaki link ölümş
Title: Re: YouTube Playlist BBCode
Post by: Hoochie Coochie Man on February 14, 2008, 04:51:41 PM
Resmi siteden modu kaldırmışlar o yüzden linkide kaldırdım. Şansınıza manuelinide yazmışım zamanında :)

Bilmiyorum kullanmadım bunu.. doğrudur ='dan sonra ki kodu ekleyebilirsin, öyle bi dene..
Title: Re: YouTube Playlist BBCode
Post by: BabaHoroz on February 16, 2008, 03:32:03 PM
Aklım tamamen karıştı.Siteme youtubeyi nasıl koyacağım ? Biraz açık yazabilirmisiniz.
Title: Re: YouTube Playlist BBCode
Post by: Hoochie Coochie Man on February 16, 2008, 05:09:34 PM
http://custom.simplemachines.org/mods/index.php?mod=977
Title: Re: YouTube Playlist BBCode
Post by: PUSAT_33 on February 18, 2008, 06:39:06 AM
mannn dostum bu modu paketlerden yükledigimiz zaman forum içerisinde başka sayfaya aktarmadan klip izleyebilecegizmi pekii
Title: Re: YouTube Playlist BBCode
Post by: Hoochie Coochie Man on February 18, 2008, 06:43:41 AM
Quote from: PUSAT_33 on February 18, 2008, 06:39:06 AM
mannn dostum bu modu paketlerden yükledigimiz zaman forum içerisinde başka sayfaya aktarmadan klip izleyebilecegizmi pekii

evet! ama bu konudan çık, senin yerin burası..
http://custom.simplemachines.org/mods/index.php?mod=977
Title: Re: YouTube Playlist BBCode
Post by: PUSAT_33 on February 18, 2008, 07:44:55 AM
onu zaten indirdim zipli şekildeee ma paketlerden yüklerken sürekli hata veriyoooo vee halaa vidyo oynatamıyom forumdaa
Title: Re: YouTube Playlist BBCode
Post by: Hoochie Coochie Man on February 18, 2008, 08:00:34 AM
Sorununu bu başlıkta sorabilirsin
http://www.simplemachines.org/community/index.php?topic=213505.0
Burası ayrı bir konu.
Title: Re: YouTube Playlist BBCode
Post by: ado_sen on March 07, 2008, 08:31:15 AM
çok teşşekur ederim paylasşımınız için:)