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
User Posts

Go to Profile

[SOLVED] PHP 7.2 — 2019-09-29 08:49:02 in v3 Support
I'm assuming you've already tried v 3.0 and I'm also assuming your using a Web control panel like cpanel or similar which I do not use if you have tried v 3.0 what are the errors your getting back?
Enchanced Requests — 2019-09-17 07:56:38 in v3 Mods Completed
Credits to TS,Cooly and [USER=311]@MicroMonkey[/USER] for modded reqall.php
fixed all the torrents-upload section now sends a pm to the requester giving the url of there request
fixed some date format issues and no date in my requests time request was filled
ok
add to backend conf

$site_config['REQUESTSON'] = true;
$site_config['BBCODE_WITH_PREVIEW'] = true;


ok first off sql

CREATE TABLE IF NOT EXISTS `addedrequests`(
 `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
 `requestid` int(10) unsigned NOT NULL DEFAULT '0',
 `userid` int(10) unsigned NOT NULL DEFAULT '0',
 PRIMARY KEY (`id`),
 KEY `userid` (`userid`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1;


ALTER TABLE comments ADD req INT(11) NOT NULL;
ALTER TABLE comments ADD ori_text TEXT NOT NULL;
ALTER TABLE comments ADD editedby TEXT NOT NULL;
ALTER TABLE comments ADD editedat DATETIME NOT NULL;


CREATE TABLE IF NOT EXISTS `requests`(
 `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
 `userid` int(10) unsigned NOT NULL DEFAULT '0',
 `request` varchar(225) DEFAULT NULL,
 `descr` text NOT NULL,
 `added` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
 `hits` int(10) unsigned NOT NULL DEFAULT '0',
 `cat` int(10) unsigned NOT NULL DEFAULT '0',
 `filled` varchar(75) DEFAULT NULL,
 `filledby` int(10) unsigned NOT NULL DEFAULT '0',
 `comments` int(11) NOT NULL,
 `poster` varchar(255) NOT NULL,
 `profilled` int(10) unsigned NOT NULL DEFAULT '0',
 `done` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
 PRIMARY KEY (`id`),
 KEY `userid` (`userid`),
 FULLTEXT KEY `poster` (`poster`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1;


now open up functions.php before the last ?> add

function reqcommenttable($rows)
 {
 GLOBAL $CURUSER;
 begin_frame();
 $count = 0;
 foreach ($rows as $row) {
 if (isset($row["username"])) {
 $username = $row["username"];
 $ratres =SQL_Query_exec("SELECT uploaded, downloaded from users where username='$username'");
 $rat = mysqli_fetch_array($ratres);
 if ($rat["downloaded"] > 0) {
 $ratio = $rat['uploaded'] / $rat['downloaded'];
 $ratio = number_format($ratio, 3);
 $color = get_ratio_color($ratio);
  if ($color)
  $ratio = "<font color=$color>$ratio</font>";
  } elseif ($rat["uploaded"] > 0)
  $ratio = "Inf.";
  else
  $ratio = "---";
  $title = $row["title"];
  if ($title == "")
  $title = get_user_class_name($row["class"]);
  else
  $title = htmlspecialchars($title);
             print("<br><br><a name=comm" . $row["id"] . " href=account-details.php?id=" . $row["user"] . "><b>" . htmlspecialchars($row["username"]) . "</b></a>" . ($row["donor"] == "yes" ? "<img src=images/star.gif alt='Donor'>" : "") . ($row["warned"] == "yes" ? "<img src=" . "/images/requests/warned.gif alt=\"Warned\">" : "") . " ($title) (Ratio: $ratio)n");
         } else
             print("<a name=comm" . $row["id"] . "><i>(orphaned)</i></a>n");
         print(" at " . $row["added"] . " GMT" . ($row["user"] == $CURUSER["id"] || get_user_class() >= 5 ? "- [<a href=reqcomment.php?action=edit&amp;cid=$row[id]>Edit</a>]" : "") . (get_user_class() >= 5 ? "- [<a href=reqcomment.php?action=delete&amp;cid=$row[id]>Delete</a>]" : "") . ($row["editedby"] && get_user_class() >= 5 ? "- [<a href=reqcomment.php?action=vieworiginal&amp;cid=$row[id]>View original</a>]" : "") . "</p>n");
         $avatar = ($CURUSER["avatar"] != "" ? htmlspecialchars($row["avatar"]) : "");
         if (!$avatar)
             $avatar = "/images/default_avatar.gif";
         $text = format_comment($row["text"]);
         if ($row["editedby"])
             $text .= "<p><font size=1 class=small>Edited by <a href=account-details.php?id=$row[editedby]><b>$row[username]</b></a> $row[editedat] GMT</font></p>n";
         begin_table(true);
         print("<tr valign=top>n");
         print("<td align=center width=80 style='padding: 5px'><img width=80 height=80 src=$avatar></td>n");
         print("<td class=text>$text</td>n");
         print("</tr>n");
         end_table();
     }
     end_frame();

 }

if you dont have the class user function add it under the last code in function.php

function class_user($name)
{
global $site_config;
   $a ="SELECT class, donated, warned FROM `users` WHERE username ='".$name."'";
       $res = SQL_Query_exec($a);
$classy = @mysqli_fetch_row($res);
   switch ($classy[0]) {
case 8: // SYS:
$col = "#15CFCD";
break;
case 7: // ADMINISTRATORSYS:
$col = "#ff0000";
break;
case 6: // Administrator
$col = "teal";
break;
case 5: // Super Moderator
$col = "#3300CC";
break;
case 4: // Moderator
$col = "#006600";
break;
case 3: // VIP
$col = "#FFFF00";
break;
case 2: // Uploader
$col = "#33FF33";
break;
default: // User
$name = $name;
}
if ($classy[1]>0){
$star="<img src='".$site_config[SITEURL]."/images/star.gif' alt='donated' border='0'>";
}else{
$star="";
}
if($classy[2]=="yes"){
$warn="<img src='".$site_config[SITEURL]."/images/warn.gif' alt='warned' border=0>";
}else{
$warn="";
}
return unesc("<font color='".$col."'>".$name."".$star."".$warn."</font>");
}


now open up torrents-upload.php find

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

under add

///////////////////////////// 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

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

//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?

open up index.php add where you want the latest requests block to show

///////LATEST REQUESTS//////
if ($site_config['REQUESTSON']){
begin_frame("Latest Requests");
?>
<?php
$categ = (int)$_GET["category"];
$requestorid = (int)$_GET["requestorid"];
$sort = $_GET["sort"];
$search = $_GET["search"];
$filter = $_GET["filter"];
$search = " AND requests.request like '%$search%' ";
if ($sort == "votes")
$sort = " order by hits desc ";
else if ($sort == "request")
$sort = " order by request ";
else
$sort = " order by filled asc ";
if ($filter == "true")
$filter = " AND requests.filledby = 0 ";
else
$filter = "";
if ($requestorid <> NULL)
{
if (($categ <> NULL) && ($categ <> 0))
$categ = "WHERE requests.cat = " . $categ . " AND requests.userid = " . $requestorid;
else
$categ = "WHERE requests.userid = " . $requestorid;
}
else if ($categ == 0)
$categ = '';
else
$categ = "WHERE requests.cat = " . $categ;
/*
if ($categ == 0)
$categ = 'WHERE requests.cat > 0 ';
else
$categ = "WHERE requests.cat = " . $categ;
*/
$res = SQL_Query_exec("SELECT count(requests.id) FROM requests inner join categories on requests.cat = categories.id inner join users on requests.userid = users.id  $categ $filter $search") or die(mysqli_connect_error($GLOBALS["DBconnector"]));
$row = mysqli_fetch_array($res);
$count = $row[0];
$perpage = 10;
if($count>0){
$res = SQL_Query_exec("SELECT users.downloaded, users.uploaded, users.username, users.privacy, requests.filled, requests.comments,
requests.filledby, requests.id, requests.userid, requests.request, requests.added, requests.hits, categories.parent_cat as parent_cat, categories.name AS cat_name, categories.image AS cat_pic
FROM requests inner join categories on requests.cat = categories.id inner join users on requests.userid = users.id  $categ
$filter $search $sort $limit") or sqlerr();
$num = mysqli_num_rows($res);
echo $pagertop;
echo "<Table border=0 width=100% cellspacing=0 cellpadding=0><TR><TD width=50% align=left valign=bottom>";
print("<form method=get action=viewrequests.php>");
?>
</td><td width=100% align=right valign=bottom>
<?
print("</form></td></tr></table>");
print("<table width=100% cellspacing=0 cellpadding=3 class=table_table>\n");
print("<tr><td class=table_head align=center>" . T_("REQUESTS") . "</td><td class=table_head align=center>" . T_("TYPE") . "</td><td
class=table_head align=center width=150>" . T_("DATE_ADDED") . "</td><td class=table_head align=center >" . T_("ADDED_BY") . " (ratio)</td><td
class=table_head align=center>" . T_("FILLED") . "</td><td class=table_head align=center>" . T_("FILLED_BY") . "</td>
<td class=table_head align=center>" . T_("VOTES") . "</td>
</tr>\n");
for ($i = 0; $i < $num; ++$i)
{
$arr = mysqli_fetch_assoc($res);
$privacylevel = $arr["privacy"];
if ($arr["downloaded"] > 0)
  {
    $ratio = number_format($arr["uploaded"] / $arr["downloaded"], 2);
    $ratio = "<font color=" . get_ratio_color($ratio) . "><b>$ratio</b></font>";
  }
  else if ($arr["uploaded"] > 0)
      $ratio = "Inf.";
  else
      $ratio = "---";
$res2 = SQL_Query_exec("SELECT username from users where id=" . $arr['filledby']);
$arr2 = mysqli_fetch_assoc($res2);
if ($arr2['username'])
$filledby = $arr2['username'];
else
$filledby = " ";
if ($privacylevel == "strong"){
       if (get_user_class() >= 5){
           $addedby = "<td class=table_col2 align=center><a href=account-details.php?id=$arr[userid]><b>".class_user($arr['username'])." ($ratio)</b></a></td>";
       }else{
           $addedby = "<td class=table_col2 align=center><a href=account-details.php?id=$arr[userid]><b>".class_user($arr['username'])." (----)</b></a></td>";
       }
}else{
       $addedby = "<td class=table_col2 align=center><a href=account-details.php?id=$arr[userid]><b>".class_user($arr['username'])." ($ratio)</b></a></td>";
}
$filled = $arr['filled'];
if ($filled){
$filled = "<a href=$filled><font color=green><b>Yes</b></font></a>";
$filledbydata = "<a href=account-details.php?id=$arr[filledby]><b>".class_user($arr2['username'])."</b></a>";
}
else{
$filled = "<a href=reqall.php?Section=Request_Details&id=$arr[id]><font color=red><b>No</b></font></a>";
$filledbydata  = "<i>nobody</i>";
}
print("<tr><td class=table_col1 align=left><center><a href=reqall.php?Section=Request_Details&id=$arr[id]><b>".htmlspecialchars($arr["request"])."</b></a></center></td>" .
"<td class=table_col2 align=center><img border=0 class=glossy src=\"" . $site_config['SITEURL'] . "/images/categories/" . $arr["cat_pic"] . "\" alt=\"" . $arr["cat_name"] . "\" /></td>
<td align=center class=table_col1>$arr[added]</td>$addedby
<td class=table_col2><center>$filled</center></td>
<td class=table_col1><center>$filledbydata</center></td>
<td class=table_col2><center><a href=reqall.php?Section=View_Votes&requestid=$arr[id]><b>$arr[hits]</b></a></center></td>");
print("</tr>\n");
}
print("</table>\n");
print("</form>");
}else{
echo"<center><b>No requests yet! <a href='reqall.php?Section=Request'>Add new</a>";
}
echo $pagerbottom;
}else{
echo "<b><font color=red>Sorry, requests are currently disabled.<br><Br>";
}
end_frame();
////////////END LATEST REQUESTS//////////

add to languages/english.php

// Requests
   $LANG["FILLED"] = "Filled?";
   $LANG["FILLED_BY"] = "Filled By";
   $LANG["MAKE_REQUEST"] = "Make a Request";
   $LANG["MAKE_A_REQUEST"] = "Make a Request. Items marked with <font color = red><font size=3>*</font></font> are required";
   $LANG["MY_REQUEST"] = "View my request";
   $LANG["REQUEST"] = "Request";
   $LANG["REQUEST_FILL"] = "Are you filling a Request?";
   $LANG["REQUESTED_FILE"] = "File Requested";
   $LANG["REQUEST_CAT"] = "Request Category";
   $LANG["REQUEST_DESC"] = "Descriptions";
   $LANG["REQUEST_MISC1"] = "just copy / paste url of the torrent that you upload as requested in the case below";
   $LANG["REQUEST_SEND"] = "Send Request";
   $LANG["REQUEST_URL"] = "URL of the torrent of this application";
   $LANG["REQUEST_URL2"] = "DIRECT-TO-URL-HERE";
   $LANG["REQUESTED"] = "Requested Torrents";
   $LANG["REQ_VOTES_FOR"] = "Votes for : ";
   $LANG["CANT_VOTE"] = "Voting closed";
   $LANG["REQ_VOTE"] = "Vote!";
   $LANG["REQ_DATE_ADDED"] = "Time";
   $LANG["REQUEST_BY"] = "Request by";
   $LANG["REQ_TYPE"] = "Type";
   $LANG["REQ_NOBODY"] = "Nobody";
   $LANG["REQ_TABLE"] = "Requests";
   $LANG["REQ_TABLE2"] = "Make a request";
   $LANG["TAKEJOB"] = "Filled by";
   $LANG["SUCCSESS_RESET"] = "Successfully reset";
   $LANG["REQ_ADDCOMMENT"] = "Add comment";
   $LANG["REQ_NOCOMMENT"] = "Request has no comment";
   $LANG["TAKE_JOB"] = "Take Job";
   $LANG["REQ_INFO"] = "Info";
   $LANG["REQ_EDIT"] = "Edit Request";
   $LANG["TAKE_JOB_NOW"] = "Take job now";
   $LANG["SUCCESSFULLY"] = "Successfully voted for request ";
   $LANG["VOTE_FOR_THIS"] = "Vote for the this request ";
   $LANG["HERE"] = "here";
   $LANG["BACK_TO"] = "Back to";
   $LANG["ALREADY_VOTED"] = "You've already voted for this request, only 1 vote for each request is allowed.";
   $LANG["EDITED_BY"] = "Edited by";
   $LANG["UPL"] = "Upl";
   $LANG["DOWNL"] = "Downl";
   $LANG["MY_REQUESTS"] = "My requests";
   $LANG["BE_CAREFUL"] = "If you take the job, only you can fill that request. If you can't, ask an administrator or the person who made the request to reset it";
   $LANG["NOT_FILLED_YET"] = "Not filled yet";
   $LANG["ADD_A_NEW_REQUEST"] = "Add new request";
   $LANG["ADD_A_COMMENT"] = "Add a comment";
   $LANG["NO_COMMENTS"] = "No comments yet. Be first to comment this request.";
   $LANG["ADD_A_REQUEST_COMMENT"] = "Add a request comment";
   $LANG["ADD_COMMENT_TO"] = "Add comment to";
   $LANG["ADD"] = "Add";
   $LANG["SEARCH_REQUESTS"] = "Search requests";
   $LANG["INFO"] = "Info";
   $LANG["POSTED_AT"] = "Posted at";
   $LANG["REQUEST_DETAILS"] = "Request details";
   $LANG["REQUEST_DETAILS_FOR"] = "Request details for : ";
   $LANG["REQUEST_UPL1"] = "Choose the request to be filled";
   $LANG["REQUEST_UPL2"] = "Select the request and check YES if you are filling it";
   $LANG["IS_ON_THE_JOB"] = "The request is about to be uploaded, so just sit back and relax. NOTE! Do not forget to thank the uploader. <b>Sharing is caring</b> ;)";
   $LANG["TO_FILL_REQUEST1"] = "To Fill This Request :";
   $LANG["TO_FILL_REQUEST2"] = "In the first <i>tab</i> type in the correct <i>Torrent ID</i> of the Torrent. And in the second <i>tab</i> just copy/paste the correct <i>Torrent URL</i> or modify the existing URL with the correct ID number.";
   $LANG["PLEASE_ENTER_THE_FULL_URL"] = "Please enter the full URL";
   $LANG["PLEASE_ENTER_THE_TITLE"] = "Please enter the title";
   $LANG["PLEASE_ENTER_THE_FULL_URL_FOR_YOUR_IMAGE"] = "Please enter the full URL for your image";
   $LANG["PLEASE_ENTER_THE_EMAIL_ADDRESS"] = "Please enter the email addres";
   $LANG["PLEASE_PROVIDE_A_VALID_EMAIL_ADDRESS"] = "Please provide a valid email address";
   $LANG["SEARCH_TORRENTSTS"] = "Search Torrents";
   $LANG["REQUEST_INFO"] = "Request-Info";
   $LANG["REQUEST_INFO1"] = "Before posting a request, please make sure to search the site first to make sure it's not already posted.";
   $LANG["REQUEST_INFO2"] = "<u>PLEASE post an IMDB link in the description. It's easier to find what you are looking for.</u>.";
   $LANG["REQUEST_INFO3"] = "When possible, please provide a full scenerelease name.";
   $LANG["REQUEST_INFO4"] = "You can use public sites such as <a href=http://www.sceper.ws// target=_blank>SCEPER</a> or <a href=http://www.scene-rls.com target=_blank>SCENE-RLS</a> for help with that.</b>";
   $LANG["CHOOSE_TYPE"] = "Choose type";
   $LANG["POSTER"] = "Poster";
   $LANG["SHOW_MY_REQUESTS"] = "Show all";
   $LANG["DIRECT_LINK"] = "Direct URL link to Poster";
   $LANG["IMAGE_INFO"] = "The image MUST be in <b>jpg</b>, <b>jpeg</b>, <b>gif</b> or <b>png</b> format.";
   $LANG["REQ_URL"] = "You can download the <b>Request</b> from this <b>Url</b> ";
   $LANG["VIEW_ORIGINAL"] = "View original";
   $LANG["REQUEST_DELETED_OK"] = "Request Deleted OK";
   $LANG["AT_LEAST_ONE"] = "You must select at least one request to delete.";
   $LANG["ONLY_FILLED"] = "Only filled";
   $LANG["ERROR_MSG1"] = "You do not have the proper rights to view requests!";
   $LANG["ERROR_MSG2"] = "Requests has been disabled!";
   $LANG["REDIRECTING"] = "Redirecting";
   $LANG["ERROR_MSG3"] = "That request doesn't exist.";
   $LANG["INVALID_URL"] = "Invalid Url";
   $LANG["REQ_MSG1"] = "Your request";
   $LANG["REQ_MSG2"] = "has been filled by";
   $LANG["REQ_MSG3"] = "You can download your request from";
   $LANG["REQ_MSG4"] = "Please do not forget to leave thanks where due.  If for some reason this is not what you requested, please reset your request so someone else can fill it by following";
   $LANG["REQ_MSG5"] = "THIS LINK";
   $LANG["REQ_MSG6"] = "Please do NOT follow this link unless you are sure that this does not match your request.";
   $LANG["THE_REQUEST"] = "The request";
   $LANG["DELETED_THE_REQUEST"] = "deleted the request";
   $LANG["FILLED_WITH"] = "was successfully filled with";
   $LANG["PMD"] = "User has been automatically PMd.  <br />Filled that accidently? No worries";
   $LANG["AS_UNFILLED"] = "to mark the request as unfilled.  Do <b>NOT</b> follow this link unless you are sure there is a problem.";
   $LANG["THANK_YOU_FOR_FILLING"] = "Thank you for filling a request";
   $LANG["VIEW_MORE"] = "View More Requests";
   $LANG["SUCCESSFULLY_RESET"] = "successfully reset.";
   $LANG["CANNOT_RESET"] = "Sorry... cannot reset a request when you are not the owner.";
   $LANG["ERROR_MSG4"] = "You Are Only Allowed To Have 2 <u>Unfilled</u> Requests Running At One Time!";
   $LANG["SCENE_RELEASE_NAME"] = "Movie/TV show or file title here";
   $LANG["BE_GENEROUS"] = "Additional Information <b>(Post an IMDb link below if you have one.)</b>";
   $LANG["DELETED"] = "Deleted";
   $LANG["REQUEST_ID"] = "Request ID";
   $LANG["NO_PERMISSION"] = "No Permission to delete Request ID";
   $LANG["DELETE_MY_REQUESTS"] = "Delete my requests";
   $LANG["AUTOLINK1"] = "<font color=red>Please add a description to your request ... An IMDb link would be helpful.</font>";
   $LANG["AUTOLINK2"] = "<font color=red>Do you have a bad day today? Did you fill in <i><u>all</u></i> necessary fields?&nbsp;&nbsp;I don't think so...&nbsp;&nbsp;You forgot to name your request ROFL....&nbsp;&nbsp;</font>";
   $LANG["AUTOLINK3"] = "<font color=red>Ahh... no <i><u>CATEGORY</u></i> &nbsp;my little friend? ... You are forgiven, lol. &nbsp;But only because i'm having a good day.&nbsp;&nbsp;;)&nbsp;&nbsp;</font>";
   $LANG["NEW_REQUEST"] = "A New Request";
   $LANG["HAS_BEEN_MADE"] = "has been made.";
   $LANG["YOU_CAN_NOT_VOTE"] = "You can not vote for this request someone is already on the job!";
   $LANG["AGO"] = "ago";
   $LANG["BAD_ID"] = "Bad ID";
   $LANG["NO_TORRENT_ID"] = "No Torrent ID was entered!";
   $LANG["NO_TORRENT_ID_URL"] = "No Torrent ID was entered in the URL area of the request form!";
   $LANG["A"] = "a";
   $LANG["T"] = "t";
   $LANG["GENRE"] = "Genre";
   $LANG["WRONG_ID"] = "Wrong ID";
   $LANG["WRONG_REQUEST_WITH_ID"] = "No request with ID";
   $LANG["NO_BLANK_FIELDS"] = "Don't leave any fields blank!";
   $LANG["REVERSE_ORDER"] = "Last comments in reverse order.";
   $LANG["EDITED_SUCCSESSFULLY"] = "Post was edited successfully.";
   $LANG["DELETE_COMMENT"] = "Delete comment";
   $LANG["DELETE_THIS_COMMENT"] = "You`re about to delete this comment. Click";
   $LANG["ACCESS_DENIED"] = "Access denied.";
   $LANG["ORIGINAL_CONTENT"] = "Original content of comment";
   $LANG["UNKNOWN_ACTION"] = "Unknown action";
   $LANG["NO_POSTER_FOUND"] = "No poster found";
   $LANG["VIEW_ORIGINAL_POST"] = "View Original Post";
   $LANG["REQUEST_BEEN_FILLED"] = "Your request has been filled";
   $LANG["IF_YOU_ARE_SURE"] = "if you are sure.";
   $LANG["JOIN"] = "Join";
   $LANG["ITS_TAKEN"] = "It's taken";
   $LANG["A_NEW_TORRENT"] = "A New Torrent";
   $LANG["HAS_BEEN_UPLOADED"] = "has been uploaded";
   $LANG["THE_REQUEST"] = "The Request";
   $LANG["HAS_BEEN_FILLED"] = "has been filled";
   $LANG["REQUIRED"] = "Items marked with <font color = red><font size=3>*</font></font> are required";

add zip php files to root and requests folder to images folder if ive missed somthing (possible its a big mod ) ill try sort it
yeah bud that seems to have fixed the issue and this reqall is much nicer thanks [USER=311]@MicroMonkey[/USER] ill test it out and if alls well ill post in complete
Cheers bud ill check it out when I get in ?
* MOVED TO MODS COMPLETE
Credits to deicide
this will make your backup trackers collapsible in torrent-deatils

find in torrent-details

echo "<br /><b>".T_("THIS_TORRENT_HAS_BACKUP_TRACKERS")."</b><br />";


replace with

echo "<center><br /><b>".T_("THIS_TORRENT_HAS_BACKUP_TRACKERS").":</b>&nbsp;<img src='images/plus.gif' id='pic1' onclick='klappe_torrent(4)'><div id='k4' style='display:none'>";
Ajax Shoutbox V3 — 2019-09-09 05:53:34 in v3 Mods in Progress
try this ajaxshoutbox.js script backup your old one first
post you're code incase other people might like it (y)?
you will need to edit backend functions

look for

function pager($rpp, $count, $href, $opts = array()) {

and look into this part of the code

   $start = $i * $rpp + 1;

           $end = $start + $rpp - 1;


i dont use comments on my site as my site isnt a tracker more of an torrent indexer
if you do mess about with this bare in mind it will change all pagenation ie forums etc would be better to copy the function and change it to what you need
not sure if this is what you want but it will show last comments first
in torrents-deatils
change

$commquery = "SELECT comments.id, text, user, comments.added, avatar, signature, username, title, class, uploaded, downloaded, privacy, donated FROM comments LEFT JOIN users ON comments.user = users.id WHERE torrent = $id ORDER BY comments.id $limit";


to this

$commquery = "SELECT comments.id, text, user, comments.added, avatar, signature, username, title, class, uploaded, downloaded, privacy, donated FROM comments LEFT JOIN users ON comments.user = users.id WHERE torrent = $id ORDER BY comments.added DESC $limit";
Ajax Shoutbox V3 — 2019-09-08 13:09:20 in v3 Mods in Progress
I don't use this Probably a javascript issue check index.php
yeah thats the old scrapper the original one [USER=311]@MicroMonkey[/USER] posted in the first thread
if you need any help [USER=19833]@Botanicar[/USER] send me a pm ive upgraded my old v2.08 to php7.2 and mysqli
its not perfect by any means is why its still in here hoping a couple more people can put some input in to get it fully completed
defualt v3 torrent-details
try this should do both
add both files to backend

add at top of torrents-details.php


require_once("backend/scraper.php");
require_once("backend/udpscraper.php");


replace scrape code in torrents-details with


//===| UDP Scraper
$tress = SQL_Query_exec("SELECT * FROM `announce` WHERE `torrent` = $id");
if (mysqli_num_rows($tress) > 1){
$resu = SQL_Query_exec("SELECT url FROM announce WHERE torrent=$id");
}
else
{
$resu = SQL_Query_exec("SELECT id, info_hash, announce FROM torrents WHERE external = 'yes' AND id = $id");
}
while ($rowu = mysqli_fetch_array($resu)){
if (mysqli_num_rows($tress) > 1){
$ann = $rowu["url"];
}else{
$ann = $rowu["announce"];  
}
$annlist = array($ann);
$seeders = $leechers = $downloaded = NULL;
foreach ($annlist as $ann)                  
{
$tracker = explode("/", $ann);
$path = array_pop($tracker);
$oldpath = $path;
$tracker = implode("/", $tracker)."/".$path;
if ($oldpath == $path){
continue;
}
}

if ( substr( $tracker, 0, 3 ) == 'udp' ){
   $udp=true;
   try
{
$info = $row['info_hash'];  
$udp = new udptscraper( 5 );
$stats = $udp->scrape($tracker,$info);
foreach ($stats as $idu=>$scrape)
{
$seeders1 += $scrape['seeders'];
$leechers1 += $scrape['leechers'];
$downloaded1 += $scrape['completed'];
}
}
catch(ScraperException $e)
{
$e->isConnectionError();
}
}
elseif ( substr( $tracker, 0, 4 ) == 'http' ){  
try
{

$info = $row['info_hash'];  
$http = new scrapeer\scraper( 5);
$stats = $http->scrape($info,$tracker);

foreach ($stats as $idu=>$scrape)
{
$seeders2 += $scrape['seeders'];
$leechers2 += $scrape['leechers'];
$downloaded2 += $scrape['completed'];
echo'<pre>';
print_r($scrapeA['seeders']);
echo '</pre>';
}
}
catch(ScraperException $e)
{
$e->isConnectionError();
}
}
elseif ( substr( $tracker, 7, 4 ) == 'ipv6' ){

   echo ( 'ipv6 not supported...' );

}
 $seeders = $seeders1 += $seeders2;
 $leechers = $leechers1 += $leechers2;
 $downloaded = $downloaded1 += $downloaded2;
if ($scrape['seeders'] != -1)
{
             
 SQL_Query_exec("UPDATE `announce` SET `online` = 'yes', `seeders` = '" .max(0, $scrape['seeders'])."', `leechers` = '" . $scrape['leechers'] ."', `times_completed` = '".$scrape['completed']."' WHERE `url` = ".sqlesc($ann)." AND `torrent` = $id");
       } else {
         SQL_Query_exec("UPDATE `announce` SET `online` = 'no' WHERE `url` = ".sqlesc($ann)." AND `torrent` = $id");

       }
     }

if ($seeders != -1)
{
SQL_Query_exec("UPDATE torrents SET leechers = '". max(0, $leechers) ."', seeders = '". max( 0, $seeders ) ."', times_completed = '". max(0, $downloaded ) ."', last_action = '".get_date_time()."', visible = 'yes' WHERE id = '".$row['id']."'");
}
else
{
SQL_Query_exec("UPDATE torrents SET last_action = '".get_date_time()."' WHERE id ='".$row['id']."'");
}

//===| End UDP Scraper

                   
           if ($seeders !=-1)
           {
               print ("<div style='margin-bottom:5px; margin-left:20px'><b>".T_("LIVE_STATS")."</b>: </div>");
               print ("<div style='margin-left:20px'>".T_("SEEDERS").": <font color='limegreen'>". max( 0, number_format($seeders )) ."</font></div>");
               print ("<div style='margin-left:20px'>".T_("LEECHERS").": <font color='#FF2000'>". max( 0, number_format($leechers )) ."</font></div>");
               print ("<div style='margin-left:20px'>".T_("COMPLETED").": <font color='#0080FF'>". max( 0, number_format($downloaded )) ."</font></div>");
           }
           else
           {
               print ("<div style='margin-top:10px; margin-bottom:5px' align='center'><b>".T_("LIVE_STATS")."</b>: </div>");
               print ("<div style='font:italic 14px Times' align='center'><font color='#FF2000'>".T_("TRACKERS_OFFLINE")."!</font></div>");
           }
           print ("<div style='margin-top:10px; margin-bottom:10px' align='center'>
               <a href='torrents-details.php?id=".$id."'><input type='submit' name='submit' value=".T_("SUBMIT")."></a>
           </div>");
           print ("</td>");
       }
       else
       {
           print ("<td class='table_col1' width='150' border='0' valign='middle' align='center'>
               <div style='margin-top:5px; margin-bottom:10px; font:bold 16px Times' align='center'><font color='#FF2000'>".T_("EXTERNAL_TORRENT")."</font></div>
               <div style='font:normal 12px Times' align='center'>".T_("UPDATE_STATS")."</div></div>
                   <form action='torrents-details.php?id=$id&amp;scrape=1' method='post'>
                       <div style='margin-top:5px; margin-bottom:10px' align='center'><input type='submit' name='submit' value=".T_("UPDATE")." /></div>
                   </form>
               </td>");
       }
       print ("</tr></table></td>");
   }
   //===| End Scrape External Torrents
Still trying to get http scrape integrated into udp to be honest totally forgot about this got side tracked ill take another look this weekend
Ajax Star Rating — 2019-09-02 16:07:28 in v3 Mods Completed
It's instant on my Dev and main sight ive  just installed it on a fresh install of V3 and it's instant could there be some other code in torrent-details making it slow? Or Server load could someone else install and see if it's the same for them please
Ajax Star Rating — 2019-09-01 19:47:48 in v3 Mods Completed
im not quite sure what you mean the page takes 10 seconds to load ? or ?
Don't know if anyone else is getting this error but the blocks section is not staying enabled when I revisit the admin config page it's saying there all disabled but in backend/config it's enabled
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