Required X Post to Create New Thread
This modification is in the archives.
This mod was idea of HR3rdGen as requested here.
Mod title: Required X Posts to Make New Thread in Y Forum(s) Description: What this mod do is to disallows user with XX amount of posts to create New Thread in certain forums that you assigned. Of course, users can still view thread, reply to threads as normal, but not to make new thread until they meet the minimum number of required posts. File mod: 1 Installation Time: 1 min ------- OPEN: newthread.php, FIND: Code:
// check if there is a forum password and if so, ensure the user has it set verify_forum_password($foruminfo['forumid'], $foruminfo['password']); Code:
// setting for minumum post required to create new thread $num_minpost_required = 5; $usergroupid_req_minmpost = array(2,3,4,8,9); // use comma to separate your usergroupid $forumid_req_minpost = array(2,3,4,5,6); // use comma to separate your forumid if (in_array($bbuserinfo['usergroupid'], $usergroupid_req_minmpost) AND ($bbuserinfo[posts]<$num_minpost_required) AND in_array($foruminfo['forumid'], $forumid_req_minpost)) { print_no_permission(); } // end min post to create new thread You can more usergroups and forums to those array as you want. Download No files for download. |