2011-07-15, 04:26 AM
This guide would help you to restrict the users of your board to give reputation to anyone unless they achieve the defined amount of posts.
Simply open reputation.php from your root directory and find:
(Note: There is multiple code present written above, only find the first code that is present first.)
And below it, add:
Replace/add next to 4 with the usergroup you wish to bypass and edit 20 with any amount of posts you'd like to have.
Simply open reputation.php from your root directory and find:
$plugins->run_hooks("reputation_start");
(Note: There is multiple code present written above, only find the first code that is present first.)
And below it, add:
if ($mybb->user['postnum'] <= "20" && $mybb->user['usergroup'] != "4")
{
error("You don't have enough post to rep.");
}
Replace/add next to 4 with the usergroup you wish to bypass and edit 20 with any amount of posts you'd like to have.