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

read the post, already done
this should work if you take SQL that I posted just before and change every =2 for =1
try this :

change

$res3 = mysql_query("select count(snatched.id) from snatched inner join users on snatched.userid = users.id inner join torrents on snatched.torrentid = torrents.id where snatched.torrentid =" . $_GET[id]) or die(mysql_error());



for

$res3 = mysql_query("select count(snatched.id) from snatched inner join users on snatched.userid = users.id inner join torrents on snatched.torrentid = torrents.id where snatched.torrentid =" . $_GET[id] . "") or die(mysql_error());
try this one

$res=mysql_query ("SELECT name FROM speed WHERE id=" . $CURUSER["download"] ."") or die(mysql_error());

$arr = mysql_fetch_assoc($res);

$res1=mysql_query ("SELECT name FROM speed WHERE id=" . $CURUSER["upload"] ."") or die(mysql_error());

$arr1 = mysql_fetch_assoc($res1);

<? print("<B>Download Speed:</b> " . $arr["name"] . "\n"); ?><img src="images/speed_down.png" alt="Download Speed" width="10" height="15" /><br>

<? print("<B>Upload Speed:</b> " . $arr1["name"] . "\n"); ?><img src="images/speed_up.png" alt="Upload Speed" width="10" height="15" />

<br>
"dent, post: 58594":
Hi Mod works fine. Thank you everybody and anybody involved !!!

My question:

I want to display the internet speed for myself and for every user in account.php under my details.

I tried but failed so far.

Any tips?

try

Internet Speed: <img src="images/speed_up.png" alt="Download Speed" width="10" height="15" />

<? print("$uploadspeed") ?>

<img src="images/speed_down.png" alt="Upload Speed" width="10" height="15" />

<? print("$downloadspeed") ?><BR>
"piop, post: 47643":
Do you known what you do ?
IF:

:)  ('yes','no'... not '2')

should have some mysql error if you install this mod.

if ($row["silver"] == 2)
AND:


ALTER TABLE torrents ADD silver ENUM ('yes','no') DEFAULT 'no';





$row[silver] never equal to 2




SQL should be


and averywhere there is ==2 or =2 change 2 for 1

OR if using SQL with yes and no  every ==2 or =2 should be =yes

ALTER TABLE torrents ADD silver ENUM ('0','1') DEFAULT '0';
"Jeb, post: 58438":
i'm not sure Snowtigers using TT, for Torrent411 OK...and all scripts are likely hacked by a hacker, not obligatory just TT but all torrent scripts.

"diablo2008, post: 58436":
Your script is not safe
Both use TT v1 and as TS said there's security issues with v1.

"diablo2008, post: 58436":
rewrite all the code again or[size=14px] a new  release based on a new script[/size] and  Bondone TorrentTrader v2.x and classic
v2 is now more than 2 years and didn't see any tk hacked based on v2(for security issues).

I'm French, and I can say that more than 80% french tk based on TT are v1 one  :(

So, before tell here to rewrite script, look at v2, it's what you want   :)

and tell french admin to upgrade their tk  :P

And just to inform you : CIA and Pentagone sites were hacked and they are not TT based :)
need one more sql : seed_end   :)

ALTER TABLE `snatched` ADD `seed_end` datetime NOT NULL default '0000-00-00 00:00:00'

so can calculate seedtime  ;)

but seedtime is not good calculate cause it take from complete date to seed end.

in that case, if user stop few hours and resseed it, when he will stop it again, it will calculate from complete date to new seed end,

so, the few hours he had stop the torrent are included in the seedtime   :)

in Blaze Storm one, it calculate seedtime from complete date to last action,

so there same probleme if user stop and reseed torrent  ;)

I think it needs another event in announce : startseed. and alter the snatchedlist to add it

need to :

insert startseed = completedate when torrent is completed

insert startseed = startdate for the uploader

update startseed when user reseed

so, to calculate seedtime :

seedtime = seedtime + ( seedend - startseed)

update seedtime when user stop the torrent

in that case the seedtime will be good cause it only take the real seedtime

I try to do something like that for a few days without any good result

every time I have probleme with the announce  :P

may be good coder can take a look at that, it will be nice to have this :)
or

(uploaded / downloaded) >= $minratio2
"David Rickerd, post: 55569":
and why do you care about reading what you typed so quickly?!?   :unsure:

some users click 2 times, cause they think it didn't work first time

"David Rickerd, post: 55569":
If you can help with a line of code to force the refresh of a seperate .php....would be more then happy to figure it out faster!!  :rolleyes:

maybe with javascript to insert message but I'm so noobs with JS :unsure:
yes, i saw that   :rolleyes:

10 secondes is a good way for refresh shoutout

but when you post a new message, it also take 10 secondes to appear and it will be better to have it instantanetly like before :unsure:
try

$minratio2 = 1.5





and

uploaded / downloaded >= $minratio2
thanks works well.

only one thing: when you post your message, it takes also 10 sec to appear :rolleyes:
"kardklub, post: 54195":
if ($user["class"] == 3 || $user["donated"] > 0) { $star = " <img src=images/star.gif border=0>"; } else {   $star = ""; }

print("<a href=\"account-details.php?id=".$user["id"]."\"><font style=\" color:

".$color."\">".$user["username"]."</font></a>$star, ");

Sorry to be a pain- but what would this line of code be changed to in tt2.05- cause i have

echo "<a href='account-details.php?id=$row[id]'>$row[username]</A>, \n";

This is for users on line.

thanks

Kardklub

p.s i have had a mess about but i kept getting no stars or everyone with stars.   :lol:

try this:

if ($row["class"] == 3 || $row["donated"] > 0) { $star = " <img src=images/star.gif border=0>"; } else {   

$star = ""; }

echo "<a href='account-details.php?id=$row[id]'><font style='color:

".$color."'>$row[username]</font></a>$star, ";
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:

//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");





change for:



//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());
thanks a lot TS, you're the best;)

I'll test it very soon  :lol:

Edit:

works fine, thank you

in torrents-search.php, you can also delete:

<? print("" . IN . "\n"); ?>

<select name="cat">

<option value="0">(All types)</option>

<?





$cats = genrelist();

$catdropdown = "";

foreach ($cats as $cat) {

$catdropdown .= "<option value=\"" . $cat["id"] . "\"";

if ($cat["id"] == $_GET["cat"])

$catdropdown .= " selected=\"selected\"";

$catdropdown .= ">" . htmlspecialchars($cat["parent_cat"]) . ": " . htmlspecialchars($cat["name"]) . "</option>\n";

}

?>

<?= $catdropdown ?>

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