2016-08-12, 10:02 AM
Hello,
there are three reputation fields in ACP -> edit grup:
- reputation power (for select)
- reputation limit per day (related to sender)
- reputation limit in thread
But... from reputation.php:
This "maxreputationsperuser" is reputation limit per day, but related to receiver, not sender.
There is no option to this setting in ACP and value is always the same.
there are three reputation fields in ACP -> edit grup:
- reputation power (for select)
- reputation limit per day (related to sender)
- reputation limit in thread
But... from reputation.php:
// Is the user giving too much reputation to another?
if($mybb->usergroup['maxreputationsperuser'] != 0 && ($mybb->input['action'] != "do_add" || ($mybb->input['action'] == "do_add" && empty($mybb->input['delete']))))
{
$timesearch = TIME_NOW - (60 * 60 * 24);
$query = $db->simple_select("reputation", "*", "uid='".$uid."' AND dateline>'$timesearch'");
$numtoday = $db->num_rows($query);
if($numtoday >= $mybb->usergroup['maxreputationsperuser'])
{
$message = $lang->add_maxperuser;
if($mybb->input['nomodal'])
{
eval("\$error = \"".$templates->get("reputation_add_error_nomodal", 1, 0)."\";");
}
else
{
eval("\$error = \"".$templates->get("reputation_add_error", 1, 0)."\";");
}
echo $error;
exit;
}
}
This "maxreputationsperuser" is reputation limit per day, but related to receiver, not sender.
There is no option to this setting in ACP and value is always the same.