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

Thanks ArcticWolf, simple and effective, works perfect for me  :)   But 7 options seems a bit much, I reduced them to 3 ranks of seeders.
In my opinion you must have a very tangled mind to write a code like invitetree made by tbdev   :lol:   and worse, it looks ugly...
I have sent dozens of emails to test this mod (yahoo and google) and I had no problems even once. But I set up to receive emails on my yahoo (or gmail) address, not at the site address.

It is better you have an independent email address to receive these messages, you can set any email address you want.

$contact_email = ('youremail');
[size=18px]I corrected [/size][size=18px]contact.php[/size][size=18px] and attached here. Now it works and it look properly[/size]



language/english.php



//contact the webmaster

$LANG["CONTACT_WEBMASTER"] = "Contact Us";

$LANG["WEBMASTER"] = "Contact the webmaster";

$LANG["CONTACT_SHEET"] = "Contact form";

$LANG["EMAIL_WEBMASTER"] = "Send email to";

$LANG["YOUR_EMAIL"] = "Your email";

$LANG["YOUR_ACCOUNT_NAME"] = "Your name";

$LANG["SUBJECT_YOU_MESSAGE"] = "Subject";

$LANG["PLEASE_ON_NOT_ABUSE_MESSAGE"] = "(Please don't choose <b>Yes</b> if isn't really a emergency)";

$LANG["YOUR_MESSAGE_IS_IT_URGENT"] = "It is urgent ?";

$LANG["YOUR_MESSAGE"] = "Your message";

$LANG["REQUIRED_FIELDS"] = "Required fields!";

$LANG["TRANSFERRED_TO_WEBMASTER"] = "Your message has been sent to the webmaster!";

$LANG["ALL_FIELDS"] = "You must complete all required fields!";


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

Thank ArcticWolf but I abandoned this crawler because I discovered another problem.

I have installed Movie-Torrent CapTcha and it doesn't work properly together with him...
You're right ArcticWolf, but in this case it doesn't work, the problem is elsewhere.

I suppose it would be crawler.js blame, but I don't know enough about java...
This slider is very nice darknova   :)   and works properly in Mozilla Firefox and Google Chrome.

But it seems that crawler.js has a problem with Internet Explorer 9 (Windows 7 SP1 x64) because I don't see nothing, just a empty window...

I see that the slider works perfectly at your tracker with IE9, what changes have you forgot to post here?  :D
SQL:



ALTER TABLE torrents ADD `recommended` enum('yes','no') NOT NULL default 'no';

In torrents-edit.php

Find:




if ($row["external"] != "yes" && $CURUSER["edit_torrents"] == "yes"){

echo "<tr><td class='table_col1' align='right'><b>".T_("FREE_LEECH").": </b></td><td class='table_col2'><input type="checkbox" name="freeleech"" . (($row["freeleech"] == "1") ? " checked="checked"" : "" ) . " value="1" />".T_("FREE_LEECH_MSG")."<br /></td></tr>";

}




Below, add:





if(get_user_class($CURUSER) > 6){

echo "<tr><td align=right><b>Recommended: </b></td><td><input type='checkbox' name='recommended'" . (($row["recommended"] == "yes") ? " checked='checked'" : "" ) . " value='yes' />";

}






Find:





$updateset[] = "freeleech = '".$_POST["freeleech"]."'";




Below, add:





if(get_user_class($CURUSER) > 6){

if ($_POST["recommended"] == "yes")

$updateset[] = "recommended = 'yes'";

else

$updateset[] = "recommended = 'no'";

}






In index.php

Find:





stdhead(T_("HOME"));




Below, add:





//===| Start Recommended Torrents |===//

begin_frame("Recommended Torrents");

$rec = SQL_Query_exec("SELECT id, name, added, image1, seeders, leechers, times_completed FROM torrents WHERE banned ='no' AND visible='yes' AND recommended='yes' ORDER BY torrents.id DESC LIMIT 5");

if (mysql_num_rows($rec) > 0) {

print("<table align=center cellpadding=0 cellspacing=0 width=100% border=0><tr>");

while ($row2 = mysql_fetch_array($rec, MYSQL_NUM)) {

$tor = $row2['0'];

$altname = $row2['1'];

$where = "WHERE banned = 'no' AND visible='yes' AND torrents.id='$tor'";

$res = SQL_Query_exec("SELECT torrents.id, torrents.image1, torrents.image2, torrents.added, torrents.added, torrents.seeders, torrents.leechers, torrents.times_completed, categories.name AS cat_name FROM torrents LEFT JOIN categories ON torrents.category = categories.id $where");

$row = mysql_fetch_array($res);

$cat = $row['cat_name'];

$img1 = "<a href=torrents-details.php?id=$row[id]'><img border='0' src='uploads/images/$row[image1]' title="$altname | $cat" width=150 height=210></a>

<div style='margin-top:3px; font: Arial 11px'>

<img src=images/check.png height='11' title='Completed' border=0> <font color=#0080FF><b>".$row['times_completed']."</b></font> |

<img src=images/arrow_up.gif height='11' title='Seeders' border=0> <font color=#00AA00><b>".$row['seeders']."</b></font> |

<img src=images/arrow_down.gif height='11' title='Leechers' border=0> <font color=#FF0000><b>".$row['leechers']."</b></font>

</div>";

if ($row["image1"] != ""){

print("<td align=center>".$img1."</td>");

}

}

print("</tr></table>");

}

end_frame();

//===| End Recommended Torrents |===//




Upload into images the files contained in the attached archive, and that's all.

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6447"]images.zip[/url]

Regarding your code AzuriS, in torrents-details.php, $xres is defined in this way:



$xres = SQL_Query_exec("SELECT rating, added FROM ratings WHERE torrent = $id AND user = " . $CURUSER["id"]);

Please to remarks this part:




AND user = " . $CURUSER["id"]




So with that code you will be able to see only your votes  
Upload Manager — 2013-01-04 05:54:08 in v2.08 Mods Completed
Is correct, in that way is designed this mod. It is pointless to let the user knows that you took, just tell him when you give something...
Great job ArcticWolf   :)   with this middle block will work absolutely for all.
If this code: middleblocks();  not in your header.php must be in footer.php. Must be written somewhere, otherwise it would not work the middle blocks...

However, the codes for announcements must be included after this one.
Sorry AzuriS, your code does not work...

But this one works properly:



$rres = SQL_Query_exec("SELECT rating FROM ratings WHERE torrent = $id");

$rrow = mysql_fetch_assoc($rres);

if (($rrow) && (get_user_class() >= 5 )) {

print("<div style='margin-bottom:3px'>");

print("<table><tr><td><font size=2>[<a href="javascript:void(0);" onclick="window.open('/ratings.php?id=$id', 'mywindow4', 'width=300, height=580, menubar=no, toolbar=no, scrollbars=yes');"><b>See Votes</b></a>]</font></td></tr></table>");

print("</div>");

}



[size=18px]I updated the first post.[/size]
Upload Manager — 2013-01-03 08:27:18 in v2.08 Mods Completed
I have modified this mod from tbdev to TT v2.08, I also made a lot of changes in this code...

Add in admincp.php, into Staff CP command section, this line:



<td align="center"><a href=upload-bonus.php><img src="images/admin/upload-manager.png" border=0 width=32 height=32><br />Upload Manager</a><br /></td>



Download the attached archive and upload the contained files in your source code.

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6437"]Upload_Manager.zip[/url]



Tiloup, I'm working to promote to the next level: BigMax2  
I use Class Colors Function: [url="https://www.torrenttrader.org/topic/17452-class-colors-function-for-208"]https://www.torrentt...unction-for-208[/url] and I forgot to mention that in first post,  sorry...

I recommend you to install this mod, but if you don't want that, replace:

".class_user($sd)."
with:


".$sd."


and everything will be OK.
Create a new file called ratings.php and upload it directly in your source:

https://www.torrentt...unction-for-208

if you don't have installed this mod, just replace in ratings.php:



<?php

require_once("backend/functions.php");

dbconn();



if (get_user_class() < 5)

show_error_msg(T_("ERROR"), T_("SORRY_NO_RIGHTS_TO_ACCESS"), 1);



if (!isset($CURUSER))

show_error_msg(T_("ERROR"), "Not logged in", 1);



$id = 0+$_GET['id'];

$reset = $_GET['reset'];



if($reset == "yes")

{

$res = SQL_Query_exec("DELETE FROM ratings WHERE torrent = $id");

SQL_Query_exec("UPDATE torrents SET numratings = 0, ratingsum = 0 WHERE id = $id");

}



$delete = $_GET['del'];



if(($delete == "yes")&&(get_user_class() >= 6))

{

$rate = 0+$_GET['rate'];

$ratid = 0+$_GET['rat'];

$res = SQL_Query_exec("DELETE FROM ratings WHERE torrent = $id AND user = $ratid ");

SQL_Query_exec("UPDATE torrents SET numratings = numratings - 1, ratingsum = ratingsum - $rate WHERE id = $id");

}



$s = "<br /><table class=table_table align=center width=80% border="0" cellspacing=0 cellpadding="5">n";

$subres = SQL_Query_exec("SELECT * FROM ratings WHERE torrent = $id ORDER BY user");



if(get_user_class() >= 6)

$del1 = "

<td class=table_head align=center>Delete</td>";

$s.="<tr>

<td class=table_head>User</td>

<td class=table_head align=center>Rating</td>

".$del1."</tr>n";



while ($subrow = mysql_fetch_array($subres)) {

$ratingid=$subrow["user"];

$sd=SQL_Query_exec("SELECT username FROM users WHERE id=$ratingid");

$fetched_result = mysql_fetch_array($sd);

$sd = $fetched_result['username'];

$rate = $subrow["rating"];



if(get_user_class() >= 6)

$del2 = "

<td class=table_col1 align=center>[<a href='ratings.php?del=yes&rat=".$ratingid."&id=".$id."&rate=".$rate."'>Delete</a>]</td>";

$s .= "<tr>

<td class=table_col1><a href=account-details.php?id=$ratingid><b>".class_user($sd)."</b></a></td>

<td class=table_col2 align="center"><b>" . $subrow["rating"] . "</b></td>

".$del2."</tr>n";

}



$s .= "</table>n";



$th = @mysql_fetch_array(@sql_query_exec("select uri from stylesheets where id=" . $CURUSER["stylesheet"])) or die(mysql_error());

if ($th)

$THEME = $th[uri];

?>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">



<head>

<title>Ratings</title>

<link rel="stylesheet" type="text/css" href="<?php echo $site_config['SITEURL'];?>/themes/<?php echo $THEME;?>/theme.css" />

</head>



<body>

<?php

if (get_user_class() >= 6)

print("<div style='margin-top:15px' align=center>[<a href=ratings.php?reset=yes&id=".$id."><font size=2><b>Reset Ratings</b></a>]</div>");

echo $s;

?>

</body>

</html>

In torrents-details.php after this code:




echo "</table></fieldset><br /><br />";




add this one:





$rres = SQL_Query_exec("SELECT rating FROM ratings WHERE torrent = $id");

$rrow = mysql_fetch_assoc($rres);

if (($rrow) && (get_user_class() >= 5 )) {

print("<div style='margin-bottom:3px'>");

print("<table><tr><td><font size=2>[<a href="javascript:void(0);" onclick="window.open('/ratings.php?id=$id', 'mywindow4', 'width=300, height=580, menubar=no, toolbar=no, scrollbars=yes');"><b>See Votes</b></a>]</font></td></tr></table>");

print("</div>");

}








The new window that displays members votes is associated with the current theme.

But, if the "Body" code of theme.css has no defined colors or has nothing defined:





BODY {}




the background will be white. So you need to define in "Body" code at least 2 colors, something like that:





BODY {

color: #2A2A2A;

background-color: #D4D7D5;

}




for the white themes, or:





BODY {

color: #CBCBCB;

background-color: #151515;

}




for the black ones.

The best is to copy the color codes of the "Shoutbox" code (color and background-color).



I use Class Colors Function:

".class_user($sd)."



with:



".$sd."

The original mode can be found here: [url="http://www.torrenttrader.pw/topic/12259-class-colors-function"]http://www.torrentt...colors-function[/url] and all the credit belongs to cooly.
I just made some changes.

In backend/functions.php after this code:

$GLOBALS['tstart'] = array_sum(explode(" ", microtime()));
Add:

//start class colors function
function class_user($name) {
global $site_config;
$a ="SELECT class, donated, warned, enabled FROM `users` WHERE username ='".$name."'";
$res = SQL_Query_exec($a);
$classy = @mysql_fetch_row($res);
switch ($classy[0]) {

case 7: // Administrator
$col = "".$site_config["administrator_color"]."";
break;
case 6: // Super Moderator
$col = "".$site_config["super_moderator_color"]."";
break;
case 5: // Moderator
$col = "".$site_config["moderator_color"]."";
break;
case 4: // Uploader
$col = "".$site_config["uploader_color"]."";
break;
case 3: // VIP
$col = "".$site_config["vip_color"]."";
break;
case 2: // Power User
$col = "".$site_config["power_user_color"]."";
break;
case 1: // User
$col = "".$site_config["user_color"]."";

}if($classy[1]>0){
$star="<img src='".$site_config[SITEURL]."/images/star.png' alt='donated' border='0'>";
}else{ $star="";}
if($classy[2]=="yes"){
$warn="<img src='".$site_config[SITEURL]."/images/warned.png' alt='warned' border=0>";
}else{ $warn=""; }
if($classy[3]=="no"){
$disabled="<img src='".$site_config[SITEURL]."/images/disabled.png' alt='disabled' border=0>";
}else{ $disabled=""; }
return unesc("<font color='".$col."'>".$name."".$star."".$warn."".$disabled."</font>");
}
//end class colors function
And in backend/config.php add this code:

// class colors
$site_config['administrator_color'] = '#009AFF'; // Administrator
$site_config['super_moderator_color'] = '#00C000'; // Super Moderator
$site_config['moderator_color'] = '#007F00'; // Moderator
$site_config['uploader_color'] = '#00A49E'; // Uploader
$site_config['vip_color'] = '#7FB600'; // VIP
$site_config['power_user_color'] = '#BD8B00'; // Power User
$site_config['user_color'] = '#856A00'; // User
Now all you need to do is to change any "username" code, anywhere is it written in the source code
And that is not so simple, for example:

$row['user']
Will be:

".class_user($row['user'])."
To help with more examples, here are the changes made in forums.php on my tracker:

".class_user($a[username])."
".class_user($arr[username])."
".class_user($arr2[username])."
".class_user($user[username])."
".class_user($lastposter)."
$postername = class_user($arr2["username"]);
[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6420"]images.zip[/url]

Initially this mod it was designed just to see your invited users, but I've changed it so that the staff to see and the invitees from other members.

I updated the first post.
It is curious what you say, at my tracker it works very well...
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