"Torrential-Storm.co.uk, post: 35500":this wont`t work for me the download is calculate any way :blink:that code won't work, in v2 the field is "passkey" not user_id and the VIP class id is 3.
if ($user["class"] == 3)
$downthis = 0;
"cooly, post: 63498":sory mate but this part gose where?yes but please try to speak english :blink:
open torrents.php search...
add in...if ($count) {
list($pagertop, $pagerbottom, $limit) = pager(20, $count, "torrents.php?" . $addparam);
$query = "SELECT
users.donated,
open functions torrentable and search...
case 'uploader':
echo "<td class=ttable_col$x align=center>";
add after..
if($row[donated]>0){
$img="<img src='".$site_config[SITEURL]."/images/star.gif' border='0'>";
}else{
$img="";
}
then...
($row[username])."".$img."
".class_user
".class_user "djhowarth, post: 63479":yeah mate welcome back ,nice to see you again ;)its 19/05/10 and ive been released from HMP Moorlands lol 8months of shit :S but im on lisence for another 8month, good news ill be coding in the coming weeks :blink:
Long Live TT
"Tengo, post: 62769":sorry code has been updated forgot to change a line of code also i have added a new feautre to it so please re download the raging.zip
"AzuriS, post: 54129":You need [ADDON] IP Bans from TS (If you don't have v2.05+) : [url="http://www.torrenttrader.org/index.php?showtopic=9408"]http://www.torrenttrader.org/index.php?showtopic=9408[/url]
cleanup.php
find:
change for://BAN WARNED USERS
$res = mysql_query("SELECT id,username FROM users WHERE class = 1 AND enabled='yes' AND warned = 'yes' AND uploaded / downloaded < $minratio AND downloaded >= $downloaded");
//BAN WARNED USERS
$res = mysql_query("SELECT id,username,ip FROM users WHERE class = 1 AND enabled='yes' AND warned = 'yes' AND uploaded / downloaded < $minratio AND downloaded >= $downloaded") or die(mysql_error());
find:
while ($arr = mysql_fetch_assoc($res)){
$r = mysql_query("SELECT id, UNIX_TIMESTAMP(expiry) as expiry FROM warnings WHERE userid=$arr[id]");
$row = mysql_fetch_assoc($r);
change for:
while ($arr = mysql_fetch_assoc($res)){
$first = trim($arr["ip"]);
$last = trim($arr["ip"]);
$added = sqlesc(get_date_time());
$first = ip2long($first);
$last = ip2long($last);
$r = mysql_query("SELECT id, userid, UNIX_TIMESTAMP(expiry) as expiry FROM warnings WHERE userid=$arr[id]") or die(mysql_error());
$row = mysql_fetch_assoc($r);
find:
mysql_query("UPDATE users SET enabled='no', warned='no' WHERE id='".$arr["id"]."'");
add after:
mysql_query("INSERT INTO bans (added, addedby, first, last, comment) VALUES($added, '1', $first, $last, 'low ratio')") or die(mysql_error());

$thanksl = explode(",", $row['thanks']);
if ($CURUSER['username'] == $row['username'] || !$CURUSER) $leftthanks = true;
foreach ($thanksl as $u) {
$thanks .= ($i>0)?", $u":$u;
if ($u == $CURUSER['username']) $leftthanks = true;
$i++;
}
$a = mysql_query("SELECT class, donated FROM `users` WHERE
id = $row[userid] ");
$a = @mysql_fetch_row($a);
switch ($u[0]) {
case 11: // Administrator
$user = "<font color=darkred>$row[user]</font>";
break;
case 10: // Administrator
$user = "<font color=teal>$row[user]</font>";
break;
case 9: // Administrator
$user = "<font color=#ff0000>$row[user]</font>";
break;
case 8: // Administrator
$user = "<font color=#FF8080>$row[user]</font>";
break;
case 7: // Administrator
$user = "<font color=darkblue>$row[user]</font>";
break;
case 6: // Super Moderator
$user = "<font color=blue>$row[user]</font>";
break;
case 5: // Moderator
$user = "<font color=burlywood>$row[user]</font>";
break;
case 4: // Uploader
$user = "<font color=#00CC00>$row[user]</font>";
break;
case 3: // VIP
$user = "<font color=#FF6600>$row[user]</font>";
break;
case 2: // Donateur
$user = "<font color=#FEDE01>$row[user]</font>";
break;
case 1: // Power User
$user = "<font color=black>$row[user]</font>";
break;
default: // User
$user = "<font color=black>$row[user]</font>";
}
if (!$thanks) $thanks = "No one yet.";
print("<tr><td align=left><b>Thanks By:</b></td><td>$thanks</td>
</tr>n");
if (!$leftthanks) print("<tr><td align=left> </td><td><form action
=thanks.php method=POST><input type=hidden name=torrent value=$id>
<input type=submit value='Thanks!'></form></td></tr>n");