Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Template Shares (http://www.bvlist.com/forumdisplay.php?f=26)
-   -   [FIX] IMDB.com (http://www.bvlist.com/showthread.php?t=7049)

mmisu120000 30th September 2011 20:43

[FIX] IMDB.com
 
How to fix the IMDB rating:

in ts_imdb.php, find :
PHP Code:

$regex '#<span class="rating-rating">(.*)<span>#U'

(line 134)

and replace with this one:
PHP Code:

$regex '#<span itemprop="ratingValue">(.*)<span>#U'


Danix 30th September 2011 23:47

Little update from me:

Line 134
PHP Code:

$regex '#<span class="rating-rating">(.*)<span>#U'

replace with:
PHP Code:

$regex '#<span itemprop="ratingValue">(.*)</a>#U'

and line 136
PHP Code:

$regex '#href="ratings"[^>]*>(.*) votes</a>#U'

replace with:
PHP Code:

$regex '#itemprop="ratingCount"[^>]*>(.*)</span>#U'


n3v0n3r 1st October 2011 00:11

Thanks
 
Thank you so much! <3

Danix 1st October 2011 00:34

Update for Stars
 
Little update for Stars
Find line 113, after line paste this:

PHP Code:

$regex '#<div class="txt-block"><h4 class="inline">Stars:</h4>(.*)</div>#U';
  
preg_match_all ($regex$text$starsPREG_SET_ORDER); 

find line 146

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])) . '' '') . ($officialsites[0][1] ? '<b>Official sites:</b> ' str_replace ('more'''$officialsites[0][1]) . '' '') . ($director[0][2] ? '<b>Director:</b> ' strip_tags (str_replace ('more'''$director[0][2])) . '' '') . ($directors[0][2] ? '<b>Directors:</b> ' strip_tags (str_replace ('more'''$directors[0][2])) . '' '') . ($writer[0][2] ? '<b>Writer:</b> ' strip_tags (str_replace ('more'''$writer[0][2])) . '' '') . ($writers[0][2] ? '<b>Writers:</b> ' strip_tags (str_replace ('more'''$writers[0][2])) . '' '') . '<b>Genre:</b> ' strip_tags (str_replace ('more'''$genre[0][1])) . '' . ($releasedate[0][1] ? '<b>Release date:</b> ' $releasedate[0][1] . '' '') . '<b>User Rating:</b> ' strip_tags ($rating[0][1]) . ' (' $users[0][1] . ' votes)' . ('' '<b>Language:</b> ' strip_tags (str_replace ('more'''$language[0][2])) . '<b>Country:</b> ' strip_tags (str_replace ('more'''$country[0][1])) . '') . ($runtime[0][1] ? '<b>Runtime:</b> ' $runtime[0][1] . '' '') . ($budget[0][1] ? '<b>Budget:</b> ' $budget[0][1] . '' '') . ($soundmix[0][1] ? '<b>Sound mix:</b> ' strip_tags (str_replace ('more'''$soundmix[0][1])) . '' '') . ($aspectratio[0][1] ? '<b>Aspect ratio:</b> ' $aspectratio[0][1] . '' '') . '<b>Storyline:</b> ' strip_tags (str_replace ('more'''$plot[0][1])) . ($plotkeywords[0][1] ? '<b>Plot keywords:</b> ' strip_tags (str_replace ('more'''$plotkeywords[0][1])) . '' '') . ($taglines[0][1] ? '<b>Taglines:</b> ' strip_tags (str_replace ('more'''$taglines[0][1])) . '' '') . ('' '<b>IMDb link:</b> <a href=\'' $t_link '\' target=\'_blank\' alt=\'' $title '\' title=\'' $title '\'>' $t_link '</a></td></tr></table>' . ($trailer[0][1] ? '<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>' '') . ''); 

replace with:
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])) . '' '') . ($officialsites[0][1] ? '<b>Official sites:</b> ' str_replace ('more'''$officialsites[0][1]) . '' '') . ($director[0][2] ? '<b>Director:</b> ' strip_tags (str_replace ('more'''$director[0][2])) . '' '') . ($directors[0][2] ? '<b>Directors:</b> ' strip_tags (str_replace ('more'''$directors[0][2])) . '' '') . ($writer[0][2] ? '<b>Writer:</b> ' strip_tags (str_replace ('more'''$writer[0][2])) . '' '') . ($writers[0][2] ? '<b>Writers:</b> ' strip_tags (str_replace ('more'''$writers[0][2])) . '' '') . ($stars[0][1] ? '<b>Stars:</b> ' str_replace ('more'''$stars[0][1]) . '' '') . '<b>Genre:</b> ' strip_tags (str_replace ('more'''$genre[0][1])) . '' . ($releasedate[0][1] ? '<b>Release date:</b> ' $releasedate[0][1] . '' '') . '<b>User Rating:</b> ' strip_tags ($rating[0][1]) . ' (' $users[0][1] . ' votes)' . ('' '<b>Language:</b> ' strip_tags (str_replace ('more'''$language[0][2])) . '<b>Country:</b> ' strip_tags (str_replace ('more'''$country[0][1])) . '') . ($runtime[0][1] ? '<b>Runtime:</b> ' $runtime[0][1] . '' '') . ($budget[0][1] ? '<b>Budget:</b> ' $budget[0][1] . '' '') . ($soundmix[0][1] ? '<b>Sound mix:</b> ' strip_tags (str_replace ('more'''$soundmix[0][1])) . '' '') . ($aspectratio[0][1] ? '<b>Aspect ratio:</b> ' $aspectratio[0][1] . '' '') . '<b>Storyline:</b> ' strip_tags (str_replace ('more'''$plot[0][1])) . ($plotkeywords[0][1] ? '<b>Plot keywords:</b> ' strip_tags (str_replace ('more'''$plotkeywords[0][1])) . '' '') . ($taglines[0][1] ? '<b>Taglines:</b> ' strip_tags (str_replace ('more'''$taglines[0][1])) . '' '') . ('' '<b>IMDb link:</b> <a href=\'' $t_link '\' target=\'_blank\' alt=\'' $title '\' title=\'' $title '\'>' $t_link '</a></td></tr></table>' . ($trailer[0][1] ? '<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 wait to fix IMDB trailers

Lolle 1st October 2011 21:30

thank you

Danix 10th October 2011 20:48

Update for IMDB Trailer
 
1 Attachment(s)
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])) . '' '') . ($officialsites[0][1] ? '<b>Official sites:</b> ' str_replace ('more'''$officialsites[0][1]) . '' '') . ($director[0][2] ? '<b>Director:</b> ' strip_tags (str_replace ('more'''$director[0][2])) . '' '') . ($directors[0][2] ? '<b>Directors:</b> ' strip_tags (str_replace ('more'''$directors[0][2])) . '' '') . ($writer[0][2] ? '<b>Writer:</b> ' strip_tags (str_replace ('more'''$writer[0][2])) . '' '') . ($writers[0][2] ? '<b>Writers:</b> ' strip_tags (str_replace ('more'''$writers[0][2])) . '' '') . ($stars[0][1] ? '<b>Stars:</b> ' str_replace ('more'''$stars[0][1]) . '' '') . '<b>Genre:</b> ' strip_tags (str_replace ('more'''$genre[0][1])) . '' . ($releasedate[0][1] ? '<b>Release date:</b> ' $releasedate[0][1] . '' '') . '<b>User Rating:</b> ' strip_tags ($rating[0][1]) . ' (' $users[0][1] . ' votes)' . ('' '<b>Language:</b> ' strip_tags (str_replace ('more'''$language[0][2])) . '<b>Country:</b> ' strip_tags (str_replace ('more'''$country[0][1])) . '') . ($runtime[0][1] ? '<b>Runtime:</b> ' $runtime[0][1] . '' '') . ($budget[0][1] ? '<b>Budget:</b> ' $budget[0][1] . '' '') . ($soundmix[0][1] ? '<b>Sound mix:</b> ' strip_tags (str_replace ('more'''$soundmix[0][1])) . '' '') . ($aspectratio[0][1] ? '<b>Aspect ratio:</b> ' $aspectratio[0][1] . '' '') . '<b>Storyline:</b> ' strip_tags (str_replace ('more'''$plot[0][1])) . ($plotkeywords[0][1] ? '<b>Plot keywords:</b> ' strip_tags (str_replace ('more'''$plotkeywords[0][1])) . '' '') . ($taglines[0][1] ? '<b>Taglines:</b> ' strip_tags (str_replace ('more'''$taglines[0][1])) . '' '') . ('' '<b>IMDb link:</b> <a href=\'' $t_link '\' target=\'_blank\' alt=\'' $title '\' title=\'' $title '\'>' $t_link '</a></td></tr></table>' . ($trailer[0][1] ? '<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 :ok:

wMan 10th October 2011 21:18

Quote:

Originally Posted by Danix (Post 30585)
OK people, here we go update for IMDB Trailer

WHAT FILE TO ADD TOO ?

Verix 10th October 2011 23:15

damn
 
Guys.
It doesn't work for me (5.6 nightcrawler) I have -10/-10 still a bug.

Edit: solution - http://www.bvlist.com/30342-post8.html ;)

mmisu120000 11th October 2011 07:27

Quote:

Originally Posted by wolfman (Post 30586)
WHAT FILE TO ADD TOO ?

include/ts_imdb.php

Danix 18th October 2011 20:23

Last update from 18.10.2011
 
1 Attachment(s)
Quote:

Originally Posted by Danix (Post 30585)
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])) . '' '') . ($officialsites[0][1] ? '<b>Official sites:</b> ' str_replace ('more'''$officialsites[0][1]) . '' '') . ($director[0][2] ? '<b>Director:</b> ' strip_tags (str_replace ('more'''$director[0][2])) . '' '') . ($directors[0][2] ? '<b>Directors:</b> ' strip_tags (str_replace ('more'''$directors[0][2])) . '' '') . ($writer[0][2] ? '<b>Writer:</b> ' strip_tags (str_replace ('more'''$writer[0][2])) . '' '') . ($writers[0][2] ? '<b>Writers:</b> ' strip_tags (str_replace ('more'''$writers[0][2])) . '' '') . ($stars[0][1] ? '<b>Stars:</b> ' str_replace ('more'''$stars[0][1]) . '' '') . '<b>Genre:</b> ' strip_tags (str_replace ('more'''$genre[0][1])) . '' . ($releasedate[0][1] ? '<b>Release date:</b> ' $releasedate[0][1] . '' '') . '<b>User Rating:</b> ' strip_tags ($rating[0][1]) . ' (' $users[0][1] . ' votes)' . ('' '<b>Language:</b> ' strip_tags (str_replace ('more'''$language[0][2])) . '<b>Country:</b> ' strip_tags (str_replace ('more'''$country[0][1])) . '') . ($runtime[0][1] ? '<b>Runtime:</b> ' $runtime[0][1] . '' '') . ($budget[0][1] ? '<b>Budget:</b> ' $budget[0][1] . '' '') . ($soundmix[0][1] ? '<b>Sound mix:</b> ' strip_tags (str_replace ('more'''$soundmix[0][1])) . '' '') . ($aspectratio[0][1] ? '<b>Aspect ratio:</b> ' $aspectratio[0][1] . '' '') . '<b>Storyline:</b> ' strip_tags (str_replace ('more'''$plot[0][1])) . ($plotkeywords[0][1] ? '<b>Plot keywords:</b> ' strip_tags (str_replace ('more'''$plotkeywords[0][1])) . '' '') . ($taglines[0][1] ? '<b>Taglines:</b> ' strip_tags (str_replace ('more'''$taglines[0][1])) . '' '') . ('' '<b>IMDb link:</b> <a href=\'' $t_link '\' target=\'_blank\' alt=\'' $title '\' title=\'' $title '\'>' $t_link '</a></td></tr></table>' . ($trailer[0][1] ? '<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 :ok:

This is last update from 18.10.2011


All times are GMT +2. The time now is 12:38.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.