The Arcive of vBulletin Modifications Site. |
|
Required X Post to Create New Thread Details »»
|
|||||||||||||||||||||||||
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. Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
great just what i was looking for!!!
installs |
|
#3
|
|||
|
|||
|
is there any way just to set this up in 1 forum? insted of all forums?
thanks boo |
|
#4
|
||||
|
||||
|
Quote:
for example, $forumid_req_minpost = array(2); |
|
#5
|
|||
|
|||
|
ahh ok thanks i get it
|
|
#6
|
|||
|
|||
|
|
|
#7
|
||||
|
||||
|
Quote:
|
|
#8
|
|||
|
|||
|
Thanks for making this available to everyone. It looks like a great hack!
I do have one question. Will members have to meet the minumum number each time they go to post a new thread, or only the first time? For example, would they have to reach 5 replies and then be able to create threads freely after that... or will they have to make five replies each time they want to post a thread? Rebecca |
|
#9
|
||||
|
||||
|
it checks for user's cumulative posts, then users can make as many threads if they meet required XX posts you assigned.
|
|
#10
|
|||
|
|||
|
Is there any way to modify it so the user has to meet the post requirement each time before starting a new thread?
|
![]() |
|
|