vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   I must moderate all new threads (https://vborg.vbsupport.ru/showthread.php?t=154350)

Ducks 08-05-2007 07:21 AM

I must moderate all new threads
 
Everytime a user creates a thread I must moderate it to be shown. I'm not sure why this happen, but I'm using a custom thread creation page maybe my script needs a touch.

Code:

$vbulletin->options['reportforum'] = $_POST['genre'];
$report_foruminfo = fetch_foruminfo($vbulletin->options['reportforum']);

$newpost = array(
        'emailupdate' => 9999,
        'userid' => $vbulletin->userinfo['userid'],
        'username' => $vbulletin->userinfo['username'],
        'title' => $_POST['title'],
        'message' => $thread,
        'iconid' => $_POST['language']
);

require_once(DIR . '/includes/functions_newpost.php');
build_new_post('thread', $report_foruminfo, array(), array(), $newpost, $errors);

I hope you help me out.

ozmazdaclub 08-08-2007 03:11 PM

does this happen in all forum sections or only i one section?

ZomgStuff 08-08-2007 07:39 PM

Go into admin cp and make sure that that forum doesn't "follow moderatoin rules" or the opposite. Can't remember which, just find it and it'll say.

Farcaster 08-08-2007 08:51 PM

Ducks, this is a wild guess, but have you tried adding visible to the $newpost array and setting that to 1?


All times are GMT. The time now is 06:35 AM.

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.00985 seconds
  • Memory Usage 1,710KB
  • 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)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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