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
lang in upload
Controls ·  Search New posts · Mark unread

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

2023-10-23 15:37:59
Hello, I am looking for the modification made to be able to add a drop-down list to be able to choose and add the year of the film in the upload.torrent page so that the year is visible in my torrent page in image mode as an example in the screenshots below, thank you in advance for your help 😊


Bonjour, je cherche la modification a effectué pour pouvoir ajouter une liste déroulante pour pouvoir choisir et ajouter l'année du film dans la page de upload.torrent pour que l'année soit visible dans ma page des torrent en mode image comme exemple dans la capture d'écrans ci-dessous, merci d'avance de votre aide  😊



Last edited by niki on 2023-10-23 15:51:32
2023-10-23 21:41:34
Hi niki,
you don't need dropdown menu to do this, just pick up it from IMDB or TMBD query


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-10-24 08:20:30
Bonjour et merci botanicar mais j'ai supprimer imdb car la description n'est pas en français et pour la fonction TMDB j'ai fait plusieurs fois l'installation et ça ne fonctionne pas sur mon site  😕

Hello and thank you botanicar but I deleted imdb because the description is not in French and for the TMDB function I did the installation several times and it does not work on my site 😕
2023-10-24 16:30:46
OK @niki,
My recommendation is that you add a text field instead.

For example, you have movies between 1950 and 2023 and on to maybe 10 years to 2033 and you need to add 83 different values.

But if you add a text field with year in text format, this will be much better instead ..

Google translate on French:
Ma recommandation est d'ajouter plutôt un champ de texte. Par exemple, vous avez des films entre 1950 et 2023 et peut-être 10 ans jusqu'en 2033 et vous devez ajouter 83 valeurs différentes. Mais si vous ajoutez un champ de texte avec l'année au format texte, ce sera bien mieux.


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-10-24 17:29:42
On torrent-upload.php:

Before

$descr = $_POST["descr"];

add


//== Addition for Year
if (!empty($_POST['year']))
$year = unesc($_POST['year']);
//== Addition for Year


on

$ret = SQL_Query_exec("INSERT INTO torrents

before

image1, image2

add


year,


and before

'".$inames[0]."', '".$inames[1]."'

add


".sqlesc($year).",


put that code somewhere in html section (maybe under category field


//==| Movie / TV Show year
print ("<tr><td align='left' valign='top'><div style='margin-top:4px'>".T_("MOVIE_YEAR").":</div></td>
<td align='left' valign='top'><input type='text' name='year' size='70' placeholder='".T_("PUT_MOVIE_YEAR")."' class='btnHuge2' value='".$_POST['year']."' />
</td></tr>");

 
 
 
 
 
 
 
 
 
 
in torrent-details.php
find that BIG

$res = SQL_Query_exec("SELECT torrents

and before

torrents.seeders,


add


torrents.year,


putt that pice of code somewhere on HTML part of code


//== Addition for Year

if (!empty($row["year"])) {
print("<tr><td align="left"> Year:  </td><td align="center"> ".$row["year"]." </td></tr>");
}
else
{
print ("<tr><td align="left"> Year:  </td><td align="center"> UNKNOWN </td></tr>");
}
// === Added DDL


SQL addition


ALTER TABLE torrents ADD year varchar(4) DEFAULT NULL;










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-10-24 19:27:49
2023-11-06 19:52:41
merci beaucoup botanicar je vais regarder pour faire les modification ce week-end

thank you very much botanicar I will look to make the modifications this weekend
2024-10-13 17:08:18
Merci boys !  😉
2025-03-01 15:25:54
Hello Botanicar and I can't find the code to put for the file  torrents-edit.php

Thank you for your help
2026-03-30 14:13:09
Hello, I just reapplied this change, and it works, but I can't figure out how to modify the code to make it compatible with the torrents-edit.php file. Does anyone have any ideas? Thanks in advance.


je viens de trouver la solution pour la modification

chercher:
   $updateset[] = "visible = '" . ($_POST["visible"] ? "yes" : "no") . "'";



après ajouter:

   if (!empty($_POST['year']))
   $year = unesc($_POST['year']);
   $updateset[] = "year = " . sqlesc($year);


avant:

echo "<tr><td class='table_col1' align='right'><b>".T_("CATEGORIES").": </b></td><td class='table_col2'>".$catdropdown."</td></tr>";


ajouter cette ligne :

if ( get_user_class() >= 2 )

echo "<tr><td align='right'><b>...
</b><br/><span style='color:#54F527'id='first'>L'année de votre torrent:</span><b></td><td class='table_col2' align='left'><input id='year' type='text' name='year' value='" . htmlspecialchars($row["year"]) . "' size='60' />
Last edited by niki on 2026-03-31 10:00:42
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