sweet !!! works great
:)
:)
"CodeMagic, post: 35779":now open download.php ??? not find the code.... and what i doing then? i think this mod is not ok for meYou should first install the Thank you mod by Torrential-Storm :) Thanks TS
[url="http://www.torrenttrader.org/index.php?showtopic=6740"]TS-Thank You Mod[/url]
First lets remove the quick download option in torrents.php for users cant download the torrent without ever going into the torrent-details
in functions.php remove
print("<td class=ttable_col1 align=center><a href="download.php?id=$id&name=" . rawurlencode($row["filename"]) . ""><img src=" . $site_config['SITEURL'] . "/images/icon_download.gif border=0 alt="Download .torrent"></a></td>");
now open download.php
find:
$thanksl = explode(",", $row['thanks']);if (!in_array($CURUSER['username'], $thanksl) && $CURUSER["id"] != $row["owner"] && $row["owner"] != 0) show_error_msg("Error", "You must say thanks before you can download.",1);
thats it, big thanks to TS for his orginal thank you mod and advice with this mod :)
"mostvotedplaya, post: 80295":i have install this mod mr admin :) and its work perfect. this mod i have the problemYou need to install the thanks mod first by Torrentialstorm
$res = SQL_Query_exec("SELECT filename, banned, external, announce FROM torrents WHERE id =".intval($id));
to
$res = SQL_Query_exec("SELECT filename, banned, external, announce, thanks, owner FROM torrents WHERE id =".intval($id));
Above
$name = $row['filename'];
Add
if ($CURUSER["id"] != $row["owner"] && !in_array($CURUSER["username"], explode(',', $row["thanks"])))
show_error_msg("Error", "To download you must thank the user.", 1);
"mostvotedplaya, post: 80300":when download a torrent i take a message: To download you must thank the user. How to back to torrent from this ....something Back and click this to back in Thanks in torrent details.Something that as attach file. I hope you understand mein download.php for 2.07+ change
to
$res = SQL_Query_exec("SELECT filename, banned, external, announce FROM torrents WHERE id =".intval($id));
$res = SQL_Query_exec("SELECT filename, banned, external, announce, thanks, owner FROM torrents WHERE id =".intval($id));
Above
$name = $row['filename'];
Add
if ($CURUSER["id"] != $row["owner"] && !in_array($CURUSER["username"], explode(',', $row["thanks"])))
show_error_msg("Error", "To download you must thank the user.", 1);
Try That ^
No users online
Torrents
Members
Online