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
2011-09-03 23:06:36
wierd.. i would check the snatched table in myphpadmin or what ever you use to edit the db and make sure its got data into it.
Unknown User
2011-10-20 04:36:46
i have a small problem

in seed end and seed time as you see write Waiting for stats

i wait if something change but nothing....Waiting for stats

Screenshot_2.png
Screenshot_2.png
Unknown User
2011-10-20 05:44:42
That is correct stop seeding and the datetime of u stoping should become active
Unknown User
2011-10-20 06:16:40
"XIII, post: 75804":
That is correct stop seeding and the datetime of u stoping should become active
i understand now  ;)
Unknown User
2011-10-21 19:36:30
anyone tried this with the svn release ? dont work for me
Unknown User
2011-11-15 07:35:36
i test it in TorrentTrader v2-svn and when i open the [url="http://mydomain/viewsnatches.php"]http://mydomain/viewsnatches.php[/url] i take the message

Database Error. Please report this to an administrator.

is this ok?

i attach the viewsnatches.php

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=5350"]viewsnatches.php[/url]
viewsnatches.php
Download
Unknown User
2011-11-15 13:28:37
if i remember right the link needs viewsnatches.php?id=your_torrent_id_#

not sure why it dont have a check for this but again not my code LOL

but anyway this included file fixes that issue atleast it trying to access it without an torrent id.

Edit: New Upload of the fixed viewsnatches

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=5352"]viewsnatches.php[/url]
viewsnatches.php
Download
Unknown User
2011-11-15 14:53:12
Parse error: syntax error, unexpected ',' in /home/content/xxxxxx/html/xx/viewsnatches.php on line 7

show_error_msg(T_("ERROR"),"No Torrent ID, Please dont direct link to this page without an torrent ID"),1);
Unknown User
2011-11-15 15:05:50
try this

<?php

require_once("backend/functions.php");

dbconn(false);

loggedinonly();

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

if (!is_valid_id($id))

show_error_msg (T_("ERROR"), ("No Torrent ID, Please dont direct link to this page without an torrent ID"),1);



stdhead("Snatch Details");



$res3 = SQL_Query_exec("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]);

$row = mysql_fetch_array($res3);

$count = $row[0];

$perpage = 50;



$res6 = SQL_Query_exec("select name, category from torrents where id = $_GET[id]");

$arr6 = mysql_fetch_assoc($res6);

$dt = gmtime() - 180;

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

list($pagertop, $pagerbottom, $limit) = pager($perpage, $count, $_SERVER["PHP_SELF"] . "?id=" . $_GET[id] . "&" );

begin_frame("Snatch Details for <a href=torrents-details.php?id=$_GET[id]><b>" . $arr6["name"] . "</b></a>");

print("<p align=center>The users at the top finished the download most recently</p>");

print("<table width=80% border=1 cellspacing=0 cellpadding=5 align=center class=table_table>\n");

print("<tr><td class=table_table align=center colspan=11>Snatchdetails for: $arr6[name]</td></tr>");

print("<tr>");

print("<td class=table_head align=center><b>Username</b></td>");

print("<td class=table_head align=center><b>Uploaded</b></td>");

print("<td class=table_head align=center><b>Downloaded</b></td>");

print("<td class=table_head align=center><b>Ratio</b></td>");

if ($CURUSER["edit_torrents"] == "yes"){  

print("<td class=table_head align=center><b>Connected</b></td>");  

print("<td class=table_head align=center><b>Stats</b></td>");

}

print("<td class=table_head align=center><b>Startdate</b></td>");

print("<td class=table_head align=center><b>Enddate</b></td>");

print("<td class=table_head align=center><b>Last action</b></td>");

print("<td class=table_head align=center><b>Seed end</b></td>");

print("<td class=table_head align=center><b>Seedtime</b></td>");

print("<td class=table_head align=center><b>Finished</b></td>");

print("<td class=table_head align=center><b>Seeding</b></td>");

print("</tr>");

$res = SQL_Query_exec("select users.id, users.username, users.uploaded, users.downloaded, snatched.userid, UNIX_TIMESTAMP(snatched.start_date) AS st, UNIX_TIMESTAMP(snatched.last_action) AS lt, UNIX_TIMESTAMP(snatched.complete_date) AS ct, UNIX_TIMESTAMP(snatched.seed_end) AS se from snatched inner join users on snatched.userid = users.id inner join torrents on snatched.torrentid = torrents.id where snatched.torrentid =" . $_GET[id] . " ORDER BY snatched.id desc $limit");

while ($arr = mysql_fetch_assoc($res)) {  

$res2 = SQL_Query_exec("SELECT id,donated,title,enabled,warned,last_access FROM users WHERE id=$arr[userid]") or sqlerr(__FILE__, __LINE__);  

$arr2 = mysql_fetch_assoc($res2);  

$res3 = SQL_Query_exec("SELECT * FROM peers WHERE torrent=$_GET[id] AND userid=$arr[userid]");  

$arr3 = mysql_fetch_assoc($res3);  

if ($arr["downloaded"] > 0) {

$ratio = number_format($arr["uploaded"] / $arr["downloaded"], 3);

$ratio = "<font color=" . get_ratio_color($ratio) . ">$ratio</font>";  

}  else if ($arr["uploaded"] > 0)  $ratio = "Inf.";

else  $ratio = "---";

$uploaded =mksize($arr["uploaded"]);

$downloaded = mksize($arr["downloaded"]);

$res5 = SQL_Query_exec("SELECT * FROM snatched WHERE torrentid = " . $_GET[id] . " AND userid = ". $arr[userid] ."");  

while ($arr5 = mysql_fetch_assoc($res5)) {

if ($arr5["downloaded"] > 0) {  

$ratio1 = number_format($arr5["uploaded"] / $arr5["downloaded"], 3);  

$ratio1 = "<font color=" . get_ratio_color($ratio1) . ">$ratio1</font>";

} else  if ($arr5["uploaded"] > 0) $ratio1 = "Inf.";

else $ratio1 = "---";

$stime = mkprettytime($arr[se] - $arr[ct]);

print("<tr>");

print("<td class=table_col1 align=center><a href=account-details.php?id=$arr[userid]><b>$arr[username]</b></a></td>");

print("<td class=table_col2 align=center><font class=small><font color=green><u>Global:</u></font></font><br>$uploaded<br><font class=small><font color=green><u>Torrent:</u></font></font><br>". mksize($arr5[uploaded]) ."</td>");

print("<td class=table_col1 align=center><font class=small><font color=green><u>Global:</u></font></font><br>$downloaded<br><font class=small><font color=green><u>Torrent:</u></font></font><br>". mksize($arr5[downloaded]) ."</td>");

print("<td class=table_col2 align=center><font class=small><font color=green><u>Global:</u></font></font><br>$ratio<br><font class=small><font color=green><u>Torrent:</u></font></font><br>$ratio1</td>");

if ($CURUSER["edit_torrents"] == "yes"){  

print("<td class=table_col1 align=center><font class=small><font color=green><u>Client:</u></font></font><br>". $arr5[agent] ."<br><font class=small><font color=green><u>Peer-ID:</u></font></font><br>". $arr5[peer_id] ."</td>");

print("<td class=table_col2 align=center><font class=small><font color=green><u>IP:</u></font></font><br>". $arr5[ip] ."<br><font class=small><font color=green><u>Port:</u></font></font><br>". $arr5[port] ."</td>");

}

print("<td class=table_col1 align=center>". $arr5[start_date] ."</td>");

print("<td class=table_col2 align=center>". $arr5[complete_date] ."</td>");

print("<td class=table_col1 align=center>". $arr5[last_action] ."</td>");

if ($arr3["seeder"] == "yes")

print("<td class=table_col2 align=center><font color=green>Waiting<br>for<br>stats</font></td>");

else

print("<td class=table_col1 align=center>". $arr5[seed_end] ."</td>");

if ($arr3["seeder"] == "yes")

print("<td class=table_col2 align=center><font color=green>Waiting<br>for<br>stats</font></td>");

else

print("<td class=table_col1 align=center>$stime</td>");

print("<td class=table_col2 align=center>" . ($arr5["finished"] == "yes" ? "<b><font color=green>Yes</font>" : "<font color=red>No</font></b>") . "</td>");

print("<td class=table_col1 align=center>" . ($arr3["seeder"] == "yes" ? "<b><font color=green>Yes</font>" : "<font color=red>No</font></b>") . "</td>");

print("</tr>\n");



print("</tr>");  

}

}

print("</table>");

print("$pagerbottom");

end_frame();

stdfoot();

?>


was missing a (
Unknown User
2011-11-15 15:09:54
oh i see the issue.. must have uploaded an non saved version.. oh well happends

change

		show_error_msg(T_("ERROR"),"No Torrent ID, Please dont direct link to this page without an torrent ID"),1);
to


		show_error_msg(T_("ERROR"),"No Torrent ID, Please dont direct link to this page without an torrent ID",1);



Fixed the other post
Unknown User
2011-11-15 15:24:20
I think its ok

No Torrent ID, Please dont direct link to this page without an torrent ID
Unknown User
2011-11-15 15:36:49
yep you need to have an link with the id in it, 1st post has the 1 you put in the torrent details.

should be something like hxxp://mydomain/viewsnatches.php?id=1  or what ever id your torrent # is

in svn ONLY

Edit torrents-details.php

Find:

echo "[<a href='torrents-edit.php?id=$row[id]&amp;returnto=" . urlencode($_SERVER["REQUEST_URI"]) . "'><b>".T_("EDIT_TORRENT")."</b></a>]";





Replace by:





echo "[<a href='torrents-edit.php?id=$row[id]&amp;returnto=" . urlencode($_SERVER["REQUEST_URI"]) . "'><b>".T_("EDIT_TORRENT")."</b></a>]";

echo "[<a href='viewsnatches.php?id=".$row['id']."'><b>View Snatched List</b></a>]";
Unknown User
2011-11-15 15:48:30
ok thanks to both  :)
Unknown User
2011-11-19 17:45:04
I have a small problem with characters ???? as you see in screen

Screenshot.png
Screenshot.png
Unknown User
2011-11-19 19:19:54
its because of the weird peer strings but I find replacing

$arr5[peer_id]
with


CutName($arr5['peer_id'], 8)


works better, still gives the same basic peer info just without the weird looking ending stuff

2011_11_19_1314.png
2011_11_19_1314.png
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