SMF Sitenize Mp3 Tube Ekleyin... MP3TUBE BBCODE v1.0

Son güncelleme: 21.09.2010 18:31
  • Mod Adı: MP3TUBE BBCODE v1.0
    Orjinal Adres: http://custom.simplemachines.org/mods/index.php?mod=1225
    Uyumlu Sürüm: 1.1.5, 2.0 Beta 3.1 Public
    Versiyon: V.1.1
    Manuel: VAR
    Direk Download: Ekte Verildi

    Aynen Youtube Gibi Bir Mod Arkadaşlar. Fakat Bu mp3tube yani " www.mp3tube.net " sitesindeki müziklerin linklerini kullanarak kodlarını aynen youtube video eklemesi gibi bunu da ekliyorsunuz. türk siteleri var mı bilmiyorum ama yabancı müzikleri bu verdiğim adresten kullanabilirisiniz.

    manuel türkçe çeviriyi az önce ben yaptım. verildiyse özür diliyorum.

    Görünüm:
    noimage

    Default Tema İçin Manuel Kurulum TÜRKÇE


    ./Sources/Subs.php
    Bul
    array(
    'tag' => 'move',
    'before' => '<marquee>',
    'after' => '</marquee>',
    'block_level' => true,
    ),


    Öncesine Ekle
    array(
    'tag' => 'mp3tube',
    'type' => 'unparsed_content',
    'content' => '$1',
    'validate' => create_function('&$tag, &$data, $disabled[/swf2][swf3]
    if(eregi("^[0-9a-fA-F]{32}$", $data)) {
    $data = \'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="\'.
    \'http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" \'.
    \'width="260" height="60" id="mp3tube" align="middle" border="0">\'.
    \'<param name="movie" value="http://www.mp3tube.net/play.swf?id=\'.$data.\'" />\'.
    \'<param name="quality" value="High" /><param name="wmode" value="transparent"><param name="menu" value="false">\'.
    \'<embed src="http://www.mp3tube.net/play.swf?id=\'.$data.\'" quality="High" \'.
    \'width="260" height="60" name="mp3tube" align="middle" allowScriptAccess="sameDomain" \'.
    \'type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" \'.
    \'wmode="transparent" menu="false" /></object>\';
    } else {
    global $txt;
    $data = $txt[\'mp3tube_error\'];
    }
    '),
    'disabled_content' => '$1',
    ),




    ./Sources/Subs-Post.php
    Bul
    // Remove \r's... they're evil!
    $message = strtr($message, array("\r" => ''));

    Öncesine Ekle
    // MP3TUBE MOD - PRE-FETCHES THE TUBE ID (AS THEIR LINKS DON'T USE THE TUBE ID IN THE LINK
    if (preg_match_all('/\[mp3tube\](.*?)\[\/mp3tube\]/i', $message, $links)) {
    // REMOVE ANY DUPLICATES - THEY AREN'T NEEDED
    $links = array_unique($links[1]);
    $search = $replace = array();
    foreach($links as $link) {
    // IF IS NOT A VALID MP3TUBE ID THEN WE NEED TO FIX IT
    if(!eregi('^[0-9a-fA-F]{32}$', $link)) {
    // TRY TO FIX IT THEN
    if (preg_match('/(.*)\/([0-9]{1,6})\/$/Ui', $link, $out)) {
    $id = $out[2];
    $page = file_get_contents('http://www.mp3tube.net/musics/mp3tube/'.$id.'/');
    unset($out);

    // GET THE ID WE REQUIRE
    if (preg_match('/http:\/\/www.mp3tube.net\/play.swf\?id=([0-9a-fA-F]{32})/i', $page, $out)) {
    $search[] = '[mp3tube]'.$link.'[/mp3tube]';
    $replace[] = '[mp3tube]'.$out[1].'[/mp3tube]';
    }
    }
    }
    // TIDY UP
    unset($page);
    }
    // DO THE REPLACING
    $message = str_replace($search, $replace, $message);
    // TIDY UP
    unset($search,$replace,$links,$link,$out);
    }
    // END OF MP3TUBE MODIFICATION




    ./Themes/default/languages/Modifications.turkish.php
    Bul
    ?>

    Öncesine Ekle
    $txt['mp3tube'] = 'Mp3Tube';
    $txt['mp3tube_error'] = '#Gecersiz Mp3tube linki!#';




    ./Themes/default/Post.template.php
    Bul
    'list' => array('code' => 'list[/swf2][swf3]before' => '[list]\n[li][/swf2][swf3]after' => '[/li]\n[li][/li]\n[/list][/swf2][swf3]description' => $txt[261]),

    Sonrasına Ekle
    'mp3tube' => array('code' => 'mp3tube[/swf2][swf3]before' => '[mp3tube][/swf2][swf3]after' => '[/mp3tube]','description' => $txt['mp3tube']),



    En son olarak aşağıda vermiş olduğum linkdeki resimi de
    "mp3tube.gif" resimini >>>>>>> "./Themes/default/images/bbc" bu dizinde bbc klasörünün içine atın.




    Ay Işığı Teması İçin

    ./Sources/Subs.php
    Bul
    array(
    'tag' => 'move',
    'before' => '<marquee>',
    'after' => '</marquee>',
    'block_level' => true,
    ),


    Öncesine Ekle
    array(
    'tag' => 'mp3tube',
    'type' => 'unparsed_content',
    'content' => '$1',
    'validate' => create_function('&$tag, &$data, $disabled[/swf2][swf3]
    if(eregi("^[0-9a-fA-F]{32}$", $data)) {
    $data = \'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="\'.
    \'http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" \'.
    \'width="260" height="60" id="mp3tube" align="middle" border="0">\'.
    \'<param name="movie" value="http://www.mp3tube.net/play.swf?id=\'.$data.\'" />\'.
    \'<param name="quality" value="High" /><param name="wmode" value="transparent"><param name="menu" value="false">\'.
    \'<embed src="http://www.mp3tube.net/play.swf?id=\'.$data.\'" quality="High" \'.
    \'width="260" height="60" name="mp3tube" align="middle" allowScriptAccess="sameDomain" \'.
    \'type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" \'.
    \'wmode="transparent" menu="false" /></object>\';
    } else {
    global $txt;
    $data = $txt[\'mp3tube_error\'];
    }
    '),
    'disabled_content' => '$1',
    ),




    ./Sources/Subs-Post.php
    Bul
    // Remove \r's... they're evil!
    $message = strtr($message, array("\r" => ''));

    Öncesine Ekle
    // MP3TUBE MOD - PRE-FETCHES THE TUBE ID (AS THEIR LINKS DON'T USE THE TUBE ID IN THE LINK
    if (preg_match_all('/\[mp3tube\](.*?)\[\/mp3tube\]/i', $message, $links)) {
    // REMOVE ANY DUPLICATES - THEY AREN'T NEEDED
    $links = array_unique($links[1]);
    $search = $replace = array();
    foreach($links as $link) {
    // IF IS NOT A VALID MP3TUBE ID THEN WE NEED TO FIX IT
    if(!eregi('^[0-9a-fA-F]{32}$', $link)) {
    // TRY TO FIX IT THEN
    if (preg_match('/(.*)\/([0-9]{1,6})\/$/Ui', $link, $out)) {
    $id = $out[2];
    $page = file_get_contents('http://www.mp3tube.net/musics/mp3tube/'.$id.'/');
    unset($out);

    // GET THE ID WE REQUIRE
    if (preg_match('/http:\/\/www.mp3tube.net\/play.swf\?id=([0-9a-fA-F]{32})/i', $page, $out)) {
    $search[] = '[mp3tube]'.$link.'[/mp3tube]';
    $replace[] = '[mp3tube]'.$out[1].'[/mp3tube]';
    }
    }
    }
    // TIDY UP
    unset($page);
    }
    // DO THE REPLACING
    $message = str_replace($search, $replace, $message);
    // TIDY UP
    unset($search,$replace,$links,$link,$out);
    }
    // END OF MP3TUBE MODIFICATION




    ./Themes/ayisigi/languages/Modifications.turkish.php
    Bul
    ?>

    Öncesine Ekle
    $txt['mp3tube'] = 'Mp3Tube';
    $txt['mp3tube_error'] = '#Gecersiz Mp3tube linki!#';




    ./Themes/ayisigi/Post.template.php
    Bul
    'list' => array('code' => 'list[/swf2][swf3]before' => '[list]\n[li][/swf2][swf3]after' => '[/li]\n[li][/li]\n[/list][/swf2][swf3]description' => $txt[261]),

    Sonrasına Ekle
    'mp3tube' => array('code' => 'mp3tube[/swf2][swf3]before' => '[mp3tube][/swf2][swf3]after' => '[/mp3tube]','description' => $txt['mp3tube']),



    En son olarak aşağıda vermiş olduğum linkdeki resimi de
    "mp3tube.gif" resimini >>>>>>> "./Themes/ayisigi/images/bbc" bu dizinde bbc klasörünün içine atın.

    http://rapidshare.com/files/135427351/mp3tube.gif.html

    Download: http://rapidshare.com/files/135427430/Mp3tube_BBCode.zip.html
#07.08.2008 03:46 0 0 0
  • inşllh güzel bi mod olur
#11.10.2008 01:59 0 0 0
  • saol işime yarayacak
#03.12.2008 16:47 0 0 0
  • link ölmus
#22.03.2009 00:08 0 0 0
  • link ölmüş
#02.05.2009 10:01 0 0 0
  • baya uzun
#21.09.2010 18:31 0 0 0