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
[MOD] Force users to say thanks before d
Controls ·  Search New posts · Mark unread

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

Unknown User
2009-01-18 08:37:23
sweet !!! works great

:)
Unknown User
2011-05-25 20:01:49
Good djob

:D

2.06   ;)
Unknown User
2012-01-21 17:03:28
"CodeMagic, post: 35779":
You 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  :)
now open download.php ??? not find the code.... and what i doing then? i think this mod is not ok for me
Unknown User
2012-01-21 17:13:31
You need to install the thanks mod first by Torrentialstorm
Unknown User
2012-01-21 17:46:52
"mostvotedplaya, post: 80295":
You need to install the thanks mod first by Torrentialstorm
i have install this mod mr admin  :)  and its work perfect. this mod i have the problem
Unknown User
2012-01-21 17:53:38
in download.php for 2.07+ change



$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);




Try That ^
Unknown User
2012-01-21 18:09:48
the mod force thanks its ok...but i have the problem as you see in screen

Edit: its ok now , i had delete the code of functions.php in first post...this is mistake. only the code of you its ok :)

Screenshot.png
Screenshot.png
Unknown User
2012-02-25 06:01:54
repost pls^^

forceless download 4 vip^^

greetz
Unknown User
2012-05-13 10:25:30
https://www.torrenttrader.org/topic/7276-mod-force-users-to-say-thanks-before-download/page__view__findpost__p__80300

with

https://www.torrenttrader.org/topic/6740-mod-thanks/page__view__findpost__p__33304

its ok for 2.08 after change with SQL_Query_exec the mysql_query
Unknown User
2012-10-09 15:21:13
Tbdev?
Unknown User
2012-10-09 17:22:07
?
Unknown User
2012-11-19 14:44:34
"mostvotedplaya, post: 80300":
in download.php for 2.07+ change



$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);




Try That ^
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 me

thank.png
thank.png
Unknown User
2012-11-19 17:29:44
.. hit the back arrow.. every browser has it LOL
Unknown User
2012-11-19 18:14:15
i know that :)
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