|
#1
|
|||
|
|||
imdb mod
Ill need feed back on this to see if its working so i can make it alot better for you all
|
#2
|
||||
|
||||
That code looks pretty much the same as what I have used. The only change I could recommend to folks using the OMDB is the star rating system. If a movie does not have a rating, it will break the code when it gets to the star rating because I dont think N/A is a variable that is passed by OMDB, or something like that. I dont remember exactly, but it broke non-rated movies. I just removed the images and allowed it to display text rather than the star rating images. You will see where I commented the original code near the bottom. Just wanted to post in case it is helpful to someone :)
here is my torrents-details.php Code:
if ( is_object($_data) ): ?> <fieldset class="download"> <legend><b><?php echo T_("IMDB_SHORT"); ?> - <?php echo $_data->Title; ?></b></legend> <table border="0" cellpadding="3" cellspacing="2" width="100%"> <tr> <td width="230"><img src="<?php echo $_data->Poster; ?>" class="youtube" alt="<?php echo $_data->Title; ?>" title="<?php echo $_data->Title; ?>" height="317px" width="214px" /></td> <td valign="top"> <b><?php echo T_("IMDB_LINK"); ?></b><br /> <a href="<?php echo $row['imdb']; ?>" target="_blank"><?php echo htmlspecialchars($row['imdb']); ?></a><br /><br /> <b><?php echo T_("IMDB_ID"); ?></b><br /> <?php echo $_data->imdbID; ?><br /><br /> <b><?php echo T_("IMDB_RATED"); ?></b><br /> <?php echo $TTIMDB->getRated( $_data->Rated ); ?><br /><br /> <b><?php echo T_("IMDB_RELEASED"); ?></b><br /> <?php echo $TTIMDB->getReleased($_data->Released); ?><br /><br /> <b><?php echo T_("IMDB_YEAR"); ?></b><br /> <?php echo $_data->Year; ?><br /><br /> <b><?php echo T_("IMDB_RUNTIME"); ?></b><br /> <?php echo $_data->Runtime; ?><br /><br /> <b><?php echo T_("IMDB_GENRE"); ?></b><br /> <?php echo $_data->Genre; ?><br /><br /> <b><?php echo T_("IMDB_DIRECTOR"); ?></b><br /> <?php echo $_data->Director; ?><br /><br /> <b><?php echo T_("IMDB_WRITER"); ?></b><br /> <?php echo $_data->Writer; ?><br /><br /> <b><?php echo T_("IMDB_ACTORS"); ?></b><br /> <?php echo $_data->Actors; ?><br /><br /> <b><?php echo T_("IMDB_PLOT"); ?></b><br /> <?php echo $_data->Plot; ?> </td> <?php // if (($rating = $TTIMDB->getRating($_data->imdbRating)) !== N/A): ?> <td valign="top" align="right"> <?php /*?> <?php echo $rating; ?><br /> <?php */?> <b><?php echo T_("IMDB_RATING"); ?></b> <?php echo $_data->imdbRating; ?><br /> <br /> <b><?php echo T_("IMDB_VOTES"); ?></b> <?php echo $_data->imdbVotes; ?> Last edited by MicroMonkey; 12th January 2019 at 09:06. |
#3
|
|||
|
|||
Quote:
TORRENTTRADER 2.09 Special Edition - PHP 5.6.30 Max - MYSQL 5.5.55 Max - Apache Version: Apache/2.4.25+ its good? Last edited by z3ro; 1st February 2019 at 23:14. |
Tags |
imdb , mod |
|
|