PDA

View Full Version : build_new_post moderated?


benFF
10-24-2005, 08:37 AM
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


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? :(