vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   build_new_post moderated? (https://vborg.vbsupport.ru/showthread.php?t=99174)

benFF 10-24-2005 08:37 AM

build_new_post moderated?
 
Hi,

Hopefully this is a simple question, but how do you stop a post made with build_new_post being moderated?

I have a closed forum, where I am automatically posting ads made from Photopost Classifeds (which include a link back to the classifieds software).

It I post the ad as an admin or moderator, all is fine, however if I post as a normal user, the thread is put in the moderation queue. The workround I am doing is when the thread is posted, manually set the visible field in the db to 1, however this is a little sloppy...

Is there someway to force the hidden value to be 1 automatically?

(Already tryed creating an array $threadinfo with hidden=1 and passing across, but no dice...)

cheers!

Ben

benFF 07-21-2009 11:06 PM

I know this is an old bump, but has anyone else ever come across this,

I'm coding something else which has the same issue, after calling the build_new_post function, I then need to call the "approve_thread" function otherwise it just won't show up! (but only for normal users, moderators and admin are fine ...?)

Antivirus 07-21-2009 11:48 PM

When setting the $foruminfo variable within the build_new_post() function... try setting $foruminfo[moderatenewthread] = 0. That should do it for you, otherwise you may also need to set $foruminfo[moderatenewpost] = 0 as well.

benFF 07-25-2009 08:34 PM

Cheers buddy, also looked like I needed

PHP Code:

      global $forumperms;
      
$forumperms fetch_permissions($b_id); 

Next problem - if I have more than 4 images in the post, it fails with an error saying I have too many. But actually in my vb settings, the limit is 0...

Am I missing something else somewhere? :(


All times are GMT. The time now is 01:48 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.00947 seconds
  • Memory Usage 1,715KB
  • 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_php_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