18th October 2011, 20:23
|
|
Senior Member
|
|
Join Date: Jul 2008
Posts: 37
|
|
Last update from 18.10.2011
Quote:
Originally Posted by Danix
OK people, here we go update for IMDB Trailer
In include/ts_imdb.php
Find
PHP Code:
$regex = '#<span class="video_slate" ><a href="(.*)"#U';
and replace with
PHP Code:
$regex = '#<td id="overview-bottom"><a[^>]* href="(.*)"[^>]*>(.*)<span#U';
If your last line is different replace with this one
PHP Code:
$t_link = '' . '<table width=\'100%\' border=\'0\' align=\'center\' class=\'none\'><tr><td colspan=\'2\' class=\'none\' align=\'left\'><b>' . $title . '</b></td></tr><tr><td class=\'none\' align=\'center\' valign=\'top\'><img src=\'' . $cover_photo_name . '\' border=\'0\' alt=\'' . $title . '\' title=\'' . $title . '\'></td><td class=\'none\' valign=\'top\' align=\'left\'>' . ($alsoknownas[0][1] ? '<b>Also known as:</b> ' . strip_tags (str_replace ('more', '', $alsoknownas[0][1])) . '<br />' : '') . ($officialsites[0][1] ? '<b>Official sites:</b> ' . str_replace ('more', '', $officialsites[0][1]) . '<br />' : '') . ($director[0][2] ? '<b>Director:</b> ' . strip_tags (str_replace ('more', '', $director[0][2])) . '<br />' : '') . ($directors[0][2] ? '<b>Directors:</b> ' . strip_tags (str_replace ('more', '', $directors[0][2])) . '<br />' : '') . ($writer[0][2] ? '<b>Writer:</b> ' . strip_tags (str_replace ('more', '', $writer[0][2])) . '<br />' : '') . ($writers[0][2] ? '<b>Writers:</b> ' . strip_tags (str_replace ('more', '', $writers[0][2])) . '<br />' : '') . ($stars[0][1] ? '<b>Stars:</b> ' . str_replace ('more', '', $stars[0][1]) . '<br />' : '') . '<b>Genre:</b> ' . strip_tags (str_replace ('more', '', $genre[0][1])) . '<br />' . ($releasedate[0][1] ? '<b>Release date:</b> ' . $releasedate[0][1] . '<br />' : '') . '<b>User Rating:</b> ' . strip_tags ($rating[0][1]) . ' (' . $users[0][1] . ' votes)' . ('' . '<br /><b>Language:</b> ' . strip_tags (str_replace ('more', '', $language[0][2])) . '<br /><b>Country:</b> ' . strip_tags (str_replace ('more', '', $country[0][1])) . '<br />') . ($runtime[0][1] ? '<b>Runtime:</b> ' . $runtime[0][1] . '' : '') . ($budget[0][1] ? '<br /><b>Budget:</b> ' . $budget[0][1] . '' : '') . ($soundmix[0][1] ? '<br /><b>Sound mix:</b> ' . strip_tags (str_replace ('more', '', $soundmix[0][1])) . '' : '') . ($aspectratio[0][1] ? '<br /><b>Aspect ratio:</b> ' . $aspectratio[0][1] . '<br />' : '') . '<b>Storyline:</b> ' . strip_tags (str_replace ('more', '', $plot[0][1])) . ($plotkeywords[0][1] ? '<br /><b>Plot keywords:</b> ' . strip_tags (str_replace ('more', '', $plotkeywords[0][1])) . '' : '') . ($taglines[0][1] ? '<br /><b>Taglines:</b> ' . strip_tags (str_replace ('more', '', $taglines[0][1])) . '' : '') . ('' . '<br /><b>IMDb link:</b> <a href=\'' . $t_link . '\' target=\'_blank\' alt=\'' . $title . '\' title=\'' . $title . '\'>' . $t_link . '</a></td></tr></table>' . ($trailer[0][1] ? '<br /><table width=\'100%\' border=\'0\' cellpadding=\'5\' cellspacing=\'0\'><tr><td align=\'center\' class=\'subheader\'><a href=\'' . $trailers . '\' target=\'_blank\' alt=\'' . $title . '\' title=\'' . $title . '\'><img border="0" class="inlineimg" src=\'' . $BASEURL . '/images/trailer.png\'></a></td></tr></table>' : '') . '');
And don't forget to says Thanks
|
This is last update from 18.10.2011
Last edited by Danix; 18th October 2011 at 20:26.
Reason: Include file ts_imdb.php
|