• 15-08-2007, 19:34:06
    #28
    Üyeliği durduruldu
    valla dediğim gibi bilgim pek fazla değil phpde.

    siteye oyunu flash dosyasını gösteren kodlar yani yukarıda verdiğim kodları düzenlemeye çalıştım ama hiçbir sonuç alamadım hepsinde hata aldım.

    saho şimdi denediklerimi yazsam saçmalamış olurum sizlerin bilgisinin yanında.


    dediğim gibi oyun sitemde swfleri yürüten kodlar bunlar

    <object width="'.$row['width'].'" height="'.$row['height'].'">
    <param name="movie" value="'.$row['url'].'">
    <embed src="'.$row['url'].'" width="'.$row['width'].'" height="'.$row['height'].'">
    </embed>
    </object>


    bunlara nasıl bir işlemle editlemeyle bunu kurabilirim biri ücretli yada hayrına yardım ederse sevinirim

    saygılar
  • 15-08-2007, 23:32:17
    #29
    Üyeliği durduruldu
    <script type="text/javascript">
    function reklami_kapa() {
     flash_en  = \'432\'; // flash dosyanın genişliği
     flash_boy  = \'344\'; // Flash Dosyanın Yüksekliği
     swf_yolu  = \'http://www.youtube.com/v/8XuUvTQA8tI&autoplay=1\'; // Flash Dosyanın Yolu
     flash_objemiz = \'\';
     flash_objemiz = flash_objemiz+\'<object width="'.$row['width'].'" height="'.$row['height'].'">\';
     flash_objemiz = flash_objemiz+\'<param name="movie" value="'.$row['url'].'">\';
     flash_objemiz = flash_objemiz+\'<embed src="'.$row['url'].'" width="'.$row['width'].'" height="'.$row['height'].'">\';
    
     flash_objemiz = flash_objemiz+'</embed>';
     flash_objemiz = flash_objemiz+'</object>';
     document.getElementById('flash_alani').innerHTML = flash_objemiz;
    }
    setTimeout('reklami_kapa()',12000); // her 1000 = 1 saniyedir.
    </script>
    <div id="flash_alani">
    Geçici Reklam Alanı
    </div>
  • 24-08-2007, 22:45:52
    #30
    Üyeliği durduruldu
    saho denedim

    bu hatayı alıyorum flash embed kodları yerine senin verdiğin hazırladığın kodu yerleştirince

    Alıntı
    Parse error: syntax error, unexpected '/' in /home/kuladım/public_html/view.php on line 26
    26 satırı kastediyor sanırım hata.

    26 satır şu şekilde:

    Alıntı
    flash_objemiz = flash_objemiz+'</embed>';
  • 24-08-2007, 22:56:33
    #31
    Üyeliği durduruldu
    view.php yi komple yazarmısın buraya
  • 24-08-2007, 23:02:44
    #32
    Üyeliği durduruldu
    view.php tamamı (sakın tamamı kalın diye banlamayın beni yazı tipi öyle )

    <?php
    include ('config.php');
      $con = mysql_connect("$server","$username","$password");
    if (!$con)
      {
      die('Could not connect: ' . mysql_error());
      }
    mysql_select_db("$database", $con); 
     
    $sql = mysql_query("SELECT * FROM ava_games WHERE id=".$_GET['id']."");
    while($row = mysql_fetch_array($sql)){
    echo '<strong>'.$_GET['mess'].'</strong><br>';
    if ($row['import'] == 1) {
    echo '<object width="'.$row['width'].'" height="'.$row['height'].'">
    <param name="movie" value="'.$site_url.'/games/'.$row['url'].'.swf">
    <embed src="'.$site_url.'/games/'.$row['url'].'.swf" width="'.$row['width'].'" height="'.$row['height'].'">
    </embed>
    </object>';
    }
    else {echo '<object width="'.$row['width'].'" height="'.$row['height'].'">
    <param name="movie" value="'.$row['url'].'">
    <embed src="'.$row['url'].'" width="'.$row['width'].'" height="'.$row['height'].'">
    </embed>
    </object>';}
    echo '<div class="style3" id=itemheader>OYUN HAKKINDA BİLGİLER</div>';
    if ($adsense == 1) {
    include ('adsense/banner.php');}
    echo '<table width="95%" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td width="47.5%"><b><div align=left><u>OYUNUN ADI:</u></b><br>'.$row['name'].'</div><br><b><div align=left><u>OYUN BİLGİSİ:</u></b><br>'.$row['description'].'</div><div align=left><br><br>' ;
     if ($row['import'] == 1) {
     echo '<a href="'.$site_url.'/includes/full_screen.php?url='.$site_url.'/games/'.$row['url'].'.swf&id='.$_GET['id'].'"><img src="'.$site_url.'/images/full_screen2.PNG" width="100" height="18" /></a>';}
     else {echo '<a href="'.$site_url.'/includes/full_screen.php?url='.$row['url'].'&id='.$_GET['id'].'"><img src="'.$site_url.'/images/full_screen2.PNG" width="100" height="18" /></a>';}
     echo'<br><a href="'.$site_url.'/index.php?task=sendtofriend&id='.$row['id'].'"><img src="'.$site_url.'/images/taf2.PNG" width="100" height="18" /></a></div></td>
        <td>';
     $sqla = mysql_query("SELECT * FROM ava_games WHERE published=1 ORDER BY rand() LIMIT 3");
     }
     echo '<table border="0" width="98%">
       <tr width="47.5%"><b><div align=left>&nbsp;</b>';
    while($row = mysql_fetch_array($sqla)){
    if (strlen($row['description']) > 60) {
    $description = substr($row['description'], 0, 60)."...";}
    else {
    $description = $row['description'];
    }
    if (strlen($row['name']) > 23) {
    $name = substr($row['name'], 0, 23)."...";}
    else {
    $name = $row['name'];
    }
    $abcd= $row['name'];
    $abcd = str_replace (" ", "-", $abcd); 
    if ($seo_on == 0) {$url = ''.$site_url.'/index.php?task=view&id='.$row['id'].'';}
    else {$url = ''.$site_url.'/view/'.$row['id'].'/'.$abcd.'.htm';}
     echo '<div align=right>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="back">
      <tr>
        <td class="td3" width="1%"><div align="center"><a href="'.$url.'">';
     if ($row['import'] == 1) {
     echo '<img src="'.$site_url.'/games/images/'.$row['url'].'.png" width="'.$image_width.'" height="'.$image_height.'" alt="" />';}else {echo '<img src="'.$row['image'].'" width="'.$image_width.'" height="'.$image_height.'" alt="" />';}
     echo '</a></div></td>
        <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td class="td1">&nbsp;<a href="'.$url.'">'.$name.'</a></td>
            </tr>
          <tr>
            <td width="70%" valign="top" class="td5">'.$description.'</td>';
      $link = $row['id'];    
    $total_results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM ava_comments WHERE link_id='$link'"),0);
        echo ' <tr>
            <td class="td2">Times Played: '.$row['hits'].' </td>
            </tr>  
        </table></td>
      </tr>
      </tr>
    </table><div><br>'; }
     echo '</tr>';
     echo '</td>
      </tr>
    </table>';
    if ($adsense == 1) {
    include ('adsense/banner.php');}
     echo '<br><br>';
  • 25-08-2007, 00:40:35
    #33
    Üyeliği durduruldu
       <?php
       include ('config.php');
       $con = mysql_connect("$server","$username","$password");
       if (!$con)
       {
           die('Could not connect: ' . mysql_error());
       }
       mysql_select_db("$database", $con);
    
       $sql = mysql_query("SELECT * FROM ava_games WHERE id=".$_GET['id']."");
       while($row = mysql_fetch_array($sql)){
           echo '<strong>'.$_GET['mess'].'</strong><br>';
           if ($row['import'] == 1) {
               echo '<object width="'.$row['width'].'" height="'.$row['height'].'">
    <param name="movie" value="'.$site_url.'/games/'.$row['url'].'.swf">
    <embed src="'.$site_url.'/games/'.$row['url'].'.swf" width="'.$row['width'].'" height="'.$row['height'].'">
    </embed>
    </object>';
           }
           else {echo '<object width="'.$row['width'].'" height="'.$row['height'].'">
    <param name="movie" value="'.$row['url'].'">
    <embed src="'.$row['url'].'" width="'.$row['width'].'" height="'.$row['height'].'">
    </embed>
    </object>';}
           echo '<div class="style3" id=itemheader>OYUN HAKKINDA BİLGİLER</div>';
           if ($adsense == 1) {
               include ('adsense/banner.php');}
               echo '<table width="95%" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td width="47.5%"><b><div align=left><u>OYUNUN ADI:</u></b><br>'.$row['name'].'</div><br><b><div align=left><u>OYUN BİLGİSİ:</u></b><br>'.$row['description'].'</div><div align=left><br><br>' ;
               if ($row['import'] == 1) {
                   echo '<a href="'.$site_url.'/includes/full_screen.php?url='.$site_url.'/games/'.$row['url'].'.swf&id='.$_GET['id'].'"><img src="'.$site_url.'/images/full_screen2.PNG" width="100" height="18" /></a>';}
                   else {echo '<a href="'.$site_url.'/includes/full_screen.php?url='.$row['url'].'&id='.$_GET['id'].'"><img src="'.$site_url.'/images/full_screen2.PNG" width="100" height="18" /></a>';}
                   echo'<br><a href="'.$site_url.'/index.php?task=sendtofriend&id='.$row['id'].'"><img src="'.$site_url.'/images/taf2.PNG" width="100" height="18" /></a></div></td>
        <td>';
                   $sqla = mysql_query("SELECT * FROM ava_games WHERE published=1 ORDER BY rand() LIMIT 3");
       }
       echo '<table border="0" width="98%">
       <tr width="47.5%"><b><div align=left>&nbsp;</b>';
       while($row = mysql_fetch_array($sqla)){
           if (strlen($row['description']) > 60) {
               $description = substr($row['description'], 0, 60)."...";}
               else {
                   $description = $row['description'];
               }
               if (strlen($row['name']) > 23) {
                   $name = substr($row['name'], 0, 23)."...";}
                   else {
                       $name = $row['name'];
                   }
                   $abcd= $row['name'];
                   $abcd = str_replace (" ", "-", $abcd);
                   if ($seo_on == 0) {$url = ''.$site_url.'/index.php?task=view&id='.$row['id'].'';}
                   else {$url = ''.$site_url.'/view/'.$row['id'].'/'.$abcd.'.htm';}
                   echo '<div align=right>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="back">
      <tr>
        <td class="td3" width="1%"><div align="center"><a href="'.$url.'">';
                   if ($row['import'] == 1) {
                       echo '<img src="'.$site_url.'/games/images/'.$row['url'].'.png" width="'.$image_width.'" height="'.$image_height.'" alt="" />';}else {echo '<img src="'.$row['image'].'" width="'.$image_width.'" height="'.$image_height.'" alt="" />';}
                       echo '</a></div></td>
        <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td class="td1">&nbsp;<a href="'.$url.'">'.$name.'</a></td>
            </tr>
          <tr>
            <td width="70%" valign="top" class="td5">'.$description.'</td>';
                       $link = $row['id'];
                       $total_results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM ava_comments WHERE link_id='$link'"),0);
                       echo ' <tr>
            <td class="td2">Times Played: '.$row['hits'].' </td>
            </tr>  
        </table></td>
      </tr>
      </tr>
    </table><div><br>'; }
                       echo '</tr>';
                       echo '</td>
      </tr>
    </table>';
                       if ($adsense == 1) {
                           include ('adsense/banner.php');}
                           echo '<br><br>';
     ?>
    zend bu kodlarda hiç bir hata bulamadı
  • 25-08-2007, 00:45:34
    #34
    Üyeliği durduruldu
    zend kim yaw o program uyduruyordur

    şaka bir yana olmayacak sanırım



  • 25-08-2007, 01:54:32
    #35
    Üyeliği durduruldu
       <?php
       include ('config.php');
       $con = mysql_connect("$server","$username","$password");
       if (!$con)
       {
           die('Could not connect: ' . mysql_error());
       }
       mysql_select_db("$database", $con);
    
       $sql = mysql_query("SELECT * FROM ava_games WHERE id=".$_GET['id']."");
       while($row = mysql_fetch_array($sql)){
           echo '<strong>'.$_GET['mess'].'</strong><br>';
           if ($row['import'] == 1) {
               echo '<object width="'.$row['width'].'" height="'.$row['height'].'">
    <param name="movie" value="'.$site_url.'/games/'.$row['url'].'.swf">
    <embed src="'.$site_url.'/games/'.$row['url'].'.swf" width="'.$row['width'].'" height="'.$row['height'].'">
    </embed>
    </object>';
           }
           else {echo '<script type="text/javascript">
    function reklami_kapa() {
     flash_en  = \'432\'; // flash dosyanın genişliği
     flash_boy  = \'344\'; // Flash Dosyanın Yüksekliği
     swf_yolu  = \'http://www.youtube.com/v/8XuUvTQA8tI&autoplay=1\'; // Flash Dosyanın Yolu
     flash_objemiz = \'\';
     flash_objemiz = flash_objemiz+\'<object width="'.$row['width'].'" height="'.$row['height'].'">\';
     flash_objemiz = flash_objemiz+\'<param name="movie" value="'.$row['url'].'">\';
     flash_objemiz = flash_objemiz+\'<embed src="'.$row['url'].'" width="'.$row['width'].'" height="'.$row['height'].'">\';
     flash_objemiz = flash_objemiz+\'</embed>\';
     flash_objemiz = flash_objemiz+\'</object>\';
     document.getElementById(\'flash_alani\').innerHTML = flash_objemiz;
    }
    setTimeout(\'reklami_kapa()\',12000); // her 1000 = 1 saniyedir.
    </script> <div id="flash_alani">
    Geçici Reklam Alanı
    </div> ';}
           echo '<div class="style3" id=itemheader>OYUN HAKKINDA BİLGİLER</div>';
           if ($adsense == 1) {
               include ('adsense/banner.php');}
               echo '<table width="95%" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td width="47.5%"><b><div align=left><u>OYUNUN ADI:</u></b><br>'.$row['name'].'</div><br><b><div align=left><u>OYUN BİLGİSİ:</u></b><br>'.$row['description'].'</div><div align=left><br><br>' ;
               if ($row['import'] == 1) {
                   echo '<a href="'.$site_url.'/includes/full_screen.php?url='.$site_url.'/games/'.$row['url'].'.swf&id='.$_GET['id'].'"><img src="'.$site_url.'/images/full_screen2.PNG" width="100" height="18" /></a>';}
                   else {echo '<a href="'.$site_url.'/includes/full_screen.php?url='.$row['url'].'&id='.$_GET['id'].'"><img src="'.$site_url.'/images/full_screen2.PNG" width="100" height="18" /></a>';}
                   echo'<br><a href="'.$site_url.'/index.php?task=sendtofriend&id='.$row['id'].'"><img src="'.$site_url.'/images/taf2.PNG" width="100" height="18" /></a></div></td>
        <td>';
                   $sqla = mysql_query("SELECT * FROM ava_games WHERE published=1 ORDER BY rand() LIMIT 3");
       }
       echo '<table border="0" width="98%">
       <tr width="47.5%"><b><div align=left>&nbsp;</b>';
       while($row = mysql_fetch_array($sqla)){
           if (strlen($row['description']) > 60) {
               $description = substr($row['description'], 0, 60)."...";}
               else {
                   $description = $row['description'];
               }
               if (strlen($row['name']) > 23) {
                   $name = substr($row['name'], 0, 23)."...";}
                   else {
                       $name = $row['name'];
                   }
                   $abcd= $row['name'];
                   $abcd = str_replace (" ", "-", $abcd);
                   if ($seo_on == 0) {$url = ''.$site_url.'/index.php?task=view&id='.$row['id'].'';}
                   else {$url = ''.$site_url.'/view/'.$row['id'].'/'.$abcd.'.htm';}
                   echo '<div align=right>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="back">
      <tr>
        <td class="td3" width="1%"><div align="center"><a href="'.$url.'">';
                   if ($row['import'] == 1) {
                       echo '<img src="'.$site_url.'/games/images/'.$row['url'].'.png" width="'.$image_width.'" height="'.$image_height.'" alt="" />';}else {echo '<img src="'.$row['image'].'" width="'.$image_width.'" height="'.$image_height.'" alt="" />';}
                       echo '</a></div></td>
        <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td class="td1">&nbsp;<a href="'.$url.'">'.$name.'</a></td>
            </tr>
          <tr>
            <td width="70%" valign="top" class="td5">'.$description.'</td>';
                       $link = $row['id'];
                       $total_results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM ava_comments WHERE link_id='$link'"),0);
                       echo ' <tr>
            <td class="td2">Times Played: '.$row['hits'].' </td>
            </tr>  
        </table></td>
      </tr>
      </tr>
    </table><div><br>'; }
                       echo '</tr>';
                       echo '</td>
      </tr>
    </table>';
                       if ($adsense == 1) {
                           include ('adsense/banner.php');}
                           echo '<br><br>';
     ?>
    ben aşağıdaki flash çıktısı yani başka siteden flashlar için olan yere kodu ekledim
    diğer senin siteden yayınladığın flashlar içinde bakarak yaparsın galiba
  • 25-08-2007, 10:37:55
    #36
    Üyeliği durduruldu
    saho senden Allah gani gani razı olsun halloldu.

    son verdiğin kodları aynen yazdım halloldu. çok sağolasın.