Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
IMDb mod (using OMDb for data)
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2.08 Mods Completed

2019-11-21 23:04:40
when you upload a torrent, you have to add the full url of the imdb, not just the imdb ID number. That line of code just prints what you have entered, so if its only displaying the tt7376492 number, then that was all you entered, unless you did some other modifications that I dont know about. This line just echos data you have entered
<b><?php echo T_("IMDB_LINK"); ?></b><br /> <a href="<?php echo $row['imdb']; ?>" target="_blank"><?php echo htmlspecialchars($row['imdb']); ?></a><br /><br />

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Unknown User
2020-01-07 17:16:13
Quote:

try this, in torrents-details.php
$TTIMDB = new TTIMDB;
if ((($_data = $TTCache->Get("imdb/$id", 900)) === false) && ($_data = $TTIMDB->Get($row['imdb']))){
               $_data->Poster = $TTIMDB->getImage($_data->Poster, $id);
        if ( ! isset( $_data->imdbTime ) ){
                $_data->imdbTime = time();
                $_data->Alias = 'N/A';
                $_data->imdbVideo = null;
                }
                $TTCache->Set("imdb/$id", $_data, 900);
}

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; ?>" 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_RATED"); ?></b><br /> <?php echo $TTIMDB->getRated( $_data->Rated ); ?><br /><br />
        <b><?php echo T_("IMDB_ALIAS"); ?></b><br /> <?php echo $_data->Alias; ?><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)) !== null){ ?>
        <td valign="top" align="center">
<?php echo $rating; ?><br /><br />
        <b><?php echo T_("IMDB_VOTES"); ?></b> <?php echo $_data->imdbVotes; ?>
    </td>
        <?php } ?>
    </tr>
     <tr>
        <td align="right" colspan="3">
        <b><?php echo T_("IMDB_LASTUPDATED"); ?></b> <i><?php echo $TTIMDB->getUpdated($_data->imdbTime); ?></i>
     </td>
     </tr>
     </table>
     </fieldset>
     <br />

<?php if ( strlen( $_data->imdbVideo ) > 3 ){ ?>
        <center><iframe src="http://www.imdb.com/video/imdb/<?php echo $_data->imdbVideo; ?>/player?stop=1" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" height="480" width="643"></iframe></center><br />
<?php }
}


 is breaking the line

i think this line id the problem

$TTIMDB = new TTIMDB;
if ((($_data = $TTCache->Get("imdb/$id", 900)) === false) && ($_data = $TTIMDB->Get($row['imdb']))){
               $_data->Poster = $TTIMDB->getImage($_data->Poster, $id);
        if ( ! isset( $_data->imdbTime ) ){
                $_data->imdbTime = time();
                $_data->Alias = 'N/A';
                $_data->imdbVideo = null;
                }
                $TTCache->Set("imdb/$id", $_data, 900);
}


old code theat works
$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))):
  ?>
Screenshot_2020-01-07 Extremlymtorrents ws Download free torrents.png
Screenshot_2020-01-07 Extremlymtorrents ws Download free torrents.png
Last edited by M-jay warn on 2021-08-01 10:16:10
Unknown User
2020-02-07 20:37:32
ill do a update on this soon
Unknown User
2020-02-11 18:15:49
"xblade, post: 67842, member: 20395":

ill do a update on this soon

ok
Unknown User
2020-02-11 18:17:46
will need the old mod of this as i do not have it.....also the mvp mod not on here
Unknown User
2020-02-11 18:20:05
the problem with this mod is theat is breaking the page ! with no error !
2021-07-30 11:32:19
:smile any updates?
2021-07-30 20:26:17
What update are you looking for? Maybe I can help. Are you having problems? If you were waiting for the person who posted above who said "ill do a update on this soon", then you will be waiting forever, because that person was a former member who did nothing to help anyone ever lol. The mod still works just fine. I have fine tuned a few things, but I would need to know what area is a problem for you in order to let you know what I changed
Is this edit even needed. Not quite sure what it ever did to be honest
  function __autoload( $f )
{
require_once('backend/' . $f . '.php');
}

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Last edited by MicroMonkey on 2021-07-31 19:17:20
2021-07-31 02:49:27
Use PHP's built-in SPL autoload class. It is faster and is the preferred way.


spl_autoload_register(function __autoload($f) {
   include_once 'backend/' . $f . '.php';
});


PHP version 5.2.1 or greater
Last edited by STorrents2020 on 2021-07-31 02:51:14
2021-07-31 19:30:52
I think this is the proper way to write that autoload function, but I still dont know what it does lol
spl_autoload_register(function ($f) {
   require_once('backend/' . $f . '.php');
});

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2021-08-01 05:18:42
for me this function is written like this:
spl_autoload_register(function ($f) {
   include $f . '.php';
});
2021-08-01 12:53:12
For me, the working option is that of MM and works great
Mine is:
spl_autoload_register(function ($f) {
   require_once('backend/' . $f . '.php');
});

Last edited by coco on 2021-08-01 12:55:07
2021-08-02 20:27:49
FINALY made it to work


torrents upload imdb autograb
I wont the autograb imdb link from desc



Last edited by Extremlym66 on 2021-08-02 21:12:39
2021-08-08 07:14:39
Any idea how to autograb IMDB from DESCR? on upload and on torrent-details .php if is in description allready uploaded?

:fire  :fire  :fire  :fire  :fire
2023-01-12 17:41:34
hello to all, do you know how to set the language in french because the description appears in english

thank you all for your help
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 2
  • Members: 0
  • Guests online: 2
  • Comments: 3
  • Messages: 1,728