Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev > Mods & Themes
Reply
  #11  
Old 7th November 2012, 01:40
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Thumbs up
@details.php ADD ABOVE
PHP Code:
if (!empty($row["descr"])) 
PHP Code:
//----------------------------------------------------------------Auto iMDB mod by Axxel------------------------------------------------------------------
               if (($row["url"] != "")AND(strpos($row["url"], imdb))AND(strpos($row["url"], title)))
                  {
               $thenumbers = ltrim(strrchr($row["url"],'tt'),'tt');
               $thenumbers = ereg_replace("[^A-Za-z0-9]", "", $thenumbers);
               $movie = new imdb ($thenumbers);
               $movieid = $thenumbers;
               $movie->setid ($movieid);
               $plot = $movie->plot();
               $plotoutline = $movie->plotoutline();
               $gen = $movie->genres();
               $cast = $movie->cast();
               $director = $movie->director();
               $write = $movie->writing();
               $produce = $movie->producer();
               $compose = $movie->composer();

                if (($photo_url = $movie->photo_localurl() ) != FALSE) {
                $autodata = '<img class=glossy src="'.$photo_url.'" style="float:left; margin-right:5px;">';
                } else {
                $autodata = '<img  img  src="/imdb/images/default.png" style="float:left; margin-right:5px;">';
                }

               $autodata .= "<strong><a href=\"http://www.imdb.com/title/tt$movieid\"><font size=\"3\" style=\"border-bottom: 1px dotted; text-decoration: none;\">" . "".$movie->title ()."</a></font> <font size=\"3\"><b> " . "(".$movie->year ().")</b></strong></size></font><br />\n";
               $autodata .= "<i><font color=\"#999999\"> " . "".$movie->tagline ()."</font></i><br />\n";

               $autodata .= "<br />\n<strong> Genres: </strong>";
               for ($i = 0; $i + 1 < count($gen); $i++) {
               $autodata .= "$gen[$i], ";
  }
               $autodata .= "$gen[$i]";

               $autodata .= "<br /><br />\n<strong> Rating: </strong>" . "".$movie->rating ()." <font size=\"1\"><u> " . "(".$movie->votes ()." votes)</size></u></font><br /><br />\n";
               $autodata .= "<strong> Language: </strong>" . "".$movie->language ()."<br />\n";

               $autodata .= "<br />\n<strong> Runtime: </strong>" . "".$movie->runtime ()."" . " mins<br /><br /></strong>\n";

if (!empty($plot)) {

$autodata .= "<strong> Plot Outline: </strong><br />\n";

              for ($i = 0; $i < count ($plot); $i++) {
              $autodata .= "<br />\n<font color=\"red\">[x] </font>";
              $autodata .= "$plot[$i]";
             $autodata .= "<br></br>\n";
break;
      }
 }


if (!empty($director)) {
    $autodata .= "<strong><font color=\"blue\"> Director: </font></strong>";
    for ($i = 0; $i < count ($director); $i++) {
        $autodata .= "<a target=\"_blank\" href=\"http://www.imdb.com/name/nm" . "".$director[$i]["imdb"]."" ."\">" . "".$director[$i]["name"]."" . "</a><br />\n";
    }
}


if (!empty($write)) {
    $autodata .= "<strong><font color=\"blue\"> Writing By: </font></strong>";
    for ($i = 0; $i < count ($write); $i++) {
        $autodata .= "<a target=\"_blank\" href=\"http://www.imdb.com/name/nm" . "".$write[$i]["imdb"]."" ."\">" . "".$write[$i]["name"]."" . "</a> ";
    }
}


if (!empty($compose)) {
    $autodata .= "<br />\n<strong><font color=\"blue\"> Music: </font></strong>";
    for ($i = 0; $i < count($compose); $i++) {
        $autodata .= "<a target=\"_blank\" href=\"http://www.imdb.com/name/nm" . "".$compose[$i]["imdb"]."" ." \">" . "".$compose[$i]["name"]."" . "</a> ";
    }
}




?>
<script type="text/javascript">
        function imdb_more(imdb_area, imdb_link) {
        var imdb_area = get_item(imdb_area);
        var imdb_link = get_item(imdb_link);

        if (imdb_area.style.display == "") {
            imdb_area.style.display = "none";
            imdb_link.innerHTML = "More";
            eraseCookie("IMDbXz");
        } else {
            imdb_area.style.display = "";
            imdb_link.innerHTML = "Less";
            createCookie("IMDbXz", "1", "100");
        }
    }
    function get_item(id){
        itm = null;
        if (document.getElementById){
            itm = document.getElementById(id);
        } else if (document.all){
            itm = document.all[id];
        } else if (document.layers) {
            itm = document.layers[id];
        }
        return itm;
    }
    function createCookie(name,value,days) {
        if (days) {
            var date = new Date();
            date.setTime(date.getTime()+(365*24*60*60*1000));
            var expires = "; expires="+date.toGMTString();
        }
        else var expires = "";
        document.cookie = name+"="+value+expires+"; path=/";
    }
    function readCookie(name) {
        var nameEQ = name + "=";
        var ca = document.cookie.split(';');
        for(var i=0;i < ca.length;i++) {
            var c = ca[i];
            while (c.charAt(0)==' ') c = c.substring(1,c.length);
            if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
        }
        return null;
    }
    function eraseCookie(name) {
        createCookie(name,"",-1);
    }
</script>
<?
              $smallth 
.= "<br /><i><a href=\"javascript:imdb_more('imdb_area', 'imdb_link');\"><font style=\"border-bottom: 1px dotted; text-decoration: none; font-size: 7pt; color: grey;\" id=\"imdb_link\">More</font></a></i>\n";
              

$autodata .= "<br /><br></br><br><div style=\"display:none\" id=\"imdb_area\"><strong> Cast: </strong><br></br>\n";

for (
$i 0$i count ($cast); $i++) {
    if (
$i 9) {
        break;
    }
$autodata .= "<font color=\"blue\"></font> " "<a target=\"_blank\" href=\"http://www.imdb.com/name/nm" "".$cast[$i]["imdb"]."" ."\">" "".$cast[$i]["name"]."" "</a> " " as <strong><font color=\"orange\">" "".$cast[$i]["role"]."" " </font></strong></br>\n";
}


if (!empty(
$produce)) {
    
$autodata .= "<br />\n<strong>Produced By: </strong><br></br>";
    for (
$i 0$i count ($produce); $i++) {
        
$autodata .= "<a target=\"_blank\" href=\"http://www.imdb.com/name/nm" "".$produce[$i]["imdb"]."" ." \"><font color=green>" "".$produce[$i]["name"]."" "</font></a><br /> ";
    }
}


if (!empty(
$plot)) {
$autodata .= "<br /><strong> Plot: </strong><br />\n";

              for (
$i 0$i count ($plot); $i++) {
              
$autodata .= "<br />\n<font color=\"red\">[x] </font>";
              
$autodata .= "$plot[$i]";
             
$autodata .= "<br></br>\n";

     }
      }


              
tr("IMDb $smallth",$autodata,1);
}
//--------------------------------------------------------------------Auto iMDB mod end----------------------------------------------------------------------
@details.php

PHP Code:
require ("imdb/imdb.class.php"); 
0777 - imdb
0777 - imdb/images
0777 - imdb/imgs
0777 - imdb/imgs/showtimes
0777 - imdb/cache
0777 - imdb/cache.file
0777 - imdb/imdb.class.file
0777 - imdb/imdbXML.file

I UPDATED IT A FEW MONTHS AGO

@upload.php Add

PHP Code:
tr("iMDB Link""<input type=text name=url size=85 value='".$row["url"]."'><br />(<b>Direct link</b> from <b>iMDB.</b> Please use only for <b>Movies</b> and <b>Episodes</b>)\n"); 

@takeupload.php Add

PHP Code:
 if (!empty($_POST['url']))
$url unesc($_POST['url']); 



Add the the big query

PHP Code:
url
And

PHP Code:
$url
@edit.php Add

PHP Code:
tr("iMDB Link""<input type=text name=url size=80 value='".$row["url"]."'>"1); 
@takeedit.php Add

PHP Code:
if (!empty($_POST['url']))
$url $_POST['url']; 
And

PHP Code:
$updateset[] = "url = " sqlesc($url); 
Attached Files
File Type: rar imdb.rar (95.6 KB, 161 views)

Last edited by wMan; 7th November 2012 at 13:02.
Reply With Quote
  #12  
Old 8th November 2012, 01:59
Kristoffer Kristoffer is offline
Member
 
Join Date: Sep 2012
P2P
Posts: 12
Default
Quote:
Originally Posted by bill123 View Post
Auto iMDB mod
How is it possible to use this in TBDEV? added all these but in upload it's just a blank page.
Reply With Quote
  #13  
Old 8th November 2012, 03:50
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default
PHP Code:
tr("iMDB Link""<input type=text name=url size=85 value='".$row["url"]."'><br />(<b>Direct link</b> from <b>iMDB.</b> Please use only for <b>Movies</b> and <b>Episodes</b>)\n"); 
PHP Code:
tr("iMDB Link""<input type=text name=url size=85 value='".$row["url"]."'><br />(<b>Direct link</b> from <b>iMDB.</b> Please use only for <b>Movies</b> and <b>Episodes</b>)\n"); 
Reply With Quote
  #14  
Old 6th April 2013, 06:16
tinydownload tinydownload is offline
Member
 
Join Date: Apr 2013
P2P
Posts: 1
Default
dose any one know how to pull the images from the new imdb layout?

i managed to get votes working

Code:
      /** Setup votes
       * @method private rate_vote
       */
      private function rate_vote() {
        if ($this->page["Title"] == "") $this->openpage ("Title");
        if (preg_match('!<span itemprop="ratingValue">(\d{1,2}\.\d)!i',$this->page["Title"],$match)){
          $this->main_rating = $match[1];    
        } else {
          $this->main_rating = 0;
        }
        if (preg_match('#itemprop="ratingCount"[^>]*>(.*)</span>#U',$this->page["Title"],$match)){
            $this->main_votes = $match[1];
        }else{
            $this->main_votes = 0;
        }                                                     
      }
Reply With Quote
  #15  
Old 12th December 2013, 20:16
tihozh tihozh is offline
Member
 
Join Date: Nov 2013
P2P
Posts: 2
Default
Hi there

maybe i'm totally Blind at the end of my days, but i did'nt find the following in my details.php. Can someone please help me out how i can use the IMDB Mod :)



Open details.php and after:
PHP Code:
if (!empty($row["poster"]))
               
tr("Poster""<img src='".$row["poster"]."'>"1); 
Add this:


i am using the latest stable Version.
Cheers
Reply With Quote
  #16  
Old 10th January 2014, 10:36
fodbrothers fodbrothers is offline
Member
 
Join Date: Dec 2013
United Kingdom
Posts: 13
Default imdb help
Ok so I have everything working but need 2 little thing when I upload n add the imdb link and it goes to the upload sucessfully 1 there is no picture and 2 all the info in the imdb box works perfect but there is more info in the description box but it is not coded is thete anyway of not having the code added to that box or get the code working. Many thanks in advance
Reply With Quote
  #17  
Old 10th January 2014, 11:44
DND DND is offline
VIP
 
Join Date: Dec 2008
Posts: 1,241
Default
it's not that hard to use the latest imdb script files, right?
google it, use it, be happy :)
Reply With Quote
  #18  
Old 10th January 2014, 15:10
firefly007's Avatar
firefly007 firefly007 is offline
SUPPORT GURU
 
Join Date: Jun 2010
P2P
Posts: 721
Default
There is a much better Imdb script lib on Github so I wouldnt worry about using this as I suspect its old...

Also what Ive done is to rather create a few more fields in the torrent table and when the person or person uploads the info Eg. vote, cast, poster, trailer and so on will get recorded only once instead of constantly when you or the user views the torrent details.
__________________




Please Support Majority Report


You can contact me on Skype live:phesadent.elect but please let me know first.


If you are ever need me desperately then please email me at dan.oak44@gmail.com and I will contact u within a week.


Due to free time I'm able to help interested member's with their tracker.

Please Note!
Depending on your requests I will charge you for my assistance for Tracker installs and mods.
All my mods are custom and prices will very depending on the request.
I'm able to install any tracker and mods including themes.

Please PM me

Reply With Quote
  #19  
Old 10th January 2014, 19:24
fodbrothers fodbrothers is offline
Member
 
Join Date: Dec 2013
United Kingdom
Posts: 13
Default
what does it mean by

Add the the big query

PHP Code:
url,
And

PHP Code:
$url,

i think this maybe the issue
where and which file do i add this and lastly please can someone help me from imdb grabber sending info into the description this would help me load before fixing the image problem
Reply With Quote
  #20  
Old 10th January 2014, 20:14
DND DND is offline
VIP
 
Join Date: Dec 2008
Posts: 1,241
Default
why do u want this mod ? what do u have in the 1st place a torrentsite if you don't know what are u doing ?
Reply With Quote
Reply

Tags
imdb , mod , rating

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
IMDB Mod kp380lv Mods & Themes 4 14th August 2015 08:47
Dead IMDB rating proba10 Community Cafe 2 7th January 2010 15:24
[xbtit] Grab IMDB information in torrent's details Duvelske xBTiT 0 26th July 2009 16:42
Help me Imdb scream21m Yuna Scatari Edition (YSE) 1 8th May 2009 11:01
iMDB, Discogs, Amazon - Indexes Post Here!! dezza Community Cafe 1 31st October 2008 22:39



All times are GMT +2. The time now is 16:56. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.