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
request
Controls ·  Search New posts · Mark unread

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

2025-02-09 11:22:42
Hello everyone I installed the request function with the link below

https://torrenttrader.uk/post/9869

And when I make the modification as below in the file torrents-upload.php  There is nothing displayed in the file torrents-upload.php


now open up torrents-upload.php find
Code :

write_log( sprintf(T_("TORRENT_UPLOADED"), htmlspecialchars($name), $CURUSER["username"]) );


under add
Code :

///////////////////////////// REQUESTS///////////////////

if (is_valid_id($_POST["request"])) {


  /* Fill request */

  $filledurl = "$site_config[SITEURL]/torrents-details.php?id=$id&hit=1";

  SQL_Query_exec ("UPDATE requests SET filled = '$filledurl', filledby = $CURUSER[id] WHERE id = ". $_POST['request'] ."") or die(mysqli_connect_error($GLOBALS["DBconnector"]));

  SQL_Query_exec("DELETE FROM `addedrequests` WHERE `requestid` = ". ($_POST['request'] + 0));

  write_log("The request ($torrent) was filled by " . $CURUSER["username"] . "");

/* PM for requested user */

  $requestid = $_POST['request'];

   $resp = SQL_Query_exec("SELECT users.username, requests.userid, requests.request FROM requests inner join users on requests.userid = users.id where requests.id = $requestid");

   $arr = mysqli_fetch_assoc($resp);

   $res = SQL_Query_exec("SELECT `userid` FROM `requests` WHERE `id` = ". intval($_POST['request'])) or die(mysqli_connect_error($GLOBALS["DBconnector"]));


  $msg = "".T_("REQ_MSG1").", [url=$site_config[SITEURL]/reqall.php?Section=Request_Details&id=" . $requestid . "]" . $arr['request'] . "[/url], ".T_("REQ_MSG2")." [url=$site_config[SITEURL]/account-details.php?id=" . $CURUSER['id'] . "]" . $arr['username'] . "[/url].  ".T_("REQ_MSG3")."  [url=" . $filledurl. "]" . $filledurl. "[/url].  ".T_("REQ_MSG4")." [url=$site_config[SITEURL]/reqall.php?Section=Reset&requestid=" . $requestid . "]".T_("REQ_MSG5")."[/url].  ".T_("REQ_MSG6")."";
  $subject = "Your request has been filled";

  if ($row = mysqli_fetch_assoc($res)) {

  SQL_Query_exec("INSERT INTO messages (poster, sender, receiver, added, subject, msg) VALUES(0, 0, $row[userid], '" . get_date_time() . "', " . sqlesc($subject) . ", " . sqlesc($msg) . ")");
  SQL_Query_exec("UPDATE requests SET done = '".get_date_time()."' WHERE requests.id = $requestid ");

  }
}
//////////////REQUEST END/////////////////////////////////////////////






find in torrent-upload.php
Code :

if ($site_config['ANONYMOUSUPLOAD'] && $site_config["MEMBERSONLY"] ){ ?>
  <tr><td align="right"><?php echo T_("UPLOAD_ANONY");?>: </td><td><?php printf("<input name='anonycheck' value='yes' type='radio' " . ($anonycheck ? " checked='checked'" : "") . " />".T_("YES")." <input name='anonycheck' value='no' type='radio' " . (!$anonycheck ? " checked='checked'" : "") . " />".T_("NO").""); ?> &nbsp;<i><?php echo T_("UPLOAD_ANONY_MSG");?></i>
  </td></tr>
  <?php
}


under add
Code :

//Request filled?

if ($site_config["REQUESTSON"] ){

  $sql_request = "SELECT `id`, `request` FROM requests WHERE filledby=0 ORDER BY `request` ASC";

  $res = SQL_Query_exec($sql_request);

  if (mysqli_num_rows($res) > 0) {

      $request = "<select name=\"request\">\n<option value=\"0\">(Chose the request to be filled)</option>\n";

      while ($row = mysqli_fetch_array($res)) {

          $request .= "<option value=\"" . $row["id"] . "\">" . htmlspecialchars($row["request"]) . "</option>\n";

      }

      $request .= "</select>\n";

      print("<tr><td align=right>If your upload is to fill a request, select it here</td><td align=left>$request</td></tr>");

  }

}
//end request filled?


2025-02-09 13:51:09
Niki, do you have that part of code on torrent-uppload.php?


///////////////////////////// REQUESTS///////////////////

if (is_valid_id($_POST["request"])) {
/* Fill request */
$filledurl = "$site_config[SITEURL]/torrents-details.php?id=$id&hit=1";
SQL_Query_exec ("UPDATE requests SET filled = '$filledurl', filledby = $CURUSER[id] WHERE id = ". $_POST['request'] ."") or die(mysqli_connect_error($GLOBALS["DBconnector"]));
SQL_Query_exec("DELETE FROM `addedrequests` WHERE `requestid` = ". ($_POST['request'] + 0));
write_log("The request ($torrent) was filled by " . $CURUSER["username"] . "");
/* PM for requested user */
$requestid = $_POST['request'];
$resp = SQL_Query_exec("SELECT users.username, requests.userid, requests.request FROM requests inner join users on requests.userid = users.id where requests.id = $requestid");
$arr = mysqli_fetch_assoc($resp);
$res = SQL_Query_exec("SELECT `userid` FROM `requests` WHERE `id` = ". intval($_POST['request'])) or die(mysqli_connect_error($GLOBALS["DBconnector"]));
$msg = "".T_("REQ_MSG1").", [url=$site_config[SITEURL]/reqall.php?Section=Request_Details&id=" . $requestid . "]" . $arr['request'] . "[/url], ".T_("REQ_MSG2")." [url=$site_config[SITEURL]/account-details.php?id=" . $CURUSER['id'] . "]" . $arr['username'] . "[/url].  ".T_("REQ_MSG3")."  [url=" . $filledurl. "]" . $filledurl. "[/url].  ".T_("REQ_MSG4")." [url=$site_config[SITEURL]/reqall.php?Section=Reset&requestid=" . $requestid . "]".T_("REQ_MSG5")."[/url].  ".T_("REQ_MSG6")."";
$subject = "Your request has been filled";
if ($row = mysqli_fetch_assoc($res)) {
SQL_Query_exec("INSERT INTO messages (poster, sender, receiver, added, subject, msg) VALUES(0, 0, $row[userid], '" . get_date_time() . "', " . sqlesc($subject) . ", " . sqlesc($msg) . ")");
SQL_Query_exec("UPDATE requests SET done = '".get_date_time()."' WHERE requests.id = $requestid ");
}
}
//////////////REQUEST END/////////////////////////////////////////////



and do you have "addedrequests" table?


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-02-09 14:58:59
hello botanicar and yes I have this in the file


///////////////////////////// REQUESTS///////////////////

if (is_valid_id($_POST["request"])) {


  /* Fill request */

  $filledurl = "$site_config[SITEURL]/torrents-details.php?id=$id&hit=1";

  SQL_Query_exec ("UPDATE requests SET filled = '$filledurl', filledby = $CURUSER[id] WHERE id = ". $_POST['request'] ."") or die(mysqli_connect_error($GLOBALS["DBconnector"]));

  SQL_Query_exec("DELETE FROM `addedrequests` WHERE `requestid` = ". ($_POST['request'] + 0));

  write_log("The request ($torrent) was filled by " . $CURUSER["username"] . "");

/* PM for requested user */

  $requestid = $_POST['request'];

   $resp = SQL_Query_exec("SELECT users.username, requests.userid, requests.request FROM requests inner join users on requests.userid = users.id where requests.id = $requestid");

   $arr = mysqli_fetch_assoc($resp);

   $res = SQL_Query_exec("SELECT `userid` FROM `requests` WHERE `id` = ". intval($_POST['request'])) or die(mysqli_connect_error($GLOBALS["DBconnector"]));


  $msg = "".T_("REQ_MSG1").", [url=$site_config[SITEURL]/reqall.php?Section=Request_Details&id=" . $requestid . "]" . $arr['request'] . "[/url], ".T_("REQ_MSG2")." [url=$site_config[SITEURL]/account-details.php?id=" . $CURUSER['id'] . "]" . $arr['username'] . "[/url].  ".T_("REQ_MSG3")."  [url=" . $filledurl. "]" . $filledurl. "[/url].  ".T_("REQ_MSG4")." [url=$site_config[SITEURL]/reqall.php?Section=Reset&requestid=" . $requestid . "]".T_("REQ_MSG5")."[/url].  ".T_("REQ_MSG6")."";
  $subject = "Your request has been filled";

  if ($row = mysqli_fetch_assoc($res)) {

  SQL_Query_exec("INSERT INTO messages (poster, sender, receiver, added, subject, msg) VALUES(0, 0, $row[userid], '" . get_date_time() . "', " . sqlesc($subject) . ", " . sqlesc($msg) . ")");
  SQL_Query_exec("UPDATE requests SET done = '".get_date_time()."' WHERE requests.id = $requestid ");

  }
}
//////////////REQUEST END/////////////////////////////////////////////
2025-02-09 19:15:44
I have not used this in a while, but you have to go to the request page, select "take job", then you will see it under torrents-upload in a drop-down box
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-02-09 19:30:43
@MicroMonkey  Not needed to do this

@niki   chack your PM


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-02-09 19:36:53
2025-02-09 19:47:58
what about that part in torrents-uppload.php


//==| Request filled?
if ($site_config["REQUESTSON"] ){
$sql_request = "SELECT `id`, `requestime` FROM requests WHERE filledby=0 ORDER BY `requestime` ASC";
$res = SQL_Query_exec($sql_request);
if (mysqli_num_rows($res) > 0) {
$request = "<select name='request' style='width:480px;'>\n<option value='0'>(Select request to be solved)</option>\n";
while ($row = mysqli_fetch_array($res)) {
$request .= "<option value='" . $row["id"] . "'>" . htmlspecialchars($row["requestime"]) . "</option>\n";
}
$request .= "</select>\n";
print("<tr><td align='left' class='css'>Requested torrent?:</td><td align='left' class='css-right'>$request</td></tr>");
}
}
//==| end request filled



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-02-10 17:25:03
Thank you both for the update and I will wait until there is a torrent request to check if it appears in Torrent-upload.php ๐Ÿ˜Š
2025-02-10 21:22:09
@niki make some request you self and see if it shows something... it is so easy to delete some request in PHPMyAdmin...


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-02-11 16:12:01
hello botanicar and I confirm it works and if I notice a problem I come back here
๐Ÿ˜‰
2025-02-11 16:35:15
I come back to tell you that there is still a problem because when you apply for torrents and that you want to rectify the request by clicking on edited, there is no longer any description for the request Torrent everything is erased and we have to start everything again ???
2025-02-14 13:42:47
hello I'm trying to reduce the image of torrents poster by the members because they are too large and I tried to add this but I do not find the part to modify I just find the end of code and modify no-corver with ...

width='128' height='177' border='0'
reqall.php
Download
Last edited by niki on 2025-02-14 13:44:30
2025-02-15 14:37:36
Allo niki

Allo niki Utiliser le css pour une class et รงa va permettre de lui donner un style ;) ;)

===========

Hello Niki

Use CSS for a class and it will allow you to give it a style ;)
Last edited by spiritblue on 2025-02-15 14:40:22
2025-02-16 13:24:32
ok et merci spiritblue
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