for comment on torrent = 3 points
in comment.php just after
- @mysql_query("UPDATE torrents SET comments = comments + 1 WHERE id = $torrentid");
add
- //===add karma
- mysql_query("UPDATE users SET seedbonus = seedbonus+3.0 WHERE id = ".sqlesc($CURUSER["id"])."") or sqlerr(__FILE__, __LINE__);
- //===end
also in comment.php just after
- mysql_query("UPDATE torrents SET comments = comments - 1 WHERE id = $torrentid");
add
- //===Remove karma
- mysql_query("UPDATE users SET seedbonus = seedbonus-3.0 WHERE id = ".sqlesc($owner["id"])."") or sqlerr(__FILE__, __LINE__);
- //===end
for saying thanks = 2 points - several versions of this adapt yours if you need to
find in takethankyou.php:
- mysql_query("UPDATE torrents SET thanks = thanks + 1 WHERE id = ".sqlesc($id)."");
add under it:
- mysql_query("UPDATE users SET seedbonus = seedbonus+5.0 WHERE id = ".sqlesc($CURUSER["id"])."") or sqlerr(__FILE__, __LINE__);
Or for putyns new thanks mod find :
- print($ajax? json_encode(array('status'=>false,'err'=>$msg)) : $msg);
- }
- }
- }
- break;
- }
Hope these help you out mate :) if I have miss read please do tell me