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 [TTv3]
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Mods Completed

2023-03-12 18:38:56
Anything with T_ is a language key. It just displays text. Everything after that is typically code or a variable.
2023-03-13 10:18:30
Thank you and is there a solution to have the description in French because when you choose a movie with the description in French and you add the link "tt0068646" the description becomes English again?  ๐Ÿ˜•
2023-03-14 22:29:09
no way that I know of to get french lang with omdb unfortunately. Also, dont forget to try this
if (!$_data->Plot) {
print("<tr><td align='left' colspan='2'><b>" .T_("DESCRIPTION"). ":</b><br />" .  format_comment($row['descr']) . "</td></tr>\n");
}

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 2023-03-14 22:33:42
2023-03-14 22:51:58
Hello and thank you MicroMonkey but the code does not work for hidden description but again thank you for your help
2023-03-15 01:25:22
post your torrents-details. I know that will work, so Im confused and want to see
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)
2023-03-15 09:07:52
Hello and thank you MicroMonkey here is the requested file
torrents-details.php
Download
2023-03-15 10:34:14
hmm, that should work. It works on mine. Maybe its because I add that plot description to the database in my file. At top of the file above all the require_once
const DEFAULT_DESCRIPTION = 'No description given.';

then somewhere else in the file
/////ADD a description pulled from the IMDB plot and put it in mysql as the descr
if ($row['descr'] === DEFAULT_DESCRIPTION) {
$stmt = $GLOBALS['DBconnector']->prepare('UPDATE `torrents` SET `descr` = ? WHERE `id` = ?');
$stmt->bind_param('si', $_data->Plot, $id);
$stmt->execute();
$stmt->close();
}

I attach my file for you to look at and see. It has more things than you use, but should give a reference
torrents-details.php
Download

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 2023-03-15 13:02:34
2023-03-15 12:44:56
Hi MicroMonkey I just made your modification and now it works great and a big thank you for your help  ๐Ÿคฉ
2023-03-24 16:32:56
Hello there is no imdb url link there is just the number, can you tell me why, thank you
Capture.jpg
Capture.jpg
Last edited by niki on 2023-03-24 16:48:01
2023-03-25 08:27:39
Hello, and I found you just have to put the full url  ๐Ÿ˜ฒ  ๐Ÿ˜‚  ๐Ÿ˜‚  ๐Ÿ˜‚
2023-03-25 08:48:51
@niki

question is: What you want there?

1. iMDB image
2. Whole link to iMDB
3. Something else

Answere:

1. In line 318 change  
<?php echo htmlspecialchars($row['imdb']); ?>
to image link as <img src="images/imdb.png">
2. Same as #1 but this code
<?php echo $row['imdb']; ?>

3. Tell us what is your wish

Regards


www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
2023-03-25 09:01:12
thank you botanicar ๐Ÿ˜Š
2023-03-25 18:22:00
Hello, can you tell me if it is possible the manipulation to do with the code to put in function .php to have the small clickable logo of imdb in the list of torrents, thank you in advance for your help ๐Ÿ˜•


Bonjour, pouvez vous me dire si c'est possible la manipulation a faire avec le code a mettre dans function .php pour avoir le petit logo cliquable de imdb dans  la liste des torrents, merci d'avance pour votre aide  ๐Ÿ˜•

Last edited by niki on 2023-03-25 18:22:49
2023-03-25 19:47:20
In function.php after


if ($row["freeleech"] .....


add

//==| IMDB Link
if (!empty($row["imdb"])) { $imdb = "<a href='".$row["imdb"]."' target='_blank'><img src='images/imdb.png' border='0' title='".T_("T_IMDB")."'></a>"; } else { $imdb = ""; }


find


break;
case 'size':
echo "<th>".T_("SIZE")."</th>";


   
   add after


break;
case 'imdb':
echo "<th>".T_("IMDB")."</th>";






find



break;
case 'size':
print("<td class='ttable_col$x' align='center'>".mksize($row["size"])."</td>\n");



add after




  break;
case 'imdb':
print("<td class='ttable_col$x' align='center'><a href='".$row["imdb"]."' target='_blank'><img src='images/imdb.png' border='0' title='".T_("T_IMDB")."'></a></td>\n");




in config.php find



$site_config["torrenttable_columns"] = "category,name,dl,wait,size,added,comments,completed,seeders,leechers,uploader,health,external";



change to



$site_config["torrenttable_columns"] = "category,name,imdb,dl,wait,size,added,comments,completed,seeders,leechers,uploader,health,external";




www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
Last edited by Botanicar on 2023-03-25 19:47:58
2023-03-25 20:09:25

thank you very much for your help Botanicar and it works well now ๐Ÿ˜Š

merci beaucoup pour ton aide Botanicar et รงa fonctionne bien maintenant ๐Ÿ˜Š
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: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728