Hi peeps !
Here after a small add on to keep in touch with ur uploads :
in torrents-details find :
and add after :
this will sent u a pm when a comment is added to one of urs uploads
Here after a small add on to keep in touch with ur uploads :
in torrents-details find :
//take comment add
if ($_GET["takecomment"] == 'yes'){
$commentbody = $_POST['body'];
if (!$commentbody)
show_error_msg("Error","You did not enter anything!",1);
mysql_query("UPDATE torrents SET comments = comments + 1 WHERE id = $id") or die(mysql_error());
mysql_query("INSERT INTO comments (user, torrent, added, text) VALUES (".$CURUSER["id"].", ".$id.", '" .get_date_time(). "', " . sqlesc($body).")") or die(mysql_error());
and add after :
//PM to uploader on comment add
$msg = "one of Your Torrents $torrent has recieved a Comment by $CURUSER[username] Please check it [url="%24site_config%5BSITEURL"]/torrents-details.php?id=$id]HERE[/url]";
mysql_query("INSERT INTO `messages` (`sender`, `receiver`, `added`, `subject`, `msg`, `unread`, `location`) VALUES
('$CURUSER[username]', '".$row[owner]."', '".get_date_time()."', 'One of your torrents just recieved a comment. Please check !','$msg','yes','in')") or
die(mysql_error());
this will sent u a pm when a comment is added to one of urs uploads