ben hostcudan acmasını talep edim tabi eger onlarda açmayı uygun görürse..
indexp.php dosyasında türkçe karekterleri temizlemek için bir degişiklik yaptım
ama onu dogru yaptıgıma eminim ordanda hata gelmez..
index.php (aşagıdaki kodların ustune ve altina php kod icermeyen html icerik eklemişim ve burda fazla yer kaplamasın diye onları sildim)
<?
require_once('ayar.php');
$aranan=$_GET['s'];
$q=isoyu_utf_yap($aranan);
$w = $_GET['w'];
$a = $_GET['a'];
if($q){
$q = ereg_replace('[[:space:]]', '+', trim($q));
$old=array("ü","ÅŸ","Å","Ä","ÄŸ","İ","ı","Ç","ç","Ö","ö", "'" );
$new=array("ü","s","s","g","g","i","i","c","c","o","o" ," " );
//$q = str_replace( $old, $new, $q );
$i = 100;
if(!$_GET['p']) $_GET['p']=1;
$start=((intval($_GET['p'])-1)*50)+1;
$feedURL = "http://anonymouse.org/cgi-bin/anon-www.cgi/http://gdata.youtube.com/feeds/api/videos?q=".urlencode($q)."&orderby=rating&max-results=12&start-index=".$start;
$varmi=mysql_num_rows(mysql_query("Select * from tags where tag='$aranan'"));
if($varmi):
mysql_query("UPDATE tags SET hit=hit+1 WHERE tag='$aranan'");
else:
mysql_query("INSERT INTO tags SET tag='$aranan', hit=1");
endif;
// read feed into SimpleXML object
$sxml = @simplexml_load_file(($feedURL));
//$sxml = mb_convert_encoding((string) $sxml , 'UTF-8' , 'ISO-8859-9');
// get summary counts from opensearch: namespace
$counts = @$sxml->children('http://a9.com/-/spec/opensearchrss/1.0/');
$total = $counts->totalResults;
$startOffset = $counts->startIndex;
$endOffset = ($startOffset-1) + $counts->itemsPerPage;
foreach ($sxml->entry as $entry) {
// get nodes in media: namespace for media information
$media = $entry->children('http://search.yahoo.com/mrss/');
// get video player URL
$attrs = $media->group->player->attributes();
$watch = $attrs['url'];
$watch=str_replace('http://www.youtube.com/watch?v=','index.php?w=',$watch);
$kod1=str_replace('index.php?w=','',$watch);
$kod=str_replace('&feature=youtube_gdata','',$kod1);
// get video thumbnail
$attrs = $media->group->thumbnail[0]->attributes();
$thumbnail = $attrs['url'];
// get <yt:duration> node for video length
$yt = $media->children('http://gdata.youtube.com/schemas/2007');
$attrs = $yt->duration->attributes();
$length = $attrs['seconds'];
$mins = floor ($length / 60);
$secs = $length % 60;
// get <gd:rating> node for video ratings
// $gd = $entry->children('http://schemas.google.com/g/2005');
if ($gd->rating) {
$attrs = $gd->rating->attributes();
$rating = @$attrs['average'];
} else {
$rating = 0;
}
// print record
// echo "<tr><td colspan=\"2\"></td></tr>\n";
// echo "<tr>\n";
// echo "<td><a href=\"{$watch}\"><img src=\"$thumbnail\"/></a></td>\n";
// echo "<td><a href=\"{$watch}\">
if ($tip=='muzik'){
echo '<br /><a href="'.trsil($kod).'-'.trsil($media->group->title).'.html">';
echo $media->group->title.' - '. $mins.':'.$secs .'</a>';
}else{?>
<div style="height:160px; overflow:hidden; float:left; width:143px;">
<div style="float:left; border: #DDDDDD 1px solid;">
<a href="<?=$kod.'-'.trsil(utf8_duzelt($media->group->title)).'.html'?>" title="<?=$media->group->title.' izle'?>">
<img src="<?=$thumbnail?>" alt="<?=utf8_duzelt($media->group->title);?>" width="120" height="90" border="0" /></a></div>
<div style="text-align:center; margin-top:100px;">
<a href="<?=$kod.'-'.trsil(utf8_duzelt($media->group->title)).'.html'?>" style="TEXT-DECORATION: none;" title="<?=utf8_duzelt($media->group->title).' izle'?>">
<?=utf8_duzelt($media->group->title);?></a></div>
</div>
<?
//echo '<table bgcolor="#FF0000" cellspacing="10" width="470" height="150" border="0" cellpadding="0">';
//echo '<tr>';
//echo '<td width="18%"><a href="'.$watch.'"><img src="http://i.ytimg.com/vi/'.$kod.'/0.jpg" width="120" height="120" border="0"/></a></td>';
//echo '<td width="82%"><a href="'.$watch.'&a='.$media->group->title.'">'.$media->group->title.'</a></td>';
//echo '</tr>';
// echo '</table>';
// echo '<a href="'.$watch.'">';
// echo $media->group->title.' - '. $mins.':'.$secs .'</a>';
}
}
echo '<div style="clear:both; overflow:hidden; height:4px;"></div>';
$next=intval($_GET['p'])+1;
$prev=intval($_GET['p'])-1;
echo '<table height="30px" width="100%" bgcolor="#F8F0CF" style="font-family: Tahoma, Arial; font-size: 9pt;"><tr><td>';
if(intval($_GET['p'])>1){
echo '<a href="?s='.urlencode($q).'&p='.$prev.'" style="TEXT-DECORATION: none;">';
echo '«« Önceki Sayfa</a> - ';
}
echo '<a href="?s='.urlencode($q).'&p='.$next.'" style="TEXT-DECORATION: none;">';
echo 'Sonraki Sayfa »»</a>';
echo '</td></tr></table>';
} else if($a=="about")
{
?>
---<?
}
else if($a=="international")
{
?>---
<?
}
else if($a=="yourself")
{
?>
---
<?
}
else if($w) {?>
<iframe id="player" scrolling="no" allowtransparency="true" style="border:0;background-color:transparent;width:600px;height:610px" src="player.php?w=<?=$w ?>&a=<?=$a ?>" frameborder="0"></iframe><script type="text/javascript">document.getElementById("player").allowTransparency = true;</script>
<?}else {?>
<?} ?>bide burdaki degisiklik çalışması için ayar.php dosyasınada şunları ekledim
function isoyu_utf_yap($m) {
$m = str_replace("ç","ç",$m);
$m = str_replace("Ç","Ç",$m);
$m = str_replace("ı","ı",$m);
$m = str_replace("İ","İ",$m);
$m = str_replace("ğ","ÄŸ",$m);
$m = str_replace("Ğ","Ä",$m);
$m = str_replace("Ş","Å",$m);
$m = str_replace("ş","ÅŸ",$m);
$m = str_replace("ö","ö",$m);
$m = str_replace("Ö","Ö",$m);
$m = str_replace("ü","ü",$m);
$m = str_replace("Ü","Ü",$m);
return $m;
}
?>Bide ben farkları görmek için hem sizin verdiginiz dosyalatla hemde kendime uyarladıgım dosyalarla 2 tane video bölümü oluşturdum. isterseniz onlarada gör atın ikiside aynı sorunu veriyor..
Benim uyarladıgım: http://www.olaysohbet.com/video/index.php
Sizin orjinal dosyalarınız: http://www.olaysohbet.com/vido/index.php
ilginiz için çok teşekkür ediyorum
kusura bakmayın sizide yoruyorum bu durum beni üzüyor
saygılarımla