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
Link TMDB
You don't have permission for this action!
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Support

2025-03-05 17:08:03
Hello everyone I am trying to place the clickable link of TMDB as youtube in the torrents page, I tried to modify the YouTube code to put TMDB then place it next to YouTube but it does not work, here is my YouTube code to modify it for TMDB of the Backend file.

Thank you for your help.


           case 'youtube:

if ( get_user_class() >= 0 )
               if ($row["tube"])  
               print("<td class='ttable_colx1' align='center'><a rel=\"prettyPhoto\" href=".$row['tube']." target=_blank>
<".htmlspecialchars($row['tube'])."><img src='".$site_config['SITEURL']."/images/tube.png' border='0' width='48' height='48' alt=\"youtube!\" title=\"".T_("VIDEO_WATCH_THIS_VIDEO")."\" /></a></td>");  
               else
               print("<td class='ttable_colx1' align='center'><img src='".$site_config['SITEURL']."/images/youtube/youtube2.png' border='0' width='48' height='48' alt=\"No youtube!\" title=\"".T_("VIDEO_NONE_VIDEO_TO_WATCH")."\" /></td>");  






Capture d’écran 2025-03-05.png
Capture d’écran 2025-03-05.png
Last edited by niki on 2025-03-05 17:12:09
2025-03-05 18:38:13
Hi Niki;
first of all I have a question for you:
- Have you already installed TMDB MOD in your script?
If not then there is a little work you have to fix first;
There are several files involved in this MOD such as:
torrent-upload.php
torrent-edit.php
funktions.php
config.php


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
2025-03-05 19:19:04
Hello botanicar and yes the TMDB function is installing and works well
2025-03-05 19:25:14
Do you have it in functions.php as a "case"; and under wich name?
When you have TBMDB name put it in config.php line:

$site_config["torrenttable_columns"] =  before "youtube"... like

$site_config["torrenttable_columns"] = "category,name,tmdb,youtube,comment";



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 2025-03-05 19:25:59
2025-03-05 19:50:26
No I do not have the code to put in the file in functions.php there is just that of YouTube 😊

I come back tomorrow because it is late and tomorrow I work good night  🤩
2025-03-05 20:18:32
I dont use TMDB, but here is my imdb case line from functions.php.
			case 'imdb':
     if ($row["imdb"])  
           print("<td class='ttable_col$x' align='center'><a href=".$row['imdb']." target='_blank'><".htmlspecialchars($row['imdb'])."><img src='" . $site_config['SITEURL'] . "/images/imdb.png'  border='0' width='50' height='50' alt=\"\" /></a></td>");
        else
        print("<td class='ttable_colx' align='center'>-</td>");  
        break;

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)
2025-03-06 10:57:07
hello I put this code in function.php and the clickable image is not present in the list of torrents,??


                if ($row["tmdb"])   
               print("<td class='ttable_colx1' align='center'><a rel=\"prettyPhoto\" href=".$row['tmdb']." target=_blank>
<".htmlspecialchars($row['tmdb'])."><img src='".$site_config['SITEURL']."/images/tmdb.png' border='0' width='48' height='48' alt=\"tmdb!\" title=\"".T_("VIDEO_WATCH_THIS_VIDEO")."\" /></a></td>");  
               else
               print("<td class='ttable_colx1' align='center'><img src='".$site_config['SITEURL']."/images/tmdb/no-tmdb.png' border='0' width='48' height='48' alt=\"No tmdb!\" title=\"".T_("VIDEO_NONE_VIDEO_TO_WATCH")."\" /></td>");  


Last edited by niki on 2025-03-06 10:59:53
2025-03-06 12:23:33
@niki
read my last post about it:

change line with that on backend/config.php :

$site_config["torrenttable_columns"] = "category,name,tmdb,youtube,comment";



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 2025-03-06 12:24:18
2025-03-06 13:44:16
here is my code and it still doesn't work

category = Category Image/Name, name = Torrent Name, dl = Download Link, uploader, comments = # of comments, completed = times completed, size, seeders, tmdb, leechers, health = seeder/leecher ratio, external, wait = Wait Time (if enabled), rating = Torrent Rating, added = Date Added, nfo = link to nfo (if exists)
$site_config["torrenttable_columns"] = "tube,category,cover,name,tmdb,imdb,dl,uploader,comments,size,seeders,leechers,health,external,rating";
// size, speed, added = Date Added, tracker, completed = times completed
$site_config["torrenttable_expand"] = "";

Last edited by niki on 2025-03-06 13:45:09
2025-03-06 16:54:23
Hello Botanicar I modified as below that you had explained on another request for IMDB and change all the IMDB to TMDB and when I click on the image of TMDB in the torrents page I am redirect on the torrent page so there must be a redirection problem on TMDB ??




Here are the changes I made from IMDB code and change the IMDB to TMDB :


In function.php after

Code :

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



add
Code :

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



find

Code :

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



 
  add after

Code :

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







find

Code :


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




add after


Code :


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





in config.php find

Code :


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




change to

Code :


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

2025-03-06 21:07:47
Niki;

In functions.php find line:

            case 'uploader':            

           
Add before:
           
            case 'tmdb':
               echo "<td class='table_head'>&nbsp;&nbsp; TMDB</td>";
               break;

               


Find line

                if ($row["freeleech"] == 1)    



Add after

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

   
   
   
Find line:

 			case 'speed':  


Add before:

  			case 'tmdb':
if ($row["tmdb"])
print("<td class='ttable_col$x' align='center'><a href=".$row['tmdb']." target='_blank'><".htmlspecialchars($row['tmdb'])."><img src='" . $site_config['SITEURL'] . "/images/tmdb.png'  border='0' width='50' height='50' alt=\"\" /></a></td>");
else
print("<td class='ttable_colx' align='center'>-</td>");
break;    

 
 
Open config.php and add thath part of code in that line before youtube

  tmdb, 


Check that the torrents SQL table contains the tmdb row

with iMDB
https://prnt.sc/RTEK6-ldUW5J

withouth iMDB
https://prnt.sc/Py90BtLNBfJ5


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
2025-03-07 12:15:56
thanks for your help botanicar but here is what I have in the torrent list and when I click on the tmdb image I am directed to the site with the movie number like this,.. ???

https://www.tigers-dl.net/1063875



2025-03-07 13:26:22
Hi Niki,
I suspect that in the field with tmdb you only write the number of the movie / TV series instead of the whole link, but in this case it can't work that way because TMDB sorts information by categories among MOVIES and TV Series... so if you want a direct link to TMDB you have to write the WHOLE address in the TMDB field

Like that: https://www.themoviedb.org/movie/1063875-louise-violet

PS
If you are denied to write the whole link then change the number of characters in the TMDB line to something like 100


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
2025-03-10 13:39:19
Hello Botanicar and yes we just put the film number so it will not be possible but thank you anyway 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: 4
  • Members: 0
  • Guests online: 4
  • Comments: 3
  • Messages: 1,728