The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Moderating threads (but not posts) in certain forum by usergroup
VB version 3.8
I have one forum where I'd like to have all new threads moderated, except those made by a certain usergroup. I would like all members to be able to make posts (ie. replies), but only this one usergroup to be able to start new threads. This is not how VB is set up. You can moderate threads AND posts for certain member groups, but not just starting new threads. I had it set up that way before upgrading to 3.8. I honestly don't remember how I did it. VB.com staff says it was never that way, so I must have modified the code at some point. I just don't recall how and can't find any threads on the subject. If you have any ideas or know of a thread/mod discussing this I'd be grateful. Thanks! |
#2
|
||||
|
||||
Nevermind. I found the solution. I went 4 yrs back through my old emails and found that a VB.org member (Kaezul) had helpfully given me the code to do this.
This assumes you have the forum in question set to moderate all new threads. Admin CP --> Forums & Moderators --> Forum Manager --> Edit Forum --> under Moderation Options check "yes" for Moderate Threads. Now it's one code edit. In functions_newpost.php find this: else { $dataman->set('visible', 1); $post['visible'] = 1; } and add below that: if ($type == 'thread') { if ($foruminfo['forumid'] == X AND is_member_of($vbulletin->userinfo, Y)) { $dataman->set('visible', 1); $post['visible'] = 1; } } Replace X with the forum's ID and Y with the usergroup ID you don't want to moderate. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|