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] Thanks
Controls ·  Search New posts · Mark unread

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

Unknown User
2012-12-12 05:16:37
Help (lol)  I know I entered everything in the right place, put then goto totally lost when I got to:

run this query:



ALTER TABLE `torrents` ADD `thanks` LONGTEXT;




How do I do that - I know I have to do something with SQL, but am not sure and am totally lost - setting it up for TT v2.08

Thanks
Unknown User
2012-12-12 06:26:21
you have to do it in what ever you use to edit your db, personally i use myphpadmin, you might have an way to do it in your hosts control panel like cpanel or something.. Its an pretty standard thing to do if adding mods or addons LOL..

http://www.phpmyadmin.net/home_page/downloads.php
Unknown User
2012-12-25 19:26:45
when i put a comment and then i try to download the torrent i take a message To download you must thank the user.

how to fix it?
Unknown User
2012-12-25 20:24:19
I gone threw every page on this topic.. that dont seem to be in this!! cant help if dont know the code!
Unknown User
2012-12-26 17:31:33
i have the below php if i help you

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6405"]thanks.php[/url]

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6406"]torrents-details.php[/url]
thanks.php
Download
torrents-details.php
Download
Unknown User
2012-12-30 01:51:15
This works with TT v2.08 and Thank you :)
Unknown User
2012-12-30 07:27:14
@Mythos I need you to attach your download.php to see about your issue.
Unknown User
2012-12-30 07:47:23
this is my file

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6427"]download.php[/url]
download.php
Download
Unknown User
2012-12-30 15:13:31
changing in download.php

if ($CURUSER["id"] != $row["owner"] && !in_array($CURUSER["username"], explode(',', $row["thanks"])))

show_error_msg("Error", "To download you must thank the user.", 1);
to
$numcomments = get_row_count("comments", "WHERE user = " . $CURUSER["id"] . " && torrent = " . $id);

if ($CURUSER["id"] != $row["owner"] && (!in_array($CURUSER["username"], explode(',', $row["thanks"])) && $numcomments < 1))

   show_error_msg(T_("ERROR"), "To download you must thank the user.", 1);


Seems to fix that.
Unknown User
2012-12-30 21:16:38
yes its ok, thanks
Unknown User
2013-01-04 23:03:55
Works a treat, thanks
Unknown User
2013-09-26 10:37:37
This does not work,. their is no thanks button??? Can anyone shed soem lkioght on this, I am useing tt-svn?
Unknown User
2014-10-04 09:54:19
Is there an update for v8 ? cheers..  ;)
Unknown User
2014-10-04 21:44:38
thecoreboys [url="http://torrenttrader.org/topic/6740-mod-thanks"]http://devscorner.xyz/topic/6740-mod-thanks[/url]

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=7098"]thanks.php[/url]
thanks.php
Download
Unknown User
2014-10-25 11:56:37
thanks ok 2.08  ;)
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