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
PM Uploader on comment add
Controls ·  Search New posts · Mark unread

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

Unknown User
2012-04-11 16:12:01
Thanks works great
Unknown User
2012-05-04 09:54:27
of course its possible, piece of cake just send me a pm, i'll look into this when i get time ...  :)   just some field to add to the users table, and the corresponding code at the place is the pm sending line ... a simple if ... nanana  $CURUSER["pm_to_uploader_on_comment"] == "yes" ... then execute, else do not  :) )))

or adding this option to the uploader users group !
Unknown User
2012-05-06 09:36:30
Works good!
Unknown User
2012-08-01 18:14:47
hello

tell me if they know works with tt2.8?
Unknown User
2012-11-19 17:47:39
yes its ok for 2.08 after



//take comment add

if ($_GET["takecomment"] == 'yes'){

$commentbody = $_POST['body'];

if (!$commentbody)

show_error_msg("Error","You did not enter anything!",1);






Below, add:





//PM NOTIF

$res = SQL_Query_exec("SELECT name, owner FROM torrents WHERE id = $id");

$arr = mysql_fetch_array($res);

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

$msg = "You have received a comment on your torrent

."/torrents-details.php?id=$id]" . $arr[name] . "";

SQL_Query_exec("INSERT INTO messages (poster, sender, receiver, msg, added,subject) VALUES('0','0', " . $arr['owner'] . ", " .

sqlesc($msg) . ", '" . get_date_time() . "','New comment!')");

}

//PM NOTIF

[/code]
2012-11-20 02:03:51
:) Thanks you!
Unknown User
2013-07-21 03:13:19
little update:( insert the comment in the post received by the uploader )
petite mise a jour: ( inserer le commentaire dans le message recu par l'uploadeur )

replace:
remplacer:

Quote:
//PM NOTIF
$res = SQL_Query_exec("SELECT name, owner FROM torrents WHERE id = $id");
$arr = mysql_fetch_array($res);
        if($CURUSER['id'] != $arr["owner"]) {
$msg = "You have received a comment on your torrent [url=".%20%24site_config%5BsITEURL"]
."/torrents-details.php?id=$id]" . $arr[name] . "[/url]";
SQL_Query_exec("INSERT INTO messages (poster, sender, receiver, msg, added,subject) VALUES('0','0', " . $arr['owner'] . ", " .
sqlesc($msg) . ", '" . get_date_time() . "','New comment!')");
                                        }

//PM NOTIF
by:
par:

Quote:
//PM NOTIF
$res = SQL_Query_exec("SELECT name, owner FROM torrents WHERE id = $id");
$arr = mysql_fetch_array($res);
        if($CURUSER['id'] != $arr["owner"]) {
$msg = "You have received a comment on your torrent [url=".%20%24site_config%5BsITEURL"]
."/torrents-details.php?id=$id]" . $arr[name] . "[/url] the message is
$body";
SQL_Query_exec("INSERT INTO messages (poster, sender, receiver, msg, added,subject) VALUES('0','0', " . $arr['owner'] . ", " .
sqlesc($msg) . ", '" . get_date_time() . "','New comment!')");
                                        }
//PM NOTIF

:)
Unknown User
2013-08-26 19:37:48
Code marche avec succes, mais parcontre quand une personne visite le torrent pas besoin de comment le PM uploader viens quand meme.
2023-01-08 22:12:58
it can be done an update for tt 3.0??? please kindly
2023-01-09 03:56:22
https://torrenttrader.uk/post?id=4931
mysql_query

becomes
SQL_Query_exec

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Last edited by MicroMonkey on 2023-01-09 04:25:30
2024-05-14 14:31:34
Thanksssss
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: 2
  • Members: 0
  • Guests online: 2
  • Comments: 3
  • Messages: 1,728