Quote:
Originally Posted by kh99
The code that sets visible=1 for no moderation is just before hook newpost_process, so I think that is the hook you want to use. The code looks like this:
PHP Code:
$dataman->set('visible', 1);
$post['visible'] = 1;
so you probably should set both. Also you should not call $dataman->save() because this is called later, and some error checking is done first.
|
thnx so much , you are my Hero :up:
your first code i think it working very good
and Thank you for clarifying it .
PHP Code:
if($vbulletin->options['moderator_advanced_onoff']
AND $vbulletin->userinfo['posts'] >= $vbulletin->options['moderator_advanced_posts']
AND in_array($foruminfo[forumid], $moderator_advanced_forums1) )
{
$dataman->set('visible', 1);
}