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

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

Unknown User
2019-09-17 07:56:38
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
Requests.zip
Download
2020-05-20 11:51:00
Hi am trying to add this mod but for some reason i can't get it working. Whenever i try to add the code to the index.php i get a parser error. Any help please

Parse error: syntax error, unexpected end of file in D:\laragon\www\index.php on line 274

Now this is the code i have at line 273 and 274

stdfoot();
?>
Torrent Trader PDO/MVC 2021
Xampp Windows 10 21H1
Apache Version: Apache/2.4.48 (Win64)
Mysql Version: 10.4.20-MariaDB
PHP Version: 8.0.9
2020-05-20 17:21:40
php tags may need to be different try change this part of code above for index or post your index

///////LATEST REQUESTS//////
if ($site_config['REQUESTSON']){
begin_frame("Latest Requests");
?>
<?php
$categ = (int)$_GET["category"];


with
///////LATEST REQUESTS//////
if ($site_config['REQUESTSON']){
begin_frame("Latest Requests");
$categ = (int)$_GET["category"];


if that does not do it this part might be causing it so you can try switch it about
?>
</td><td width=100% align=right valign=bottom>
<?


[color=rgb(247, 218, 100)]?> OR TRY <?php[/color]
</td><td width=100% align=right valign=bottom>
[color=rgb(247, 218, 100)]?> OR TRY <?php[/color]
2020-05-20 17:47:49
Thank you. so played around with the given code and its definitely that last section.

?>
</td><td width=100% align=right valign=bottom>
<?

This is my code not sure if it is correct but request section is working and no more parser error :)

?>
</td><td width=100% align=right valign=bottom>
<?php

Can one disable it so it does not show on the main page. With a lot of requests the main page would be flooded

[ATTACH type="full"]5543[/ATTACH]

sorry for all the questions i don't know much of this coding stuff
Screenshot_3.png
Screenshot_3.png

Torrent Trader PDO/MVC 2021
Xampp Windows 10 21H1
Apache Version: Apache/2.4.48 (Win64)
Mysql Version: 10.4.20-MariaDB
PHP Version: 8.0.9
2020-05-20 21:04:36
just remove the index.php edits and it will not show on your page, you would have to go visit the actual requests part of your site to see requests :)
As for the ?> and <? issues you may be having, just make sure you have "short open tags" turned ON in your php.ini, but the easiest thing to do is just use regular full php tags, instead of <? use <?php, its pretty simple. The closing tag will always be ?>
If you find something like this
<?=$site_config['SITENAME']?>

Dont just edit that type of <? willy-nilly, its shorthand for ECHO, so it would be like
<?php echo $site_config['SITENAME']?>

So look for that EQUAL sign before you just edit it, if you plan to close all short open tags in your code
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)
2020-05-20 23:14:39
If it helps - test runner. Name anything you like. Use root /

<?php
require_once('backend/functions.php');
dbconn();
error_reporting(E_ALL); // E_ALL => 0 : off
stdhead("Runner");

// Code all in here

stdfoot();
?>
2020-05-21 13:15:22
Thanks for all the info :)

just one last question where can i edit the cut length in the view requests page since its a bit short i tried looking in the reqall.php maybe i missed it or looking in the wrong place lol


[ATTACH type="full" alt="download.jpg"]5548[/ATTACH]

EDIT: Never mind Found it i was just blind ?
download.jpg
download.jpg

Torrent Trader PDO/MVC 2021
Xampp Windows 10 21H1
Apache Version: Apache/2.4.48 (Win64)
Mysql Version: 10.4.20-MariaDB
PHP Version: 8.0.9
2020-05-24 12:52:46
hey all so why does these lines not show up only the first 2 shows is there something i need to edit for it to show up?

$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>";
Torrent Trader PDO/MVC 2021
Xampp Windows 10 21H1
Apache Version: Apache/2.4.48 (Win64)
Mysql Version: 10.4.20-MariaDB
PHP Version: 8.0.9
2020-05-24 12:57:22
Anything missing, add to language file
2020-05-24 13:02:47
line 721 and 722 are commented out in reqall.php. uncomment to use them. Remove <!-- from the start of the line and remove --> from the end
[ATTACH type="full" alt="Capture.PNG"]5555[/ATTACH]
Capture.PNG
Capture.PNG

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)
2020-05-24 13:09:10
ah man i did not look in there again lack of knowledge ?  thanks guys
Torrent Trader PDO/MVC 2021
Xampp Windows 10 21H1
Apache Version: Apache/2.4.48 (Win64)
Mysql Version: 10.4.20-MariaDB
PHP Version: 8.0.9
2020-05-24 13:49:27
"x7razor, post: 68650, member: 20348":

ah man i did not look in there again lack of knowledge ?  thanks guys

No worries :) We are always learning, and thats a good thing. Sharing is caring
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)
2020-09-06 13:09:00
Hi all been a while hope everyone is doing ok  :)

Got a little question is it possible to add the username to the request that is displayed in the shoutbox when someone makes a request?

Currently is shows up like this
[ATTACH type="full" alt="download.png"]5885[/ATTACH]

Can it be made like this
[ATTACH type="full" alt="download2.jpg"]5886[/ATTACH]
download.png
download.png
download2.jpg
download2.jpg

Torrent Trader PDO/MVC 2021
Xampp Windows 10 21H1
Apache Version: Apache/2.4.48 (Win64)
Mysql Version: 10.4.20-MariaDB
PHP Version: 8.0.9
2020-09-06 16:20:29
Hello it works fine but when I validate to send the request I get this error message ??

Database Error. Please report this to an administrator.



and in the error log in the cp staff I have this

Database Error in reqall.php on line 1028: Field 'comments' doesn't have a default value. Query was: INSERT INTO requests (hits, userid, cat, request, descr, poster, added) VALUES
2020-09-07 04:52:28
Assign a default value with a condition, or use SQL client or phpmyadmin and set a default value of 0
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