View Single Post
  #10  
Old 22nd November 2013, 05:04
grenouille grenouille is offline
Member
 
Join Date: Nov 2013
Canada
Posts: 3
Question Add mods IMDB
Hi. I want to install the IMDB but is not full fonctionnal

The mods is here
http://www.bvlist.com/torrent-trader...er-v2-7-a.html

i want to insert this code but i dont no where



PHP Code:
/////////////////////////////////////////////////////////
require_once('backend/IMDB.class.php');


$IMDB = new IMDB;

   $data = null;
   if ((($data = $TTCache->get("imdb/$id", 86400)) === false) && ($data = $IMDB->get($row['imdb'])))
   {
                $TTCache->Set("imdb/$id", $data, 86400);
   }
  
   if (($data != null) && (is_object($data))):
   ?>
<table class="imdb-table">
<tbody>
   <tr>
       <th class="imdb-th" align="center" colspan="3"><?php echo $data->Title?></th>
   </tr>
   
<?
if ($row["image1"] != "" OR $row["image2"] != "") {
  if (
$row["image1"] != "")
    
$img1 "<tr class='imdb-name'><td class='imdb-photo' rowspan='10'>
    <a href='"
.$site_config["SITEURL"]."/uploads/images/$row[image1]' class='highslide' onclick='return hs.expand(this)'><img src='".$site_config["SITEURL"]."/uploads/images/$row[image1]' border='0'  title='Click to enlarge' style='max-width: 160px;' class='image-resize' /></a>
    </td>"
;
  print(
""$img1 "");
}
?>
   
   <?
          $image 
null;
   if ( 
is_numeric($data->Rating) )
   {
                                
$rating $data->Rating 10;
                                
$rating round($rating 5) * 5;
                          
                                
$image '<img src="http://www.bvlist.com/images/imdb/' $rating '.gif" alt="' $data->Rating'" title="' $data->Rating '" />';
   }
?>
                   <td class="imdb-name first-row"><?php echo T_("IMDB_RATING"); ?></td>
                   <td class="imdb-value first-row">
                   <div class="imdb-score"><?php echo $data->Rating?></div>
                   <div class="imdb-rating"><?php echo $image != null $image $data->Rating?></div>
                   <div class="imdb-voters"><?php echo $data->Votes?> people voted.</div>
                   </td>
                   
   </tr>   
   <tr class="imdb-name">
                   <td class="imdb-name"><?php echo T_("IMDB_RELEASED"); ?></td>
                   <td class="imdb-value"><?php echo $data->Released?></td>   
   </tr>
   <tr class="imdb-name">
                   <td class="imdb-name"><?php echo T_("IMDB_GENRE"); ?></td>
                   <td class="imdb-value"><?php echo $data->Genre?></td>  
   </tr>
   <tr class="imdb-name">
                   <td class="imdb-name"><?php echo T_("IMDB_ACTORS"); ?></td>
                   <td class="imdb-value"><?php echo $data->Actors?></td>
   </tr>   
   <tr class="imdb-name">
                   <td class="imdb-name"><?php echo T_("IMDB_DIRECTOR"); ?></td>
                   <td class="imdb-value"><?php echo $data->Director?></td>
   </tr>
   <tr class="imdb-name">
                   <td class="imdb-name"><?php echo T_("IMDB_WRITER"); ?></td>
                   <td class="imdb-value"><?php echo $data->Writer?></td>
   </tr>
   <tr class="imdb-name">
                   <td class="imdb-name"><?php echo T_("IMDB_RUNTIME"); ?></td>
                   <td class="imdb-value"><?php echo $data->Runtime?></td>    
   </tr>
    <tr class="imdb-name">
                   <td class="imdb-name"><?php echo T_("IMDB_PLOT"); ?></td>
                   <td class="imdb-value"><?php echo $data->Plot?></td>
   </tr>  
    <tr class="imdb-name">
                   <td class="imdb-name"><?php echo T_("IMDB_LINK"); ?></td>
                   <td class="imdb-value"><a class="imdb-link" target="_blank" style="color: blue;" href=<?php echo "".$row['imdb']."";?>><?php echo "".$row['imdb']."";?></a></td>
   </tr>    
</tbody>
</table>
   <br /><br />
   <?php
   
endif;
thanks a lot for your help

Last edited by joeroberts; 22nd November 2013 at 05:15.
Reply With Quote