|
#1
|
|||
|
|||
- Bonus Points for activity on site
im looking for this mod anyone know of it i do have the - Bonus already just need to add it for users online to get it
- Bonus Points for activity on site |
#2
|
|||
|
|||
for comment on torrent = 3 points
in comment.php just after
add
also in comment.php just after
add
find in takethankyou.php:
add under it:
|
#3
|
|||
|
|||
for comment on torrent = 3 points
in comment.php just after Code:
@mysql_query("UPDATE torrents SET comments = comments + 1 WHERE id = $torrentid"); Code:
//===add karma mysql_query("UPDATE users SET seedbonus = seedbonus+3.0 WHERE id = ".sqlesc($CURUSER["id"])."") or sqlerr(__FILE__, __LINE__); //===end Code:
mysql_query("UPDATE torrents SET comments = comments - 1 WHERE id = $torrentid"); for saying thanks = 2 points - several versions of this adapt yours if you need to Code:
//===Remove karma mysql_query("UPDATE users SET seedbonus = seedbonus-3.0 WHERE id = ".sqlesc($owner["id"])."") or sqlerr(__FILE__, __LINE__); //===end Code:
mysql_query("UPDATE torrents SET thanks = thanks + 1 WHERE id = ".sqlesc($id).""); Or for putyns new thanks mod find : Code:
mysql_query("UPDATE users SET seedbonus = seedbonus+5.0 WHERE id = ".sqlesc($CURUSER["id"])."") or sqlerr(__FILE__, __LINE__); print($ajax? json_encode(array('status'=>false,'err'=>$msg)) : $msg); } } } break; } |
The Following User Says Thank You to wMan For This Useful Post: | ||
sushike (4th August 2013)
|
Tags |
activity , bonus , points , site |
|
|