• 28-06-2008, 19:50:34
    #1
    function postParse($html,$type){
    
        if($type=='html'&&preg_match('/fullscreenUrl\s\=\s.*video\_id\=(.*)\&.*\&t\=(.*)\&/i',$html,$matches)){
            $thumbid_arr=explode('&',basename($matches[1]));
            $thumbid=array_shift($thumbid_arr);
            $html=preg_replace('#<div id="watch-checker-div">(.*)to.write\("watch-checker-div"\);#is','<embed src="'.optURL.'videoplayer.swf" width="480" height="395" allowscriptaccess="always" allowfullscreen="true" flashvars="height=395&width=480&file='.proxifyURL('http://youtube.com/get_video?video_id='.$matches[1].'&t='.$matches[2]).'&image='.proxifyURL('http://i.ytimg.com/vi/'.$thumbid.'/0.jpg').'&backcolor=0x000000&frontcolor=0xCCCCCC&lightcolor=0x996600&searchbar=false&type=flv" menu="false" />'.'<script type="text/javascript">',$html);
    
        }
    
        return $html;
    }
    
    ?>
    arkadaşlar yukarıdaki kod un içine
    <a href="http://youtube.com/get_video?video_id='.$matches[1].'&t='.$matches[2]">İndir</a>
    bunu ekleyip nasıl gösterebiliriz.yardım ederseniz çok sevinirim
  • 28-06-2008, 20:09:44
    #2
    Üyeliği durduruldu
    " (çift tırnak ) kullanamazsın yok illede kullanacam diyorsan " ların başına \ işareti koy sorun düzelir
  • 28-06-2008, 21:02:41
    #3
    echo '<a href="http://youtube.com/get_video?video_id='.$matches[1].'&t='.$matches[2]">İndir</a>';
  • 29-06-2008, 11:39:51
    #4
    Üyeliği durduruldu
    doğrusu budur:
    echo "<a href=\"http://youtube.com/get_video?video_id='.$matches[1].'&t='.$matches[2]\">İndir</a>";
  • 29-06-2008, 15:07:12
    #5
    anthen adlı üyeden alıntı: mesajı görüntüle
    doğrusu budur:
    echo "<a href=\"http://youtube.com/get_video?video_id='.$matches[1].'&t='.$matches[2]\">İndir</a>";
    eminmisin o kodun hata vermesi azım tırnaklama hatası.
    Senin yapmaya çalıştığın uygulamanın doğrusu bu şekilde.
    echo "<a href=\"http://youtube.com/get_video?video_id=". $matches[1] ."&t=". $matches[2] ."\">İndir</a>";
    yukarıda yazdığım kodda düzgün çalışır.
  • 04-07-2008, 12:13:22
    #6
    Üyeliği durduruldu
    doğru afedersiniz php kodu o şekilde yaparız.arkadaşın dediği doğrusu.
  • 04-07-2008, 12:25:50
    #7
    ßaron ne diyeyim işi sökmüş +rep
  • 11-07-2008, 10:10:36
    #8
    echo ları açarken " ile açarsanız içinde <a href="siteadi"> kullanamazsınız. kullanmak için \ işaretini kullanmanız gerekir yani <a href=\"siteadi\"> . Ama echo'ları açarken ' ile açarsanız <a href="siteadi"> kullanabilirsiniz.