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
[ADDON]complex snatchlist mod
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2010-02-18 03:27:43
Thanks for the addon. Everything appears to look fine in torrent details and account details. My tracker is fairly new so ill have to see if it actually works. Only thing i changed was adding the snatch list above the comments in the torrent details. Just looks better there in my opinion. Thanks for the nice work.
Unknown User
2010-03-03 14:51:18
[staff Edit: Can everyone stop quoting the first post. it makes the page extremely long for no reason.]

im looking at this do not under stand what you mean with the (Add After:) whats this mean can you set this out better as im looking at it i can not see what to do i have TorrentTrader v2.0 and i need this mod before anything eles on my site help please
Unknown User
2010-05-10 00:11:55
Is anyone getting high server loads when adding this mod?
Unknown User
2010-05-10 23:38:15
That's why it was removed in v2.

replace backend/cache.php with [url="http://torrenttrader.svn.sourceforge.net/svnroot/torrenttrader/v2/trunk/upload/backend/cache.php"]this[/url] one.

announce.php, find:

require_once("backend/config.php");
add after:
require_once("backend/cache.php");





find:

$res1_s = mysql_query("SELECT torrentid, userid FROM snatched WHERE torrentid = $torrentid AND userid = $userid") or err('Tracker error (120)');

$row1_s = mysql_fetch_assoc($res1_s);



replace with:

$row1_s = mysql_query_cached("SELECT id FROM snatched WHERE torrentid = $torrentid AND userid = $userid", 7200, 0);




run these queries:

ALTER TABLE `snatched` ADD INDEX `torrentid_userid` (`torrentid`, `userid`);
ALTER TABLE `snatched` ENGINE=InnoDB;

Doesn't matter if either fails.

I can see a few issues with the code that's posted. When i have time, i will post a new topic using the code i've got on my site (which is much more stable).
Unknown User
2010-05-11 00:19:42
Very good, thanks for the quick reply. I'll make these changes and see what happens.
Unknown User
2010-07-01 05:37:07
"AzuriS, post: 58706":
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());






Hello i try this modification but i have always the same error  this is my line



You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1









someone have an idea

thank you

$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());
Unknown User
2010-07-11 16:18:53
The viewsnatches works perfect and the total seedtime  ( $stime ) is showing correct.

When you watch the same file in account-details and the seedtime ( $seedtime ) it
Unknown User
2010-11-24 11:03:28
Lifting this thread up again and ask the same question again as above
Unknown User
2010-12-14 05:48:14
just a query guys , in account-details , would it be possible to limit snatched shown to say 25 and next and previous page at bottom , when snatched gets to 300+ torrents , page gets very , very long ........cheers
Unknown User
2010-12-23 15:47:36
yeh u can add pagination
Unknown User
2010-12-23 17:41:45
"djhowarth, post: 68774":
yeh u can add pagination
and step by step instructions please lol
Unknown User
2010-12-23 21:22:23
post your file :rolleyes:
Unknown User
2011-03-25 15:10:31
"nightmare, post: 52985":
Now Edit annouce.php
Find:

function get_date_time($timestamp = 0)

{

 if ($timestamp)

return date("Y-m-d H:i:s", $timestamp);

 else

return gmdate("Y-m-d H:i:s");

}
Add After:


//////Snatched////////////////////

$dt = gmtime() - 180;

$dt = sqlesc(get_date_time($dt));

/////////////////////////////////



J'ajoute le code en dehors de la fonction "get_date_time" c'est bien sa ? Donc en fait tout au d
Unknown User
2011-04-06 06:00:25
Hi I have the following error>>   You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

can any one help me with this?
Unknown User
2011-04-06 17:21:58
u after give more information than this, forexample the query it came from.
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