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] PM uploader when torrent is dele
Controls ·  Search New posts · Mark unread

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

Unknown User
2008-01-21 09:15:25
Requested [url="http://www.torrenttrader.org/index.php?showtopic=7704"]here[/url].

It is strongly suggested you apply the [url="http://www.torrenttrader.org/index.php?showtopic=7713"]anonymous uploads fix[/url] before using this. If you don't, you might get unexpected results.

In torrents-edit.php, find:

write_log($CURUSER['username']." has deleted torrent: ID:$torrentid - $torrentname - Reason: $delreason");





Below, add:



if ($CURUSER['id'] != $row['owner']) {

$delreason = $_POST["delreason"];

mysql_query("INSERT INTO messages (sender, receiver, added, subject, msg, unread, location) VALUES(0, ".$row['owner'].", '".get_date_time()."', 'Your torrent \'$torrentname\' has been deleted by ".$CURUSER['username']."', ".sqlesc("'$torrentname' was deleted by ".$CURUSER['username']."\n\nReason: $delreason").", 'yes', 'in')");

}
Unknown User
2008-01-21 16:42:11
Cool!

Tks
Unknown User
2008-01-21 21:57:47
Added to SVN.
Unknown User
2008-01-21 22:32:14
I made a mistake with the sender... Updated the first post with TS' code from SVN.
Unknown User
2008-01-22 00:01:22
yep cool and also i made same routine to send PM when comment add to a torrent, thanks 4 the syntax !

ur great as usual  :)
Unknown User
2008-01-22 01:54:14
Ezerbeth thank youuu :)
Unknown User
2008-07-11 14:54:41
Thank You
Unknown User
2009-05-12 16:06:52
When i added the code the message didnt send, i took out this bit and it works great.  TTver 2.04

$delreason = $_POST["delreason"];


Thanks Ezerbeth
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