Updated for V3 credit to Original Author
Remove hit & run with seedbonus or upload, you must have seedbonus installed
[color=rgb(251, 160, 38)]sql (it is recommended you export your bonus table and edit for your own needs)[/color]
[color=rgb(251, 160, 38)]In mybonus.php find (already added in mybonus TTv3 mod)[/color]
[color=rgb(251, 160, 38)]in theme/default/footer.php find[/color]
add after
[color=rgb(251, 160, 38)]In english.php add[/color]
Add requried.php to root
Add images to images folder

Remove hit & run with seedbonus or upload, you must have seedbonus installed
[color=rgb(251, 160, 38)]sql (it is recommended you export your bonus table and edit for your own needs)[/color]
DROP TABLE IF EXISTS `bonus`;
CREATE TABLE `bonus` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(50) COLLATE utf8_bin NOT NULL,
`cost` decimal(10,1) unsigned NOT NULL DEFAULT '0.0',
`value` bigint(20) unsigned NOT NULL DEFAULT '0',
`descr` varchar(100) COLLATE utf8_bin NOT NULL,
`type` enum('traffic','invite','VIP','other','HnR') COLLATE utf8_bin NOT NULL DEFAULT 'other',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
INSERT INTO `bonus` (`id`, `title`, `cost`, `value`, `descr`, `type`) VALUES
(1,'1 GB Uploaded',70.0,1073741824,'Exchange 70 points for 1 GB upload..','traffic'),
(2,'2 GB Uploaded',100.0,2147483648,'Exchange 100 points for 2 GB upload..','traffic'),
(3,'5 GB Uploaded',250.0,5368709120,'Exchange 250 points for 5 GB upload..','traffic'),
(4,'10 GB Uploaded',500.0,10737418240,'Exchange 500 points for 10 GB upload..','traffic'),
(5,'Invitations',100.0,4,'Receive 4 Invitations for 1000.00 points of seedbonus','invite'),
(6,'HnR',50.0,1,'Remove a hit and run from your account.','HnR');
[color=rgb(251, 160, 38)]In mybonus.php find (already added in mybonus TTv3 mod)[/color]
case 'traffic':
SQL_Query_exec("UPDATE `users` SET `uploaded` = `uploaded` + '$row->value' WHERE `id` = '$CURUSER[id]'");
break; case 'HnR':
$uid = $CURUSER["class"] == "1" ? (int) $_POST["userid"] : (int) $CURUSER["id"];
$tid = (int) $_POST["torrentid"];
if ( empty($tid) )
autolink("mybonus.php", "You must fill the box with the id of the torrent.");
if ( isset ($uid) && isset ($tid) )
{
$res = SQL_Query_exec("SELECT * FROM `snatched` WHERE `tid` = '$tid' AND `uid` = '$uid' AND `hnr` = 'yes'");
if ( mysqli_num_rows($res) == 0 )
autolink("mybonus.php", "No HnR found with this information.");
$res1 = SQL_Query_exec("SELECT `username` FROM `users` WHERE `id` = '$uid'");
$row1 = mysqli_fetch_assoc($res1);
$res2 = SQL_Query_exec("SELECT `name` FROM `torrents` WHERE `id` = '$tid'");
$row2 = mysqli_fetch_assoc($res2);
$username = htmlspecialchars($row1["username"]);
$torname = htmlspecialchars($row2["name"]);
write_log ("The HnR of <a href='account-details.php?id=".$uid."'>".class_user($username)."</a> on the torrent <a href='torrents-details.php?id=".$tid."'>".$torname."</a> has been cleared by <a href='account-details.php?id=".$CURUSER['id']."'>".class_user($CURUSER['username'])."</a>");
$new_modcomment = gmdate("d-m-Y \à H:i") . " - ";
if ( $uid == $CURUSER["id"] )
$new_modcomment.= "H&R on the torrent ".$torname." cleared against ".$row->cost." points \n";
else
$new_modcomment.= "H&R on the torrent ".$torname." cleared by ".$CURUSER['username']." \n";
$modcom = sqlesc($new_modcomment);
SQL_Query_exec("UPDATE `users` SET `modcomment` = CONCAT($modcom,modcomment) WHERE id = '$uid'");
SQL_Query_exec("UPDATE `snatched` SET `ltime` = '129600', `hnr` = 'no' WHERE `tid` = '$tid' AND `uid` = '$uid'");
}
break;[color=rgb(251, 160, 38)]in theme/default/footer.php find[/color]
middleblocks();add after
// Start Hit and Run Warning
$jquery = SQL_Query_exec("SELECT COUNT `hnr` FROM `snatched` WHERE `uid` = '".$CURUSER["id"]."' AND `hnr` = 'yes'");
$res2 = mysqli_fetch_row($jquery);
$hnr = "<font style=\"background-color:#252525\" color=\"#FEFEFE\"><b> ".$res2[0]." </font>";
$hnr2 = $res2[0];
if ($res2[0] > 0) {
echo"<div style='margin-bottom:5px'>
<table align=center width=100% border=0 cellspacing=0 cellpadding=10>
<tr>
<td style='padding: 10px; background: #AB0000' align=center>
<div style='font: bold 15px Times New Roman; color:#FFBF00'>
Hey $CURUSER[username], you have ".$hnr." recording".($hnr2 > 1 ? "s" : "")." for Hit and Run! View the recordings into <a href=snatched.php><font size=3 color=#CBCBCB>Your Snatch List</font></a>
</div>
<div style='font: bold 15px Times New Roman; color:#FFBF00'>
You must to keep seeding or you can <a href=required.php><font size=3 color=#CBCBCB>Trade to Delete</font></a> ".($hnr2 > 1 ? "these recordings" : "this recording")." with Seed Bonus or Upload
</div>
</td>
</tr>
</table>
</div>\n";
}
// End Hit and Run Warning [color=rgb(251, 160, 38)]In english.php add[/color]
// trade Hit & Run
$LANG["DELETED_RECORDING"] ="Has deleted a recording of H&R for Torrent ID:";
$LANG["POINTS_OF_SEED_BONUS"] ="with <b>100 points</b> of Seed Bonus.";
$LANG["YOUR_RECORDINGS_OF_HIT_AND_RUN"] ="Your Recordings of Hit and Run";
$LANG["ONE_RECORDING_HIT_AND_RUN_DELETED"] ="One recording for Hit and Run was deleted.";
$LANG["DELETED_RECORDING"] = "has deleted a recording of H&R for Torrent ID:";
$LANG["OF_UPLOAD"] = "of Upload";
$LANG["HIT_AND_RUN_FOR"] ="for";
$LANG["HIT_AND_RUN_HOURS_RATIO_BECOMES"] ="hours or until ratio becomes";
$LANG["HIT_AND_RUN_DELETE"] ="But if you want a fast way, you can trade to delete";
$LANG["HIT_AND_RUN_WITH"] = "With";
$LANG["SEED_TIME"] = "Seed Time";
$LANG["SNATCHLIST_SEEDBONUS"] = "Seed Bonus";
$LANG["SNATCHLIST_YOU_DONT_HAVE_ENOUGH"] = "You don't have enough";
$LANG["SNATCHLIST_FOR_TRADING"] = "for trading !";
$LANG["SNATCHLIST_UPLOAD"] = "Upload";
$LANG["SNATCHLIST_COST"] = "Cost";
$LANG["YOUR_LIST_OF_HITS_AND_RUN"] = "Your List of Hits and Run is empty";
$LANG["HIT_AND_RUN_YOUR_SNATCH_LIST"] ="View Your Snatch List";
$LANG["TO_SOLVE_THIS_PROBLEM_SEEDING"] ="To solve this problem you must to keep seeding";
$LANG["SNATCHLIST_POINTS_OF_SEED_BONUS"] = "points of Seed Bonus";Add requried.php to root
Add images to images folder










