vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Moderating threads (but not posts) in certain forum by usergroup (https://vborg.vbsupport.ru/showthread.php?t=244323)

oldford 06-10-2010 04:37 AM

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!

oldford 06-10-2010 03:16 PM

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.


All times are GMT. The time now is 02:03 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01073 seconds
  • Memory Usage 1,709KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete