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

Poll — 2014-08-08 18:56:23 in General Chat
Are you beginning to get a little tired of TT Poll and is looking for something new?  :rolleyes:

Here you find a Ajax Poll script that which is quite nice. [url="http://www.phpkobo.com/ajax_poll.php"]http://www.phpkobo.com/ajax_poll.php[/url]

It's easy to install and easy to handle with the Ajax-Poll-Admin.  ;)
He he your welcome. It was annoying me so why not share it.  :P
Not a big deal he he.

In torrents-details.php comment out or delete this :

if ($row["image1"] != "" OR $row["image2"] != "") {
 if ($row["image1"] != "")
   $img1 = "<img src='".$site_config["SITEURL"]."/uploads/images/$row[image1]' width='150' border='0' alt='' />";
 if ($row["image2"] != "")
   $img2 = "<img src='".$site_config["SITEURL"]."/uploads/images/$row[image2]' width='150' border='0' alt='' />";
 print("<center>". $img1 . "&nbsp;&nbsp;" . $img2."</center><br />");
}

and change it with this:

begin_frame("".T_("POSTERS")."");
     echo "<br />";
 echo "<table align='center' cellpadding='3' width='50%' border='0'>";
if ($row["image1"] == "")
     echo "<tr><td align='center'><img src='".$site_config["SITEURL"]."/images/no-poster.jpg' width='150' border='0' alt='' /></td>";
if ($row["image1"] != "")
     echo "<tr><td align='center'><img src='".$site_config["SITEURL"]."/uploads/images/$row[image1]' width='150' border='0' alt='' /></td>";
if ($row["image2"] == "")
     echo "<td align='center'><img src='".$site_config["SITEURL"]."/images/no-poster.jpg' width='150' border='0' alt='' /></td></tr>";
if ($row["image2"] != "")
 echo "<td align='center'><img src='".$site_config["SITEURL"]."/uploads/images/$row[image2]' width='150' border='0' alt='' /></td></tr>";
     echo "</table>";
 echo "<br />";
end_frame();

Save and close and thats it.  :ph34r:

And thats wy we all hate OPEN TRACKERS he he. Do you have members to? If you do, make it available only for members. I mean just contact.php. Maby im out on deep water here. i never tested to have the site open.
A small update :

In account-details.php :

Comment out, or delete this :

<?php echo T_("AGE"); ?>: <?php echo htmlspecialchars($user["age"])?><br />

Beneath :

<?php echo T_("COUNTRY"); ?>: <?php echo $country?><br />

Insert this :


<?php
if ($CURUSER[birthday] != "0000-00-00") {
   $current = date("Y-m-d", time());
   list($year2, $month2, $day2) = explode('-', $current);
   $birthday = $CURUSER["birthday"];
   $birthday = date("Y-m-d", strtotime($birthday));
   list($year1, $month1, $day1) = explode('-', $birthday);
if ($month2 < $month1) {
   $age = $year2 - $year1 - 1;
   }
if ($month2 == $month1) {
if ($day2 < $day1) {
   $age = $year2 - $year1 - 1;
   } else {
   $age = $year2 - $year1;
   }
   }
if ($month2 > $month1) {
   $age = $year2 - $year1;
   }
   }
   echo"".T_("AGE").": ".$age." <br />";
$birthday = date("d.m.Y", strtotime($birthday));
if ($CURUSER[birthday] != "0000-00-00") {
echo"".T_("BIRTHDAY").": ".$birthday." <br />";
}else{
echo"".T_("BIRTHDAY").": NONE ADDED<br />";
}
?>
Credit to the author.

This is what i come up with,  This works on my site.

Try this :

RUN SQL :

ALTER TABLE `users` DROP `age`;
ALTER TABLE `users` ADD `birthday` date default '0000-00-00';

account-signups.php

Under :

function validusername($username) {
$allowedchars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
for ($i = 0; $i < strlen($username); ++$i)
if (strpos($allowedchars, $username[$i]) === false)
return false;
return true;
}

Insert this:

$year = (int)$_POST["year"];
$month = (int)$_POST["month"];
$day = (int)$_POST["day"];

if (!$year || !$month || !$day)
$message = T_("DAY_PARTY_YOU");
   $birthday = "$year-$month-$day";

Comment out or delete this :

$age = (int) $_POST["age"];

In the big query :

SQL_Query_exec("INSERT INTO users (username,...

Replace : age and $age
with : birhtday and $birthday

Comment out or delete this :

<tr>
   <td align="right"><?php echo T_("AGE"); ?>:</td>
   <td><input type="text" size="40" name="age" maxlength="3" /></td>
</tr>

and insert this :

<tr>
<?php echo "<td class=table_col1 align=left>".T_("DATE_OF_BIRTH").": <font class=required color=#FF0000>*</font></td><td class=table_col1 align=left>";
echo "<select name='day'>n";
echo "<option value='0'>".T_("AGEDAY")."</option>n";
for ($d=1;$d<=31;$d++) {
$s = $d == $day ? 'selected' : '';
echo "<option value='$d' $s>$d</option>n";
}
echo "</select>n";
echo "<select name='month'>n";
echo "<option value='0'>".T_("AGEMONTH")."</option>n";
for ($m=1;$m<=12;$m++) {
$s = $m == $month ? 'selected' : '';
printf("<option value='$m' $s>%s</option>n",date("m", mktime(0,0,0,$m,1,1970)));
}
echo "</select>n";
echo "<select name='year'>n";
echo "<option value='0'>".T_("AGEYEAR")."</option>n";
for ($y=1909;$y<=date('Y');$y++) {
$s = $y == $year ? 'selected' : '';
echo "<option value='$y' $s>$y</option>n";
}
echo "</select></td>";?>
</tr>

Save and close.

account-signups.php

Under this :

if ($user["uploaded"] > 0 && $user["downloaded"] == 0)
$ratio = "Inf.";
elseif ($user["downloaded"] > 0)
$ratio = number_format($user["uploaded"] / $user["downloaded"], 3);
else
$ratio = "---";

Insert this :

if ($CURUSER[birthday] != "0000-00-00") {
   $current = date("Y-m-d", time());
   list($year2, $month2, $day2) = explode('-', $current);
   $birthday = $CURUSER["birthday"];
   $birthday = date("Y-m-d", strtotime($birthday));
   list($year1, $month1, $day1) = explode('-', $birthday);
if ($month2 < $month1) {
   $age = $year2 - $year1 - 1;
   }
if ($month2 == $month1) {
if ($day2 < $day1) {
   $age = $year2 - $year1 - 1;
   } else {
   $age = $year2 - $year1;
   }
   }
if ($month2 > $month1) {
   $age = $year2 - $year1;
   }
   }

After :

<?php echo T_("AGE"); ?>: <?php echo htmlspecialchars($user["age"])?><br />

Insert this :

<?php echo T_("BIRTHDAY"); ?>: <?php echo htmlspecialchars($user["birthday"])?><br />

Save and close.

account.php

After this :

<b><?php echo T_("JOINED"); ?>:</b> <?php echo utc_to_tz($CURUSER["added"]); ?><br />

Insert this :

<?php
if ($CURUSER[birthday] != "0000-00-00") {
   $current = date("Y-m-d", time());
   list($year2, $month2, $day2) = explode('-', $current);
   $birthday = $CURUSER["birthday"];
   $birthday = date("Y-m-d", strtotime($birthday));
   list($year1, $month1, $day1) = explode('-', $birthday);
if ($month2 < $month1) {
   $age = $year2 - $year1 - 1;
   }
if ($month2 == $month1) {
if ($day2 < $day1) {
   $age = $year2 - $year1 - 1;
   } else {
   $age = $year2 - $year1;
   }
   }
if ($month2 > $month1) {
   $age = $year2 - $year1;
   }
   }
   echo"<b>".T_("AGE").":</b> ".$age." <br />";
   $birthday = date("d.m.Y", strtotime($birthday));
if ($CURUSER[birthday] != "0000-00-00") {
   echo"<b>".T_("BIRTHDAY").":</b> ".$birthday." <br />";
   }else{
   echo"<b>".T_("BIRTHDAY").":</b> <br />";
   }
?>

After this :

// START CAT LIST SQL
$r = SQL_Query_exec("SELECT id,name,parent_cat FROM categories ORDER BY parent_cat ASC, sort_index ASC");
if (mysql_num_rows($r) > 0)
{
$categories .= "<table><tr>n";
$i = 0;
while ($a = mysql_fetch_assoc($r))
{
 $categories .=  ($i && $i % 2 == 0) ? "</tr><tr>" : "";
 $categories .= "<td class='bottom' style='padding-right: 5px'><input name='cat$a[id]' type="checkbox" " . (strpos($CURUSER['notifs'], "[cat$a[id]]") !== false ? " checked='checked'" : "") . " value='yes' />&nbsp;" .htmlspecialchars($a["parent_cat"]).": " . htmlspecialchars($a["name"]) . "</td>n";
 ++$i;
}
$categories .= "</tr></table>n";
}

// END CAT LIST SQL

Insert this    :

$birthday = $CURUSER["birthday"];
   $birthday = date("Y-m-d", strtotime($birthday));
   list($year1, $month1, $day1) = explode('-', $birthday);
if ($CURUSER[birthday] == "0000-00-00") {
   $year .= "<select name='year'><option value='0000'>".T_("AGEYEAR")."</option>n";
   $i = "1920";
   while ($i <= (date('Y', time()) - 13)) {
   $year .= "<option value='" . $i . "'>" . $i . "</option>n";
   $i++;
   }
   $year .= "</select>n";
   $birthmonths = array("01" => T_(JANUARY), "02" => T_(FEBRUARY), "03" => T_(MARCH),
   "04" => T_(APRIL), "05" => T_(MAY), "06" => T_(JUNE), "07" => T_(JULY), "08" => T_(AUGUST),
   "09" => T_(SEPTEMBER), "10" => T_(OCTOBER), "11" => T_(NOVEMBER), "12" => T_(DECEMBER));
   $month = "<select name='month'><option value='00'>".T_("AGEMONTH")."</option>n";
   foreach ($birthmonths as $month_no => $show_month) {
   $month .= "<option value='$month_no'>$show_month</option>n";
   }
   $month .= "</select>n";
   $day .= "<select name='day'><option value='00'>".T_("AGEDAY")."</option>n";
   $i = 1;
   while ($i <= 31) {
if ($i < 10) {
   $day .= "<option value='0" . $i . "'>0" . $i . "</option>n";
   } else {
   $day .= "<option value='" . $i . "'>" . $i . "</option>n";
   }
   $i++;
   }
   $day .= "</select>n";
   print("<tr><td align='right' class='table_col1'><b>".T_("DATE_OF_BIRTH").": </b></td><td class='table_col1'> $year . $month . $day</td></tr>");
   }
if ($CURUSER[birthday] != "0000-00-00") {
   print("<tr><td align='right' class='table_col1'><b>" . T_("DATE_OF_BIRTH") . ": </b></td><td class='table_col1'><input type='hidden' name='year' value='$year1' />$year1<input type='hidden' name='month' value='$month1' />.$month1<input type='hidden' name='day' value='$day1' />.$day1</b></td></tr>");
   }

Comment out, or delete this :

print("<tr><td align='right' class='table_col1'><b>" . T_("AGE") . ":</b> </td><td align='left' class='table_col1'><input type='text' size='3' maxlength='2' name='age' value="" . htmlspecialchars($CURUSER["age"]) . "" /></td></tr>");

After this :

print("<tr><td align='right' class='table_col1'><b>".T_("RESET_PASSKEY").":</b> </td><td align='left' class='table_col1'><input type='checkbox' name='resetpasskey' value='1' />&nbsp;<i>".T_("RESET_PASSKEY_MSG").".</i></td></tr>");

Insert this :

print( "<tr><td align='right' class='table_col1'><b>" . T_("RESET_OF_BIRTH") . ": </b></td><td class='table_col1' align='left'><input name='birthday' value='1' type='checkbox' />&nbsp;<i>" . T_("RESET_BIRTH_DATE"). ".</i></td></tr>n" );

Comment out, or delete this :

$age = (int)$_POST["age"];

And this :

if (is_valid_id($age))
$updateset[] = "age = '$age'";

Before this :

$hideshoutbox = ($_POST["hideshoutbox"] == "yes") ? "yes" : "no";

Insert this :

$year = $_POST ["year"];
     $month = $_POST ["month"];
     $day = $_POST ["day"];
     $birthday = date ( "$year.$month.$day" );
     $updateset[] = "birthday = " . sqlesc($birthday);
if ((isset($_POST['birthday'])) && (($birthday = $_POST['birthday']) != ($curbirthday = $CURUSER['birthday']))) {
     $newbirthday = '0000-00-00';
     $modcomment = gmdate("Y-m-d") . " - BIRTHDAY " . sqlesc($user['birthday']) . " Reset to " . sqlesc($newbirthday) . " by " . $CURUSER['username'] . ".n" . $modcomment;
     $updateset[] = "birthday = " . sqlesc($birthday);
     }

Save and close.

Insert into enlish.php :

//Birthday
$LANG["BIRTHDAY"] = "Birthday";
$LANG["RESET_BIRTH_DATE"] = "Reset Birth Date";
$LANG["RESET_OF_BIRTH"] = "Reset Your Date Of Birth";
$LANG["DATE_OF_BIRTH"] = "Date Of Birth";
$LANG["AGEDAY"] = "Day";
$LANG["AGEMONTH"] = "Month";
$LANG["AGEYEAR"] = "Year";
$LANG["JANUARY"] = "January";
$LANG["FEBRUARY"] = "February";
$LANG["MARCH"] = "March";
$LANG["APRIL"] = "April";
$LANG["MAY"] = "May";
$LANG["JUNE"] = "June";
$LANG["JULY"] = "July";
$LANG["AUGUST"] = "August";
$LANG["SEPTEMBER"] = "September";
$LANG["OCTOBER"] = "October";
$LANG["NOVEMBER"] = "November";
$LANG["DECEMBER"] = "December";

Save and close.

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=7071"]Birthdaymode.php[/url]
For those who have the same problem that I had "PHP issue" get it working like this.

In subtitles.php change this:

if ($HTTP_SERVER_VARS["REQUEST_METHOD"] == "POST")


to this:

if ($_SERVER["REQUEST_METHOD"] == "POST")


and in downloadsubs.php change this:

$filename = substr($HTTP_SERVER_VARS["PATH_INFO"], strrpos($HTTP_SERVER_VARS["PATH_INFO"], "/") + 1);


to this:

$filename = substr($_SERVER["PATH_INFO"], strrpos($_SERVER["PATH_INFO"], "/") + 1);


And thank you @BigMax1 for a great mod.
I need some help here.   :rolleyes:  I can not make this work at all lol.  When i try to upload a file nothing happends. No error, nothing in datbase.  :(
It makes you wonder how they manage their own sites.  :blink:
Hello TorrentTrader — 2014-05-16 05:22:57 in General Chat
ROFL
Last comments — 2014-05-06 17:26:23 in v2.08 Mods Completed
First of all, credit to the author someone on "tbdev" i think it was.

There was a request in the old forum if someone could make it work in v2.08

INFO : This lets you manage torrent comments for the last seven days.

This is what i come up with:

Upload "commentslast.php" to root.

And the image to image folder.

Copy to english.php:

//Last Comments
$LANG["RECENT_COMMENTS"] = "Recent Comments";
$LANG["COMMENTS_LAST_SEVEN_DAYS"] = "Comments the last seven days";
$LANG["MANAGE_COMMENTS"] = "Manage comments";
$LANG["NEWEST"] = "Newest";
$LANG["RELEASE_ID"] = "Release ID";
$LANG["REMOVE_SELECTED"] = "Remove selected!";
$LANG["SELECT_ALL"] = "Select all";
$LANG["ARE_YOU_SURE"] = "Are you sure?";
$LANG["NO_COMMENTS_TO_DISPLAY"] = "No comments to display";
$LANG["ID"] = "ID";
$LANG["DELETE_COMMENTS_LAST"] = "Success! The comment was deleted";



[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6991"]commentslast.php[/url]
Thanks a lot @BigMax1!   :P This mod, I just have to test. I have PHP Version: 5.3.27
Hello TorrentTrader — 2013-09-25 16:55:22 in General Chat
What's going on here, no info at all about what is going on.  <_<  Don't get me wrong am glad it's back on track.  :P
Helpdesk tbdev — 2013-09-16 19:26:44 in v2.08 Mods Completed
Here is my version with class_user function.

Run this SQL:

CREATE TABLE IF NOT EXISTS `helpdesk` (
 `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
 `title` varchar(60) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
 `msg_problem` text COLLATE utf8_unicode_ci,
 `added` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
 `solved_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
 `solved` enum('no','yes','ignored') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'no',
 `added_by` int(10) NOT NULL DEFAULT '0',
 `solved_by` int(10) NOT NULL DEFAULT '0',
 `msg_answer` text COLLATE utf8_unicode_ci,
 UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=3 ;

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6976"]helpdesk.php[/url]



Add this to English.php :

///START TIME///
$LANG["WK"] = "wk";
$LANG["WKS"] = "s";
$LANG["WKS2"] = "  ";
$LANG["DAY"] = "day";
$LANG["DAYS2"] = "s";
$LANG["HOUR"] = "hour";
$LANG["HOURS"] = "s";
$LANG["HOURS2"] = "  ";
$LANG["<1MIN"] = "< 1 min";
$LANG["MIN"] = "min";
$LANG["MINS"] = "s";
$LANG["MINS2"] = "  ";
///END TIME///

//////HELP DESK//////
$LANG["LAST_CLEANUP"] = "Last cleanup performed";
$LANG["HELP_DESKP"] = "Help Desk - Problem!";
$LANG["TROUBLE_TICKETS"] = "Click here for trouble tickets";
$LANG["HELP_DESK_INFO"] = "Help Desk INFO!";
$LANG["HD_INFO1"] = "Before using <b>Help Desk</b> make sure to read <a href=faq.php><b>FAQ</b></a> and search <a href=forums.php><b>Forums</b></a> first.";
$LANG["HD_INFO2"] = "You must be sure to provide as much info as possible for your questions to be answered. Questions are answered in order in which they are recieved.<br />There is Zero Tolerance for Help Desk abuse, anyone being abusive will have their accounts disabled and IP banned. <b>YOU HAVE BEEN WARNED!!";
$LANG["HD_INFO3"] = "If you require a reseed then please paste the link to the torrent, anyone not doing so will be ignored!!";
$LANG["HD"] = "HELP DESK";
$LANG["MESS_INFO"] = "Please press the <b>Help me!</b> button only once. Dupe messages will be deleted";
$LANG["HELP_ME"] = "Help me!";
$LANG["SUCCESS"] = "Success!";
$LANG["SUCCESS2"] = "Message sent! Await for reply";
$LANG["ADDEDBY"] = "Added by";
$LANG["PROBLEM"] = "Problem";
$LANG["SOLVEDBY"] = "Solved - by";
$LANG["SOLVEDIN"] = "Solved in*";
$LANG["SOLVED"] = "Solved";
$LANG["ANSWER"] = "Answer";
$LANG["IGNORED"] = "Ignored";
$LANG["IGNORE"] = "IGNORE";
$LANG["USE"] = "Use";
$LANG["HDREPLIES"] = "HD Replies:";
$LANG["HDREPLIE1"] = "Read FAQ,";
$LANG["HDREPLIE2"] = "Search forums,";
$LANG["HDREPLIE3"] = "Die n00b,";
$LANG["HDREPLIE11"] = " First read the [url="faq.php"]FAQ[/url] and then start asking questions!";
$LANG["HDREPLIE22"] = " Search the [url="forums.php"]FORUMS[/url] please.";
$LANG["HDREPLIE33"] = " Die n00b! Such a thing knows even my grandma!";
$LANG["HDON"] = "On";
$LANG["BBCODE"] = "BB Code";
$LANG["ISALLOWED"] = "is allowed";
$LANG["DELETE_SOLVED_PROBLEMS"] = "Delete solved or ignored problems";
$LANG["BAD"] = "- bad";
$LANG["OK"] = "- ok";
$LANG["GREAT"] = "- great";
$LANG["ATTENTION"] = "Attention!";
$LANG["EFFICIENCY"] = "Efficiency";
//////END//////

If you want a notis in index.php add this :

//=== HELP DESK message
if (get_user_class() >= 5){
$resa = SQL_Query_exec("select count(id) as problems from support_desk WHERE solved = 'no'");
$arra = mysql_fetch_assoc($resa);
$problems = $arra['problems'];
if ($problems > 0)
echo("<p><table align=center border=0 cellspacing=0 cellpadding=10 bgcolor=red><tr><td style='padding: 10px; background: #A60A15'>n".
"Hi <b>$CURUSER[username]</b>, there ".($problems == 1 ? 'is' : 'are')." <b>$problems question".($problems == 1 ? '' : 's')."</b> at the HELP DESK that needs a reply.<br>please click <b><a href=helpdesk.php?action=problems>HERE</a></b> to deal with it.".
"</td></tr></table></p><br />n");
}

This is how it looks at my site when its calm :



And when there are a question that need a reply :

How do accept any help with this

Quote:
Not work for me on 2.08
Looking good, test it later  :P  Thanks a lot for sharing.
Thanks @Tiloup! Works great  :P
Thank you!! Working.  :)
try this: [url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6859"]login_block.php[/url]

In reqall.php under :

if($CURUSER["view_torrents"]=="no")
show_error_msg(T_("ERROR")."!","You do not have the proper rights to view requests!",1);

put in :


if (get_user_class() <= 3)
show_error_msg(T_("ERROR")."!","You do not have the proper rights to view requests!",1);
It's all junk you have with "Request level".I have modified your file a bit. I think you have to have something like that.

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6857"]login_block.php[/url]
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