MyBB Community Forums

Full Version: Adding a requirement for users to have minimum posts to give reputation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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:

$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. Wink
is there any plugin which is having same function like your tutorial?
I don't know such plugins, I like to manually edit things where its possible because the plugin which is unnecessary would do nothing but just adding loads of SQL queries, so better do manual PHP edits wherever its possible.
You can use Group Promotion System to archive this without editing files:
http://wiki.mybb.com/index.php/Admin_CP_...Promotions

This is a good tutorial btw, I also like core editing if it is possible :p
I feel group promotions nasty for these minor things, but yeah. Wink