MOD REPUTATION BEWARE : its the only one button Version !
This version is an modified version of the original version at [url="
https://www.torrenttrader.org/topic/11935-reputation-system-as-requested/"]https://www.torrentt...m-as-requested/[/url]
all credits goto that LOL I just modified for 2.08 and an fix some junk in it.
_________________________________________________________________________
ALTER TABLE users ADD reputation varchar(6) NOT NULL default '0';
!!!!!remove the old junk from the old addon!!!!
In account-details, where u want to show the option, add :
ACCOUNT-DETAILS PART :::
find
Forum Posts: <?php echo number_format($numforumposts); ?><br />
after
add
<?php echo T_("UPLOADER_REP_POINTS");?> : <?php echo htmlspecialchars($user["reputation"]);?><br />
<?php
if ($user["id"] != $CURUSER['id']) {
unset($comefrom);
?>
<form method="post" action="takereppoints.php?id=<?php echo $user["id"]; ?>&comefrom=account">
<table>
<tr>
<td><INPUT type="submit" name="givepoints" value="<?php echo T_("UPLOADER_REP_POINTS_THANKS");?>"></td>
</tr>
</table>
</form>
<?php
}
?>
I think this looks better
TORRENTS-DETAILS PART :::
then search into the code and find :::
print ("<b>".T_("LAST_CHECKED").": </b>" . date("d-m-Y H:i:s", utc_to_tz_time($row["last_action"])) . "<br />"</td>);
replace with
print ("<b>".T_("LAST_CHECKED").": </b>" . date("d-m-Y H:i:s", utc_to_tz_time($row["last_action"])) . "<br />");
$ru = SQL_Query_exec("SELECT id,reputation FROM users WHERE id=" . $row["owner"]);
$user = mysql_fetch_array($ru);
unset($comefrom);
?>
<b><?php echo T_("UPLOADER_REP_POINTS");?> : </b><?php echo htmlspecialchars($user["reputation"]);?><br />
<?php
if ($user["id"] != $CURUSER['id']) {
?>
<form method="post" action="takereppoints.php?userid=<?php echo $user["id"]; ?>&comefrom=torrents&torrentid=<?php echo $id; ?>">
<table>
<tr>
<td><INPUT type="submit" name="givepoints" value="<?php echo T_("UPLOADER_REP_POINTS_THANKS");?>"></td>
</tr>
</table>
</form>
<br />
<?php
}
print ("</td>");
add in languages/english.php add
// Reputation system
$LANG["UPLOADER_REP_POINTS"] = "Uploader Reputation points";
$LANG["UPLOADER_REP_POINTS_THANKS"] = "Thanks with one point";
lastly upload the attached file to your site.
[url="
http://devscorner.xyz/applications/core/interface/file/attachment.php?id=5927"]takereppoints.php[/url]

notice: i see an issue with people being able to give rep more then once.. oh well dont feel like dealing with it now.. the old pos was the same anyway LOL...
Tested everything myself so if having issues dial 911 and call someone who cares.