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
2007-11-29 02:42:57
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 :P
Unknown User
2007-12-09 11:59:14
Thank you. works well
Unknown User
2007-12-11 11:25:29
Hi, it's work, yes but if you want redownload your torrent , you can't take this. :(
Unknown User
2007-12-11 12:48:50
"teamfsx, post: 36268":
Hi, it's work, yes but if you want redownload your torrent , you can't take this.  :(
You need to compare the username in the thanks field against the userid and permit download that way...

The 'quick download' button should only be removed if the user hasn't thanked the topic, so another check should be required there/ It also probably should grey out the download button from torrent-details.php (or remove it completely) until you thank the topic instead of using the show_error_msg function.  I'll look at it once I get some sleep :S
Unknown User
2007-12-11 17:30:35
"teamfsx, post: 36268":
Hi, it's work, yes but if you want redownload your torrent , you can't take this.  :(

you can redownload it..

Quote:
if (!in_array($CURUSER['username'], $thanksl) && [size=12px]$CURUSER["id"] != $row["owner"][/size] && $row["owner"] != 0) show_error_msg("Error", "You must say thanks before you can download.",1);
Unknown User
2007-12-19 22:15:06
"Torrential-Storm.co.uk, post: 36286":
you can redownload it..


Hi guys and first thanks 4 ur hard work !!!





...oups, since i installed dat mod, AFTER saying thanks, I always turn round on the  "'You must say thanks before you can download.'" message !!!






CANT no more download torrent file !!!






PLEASE HELP !!!






seems system does NOT get I said thanks !!! ???? ....ouch.....


:(  :P  :(

BY THE WAY PLEASE TELL ME HOW TO SHOW  EACH USER RATIO..and up and down volumes..DAT WILL HELP US SO MUCH !!!!!
Unknown User
2007-12-20 03:55:39
ok i repaired with my backup...but weird it did not works 4 me...
Unknown User
2008-01-14 06:55:49
thanks  work no#1 for me :)
Unknown User
2008-01-15 16:02:38
work very fine with the v2.3

thanks

gia
Unknown User
2008-03-09 12:02:49
bonjour a tous ;

j'ai bien instaler le module ( merci ) pour forc
Unknown User
2008-03-09 12:12:34
I use the mod for the v.1.4 by nightmare, i extarct the code for 'force user to say thinks' , it's works great for me since 3 months, i adds the v2.01
Unknown User
2008-03-11 11:33:38
thank you B)
Unknown User
2008-05-24 20:56:08
thanks works well on v2.03

how to redirecting page to description when the message "Error", "You must say thanks before you can download." is on screen?

I find :

change :

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





with :



$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.<br /><br /><a href=torrents-details.php?id=$id>Return on the previous page</a>",1);
Unknown User
2008-06-02 19:30:23
it works!tnx  ;)  ;)
Unknown User
2008-07-02 12:11:07
it works brill.. thank you
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: 3
  • Members: 0
  • Guests online: 3
  • Comments: 3
  • Messages: 1,728