Quote:
Originally Posted by darnoldy
If I understand you correctly...
You have forums that put new posts int moderation. You want members who have already made more than 5 posts to not be put into moderation.
If that is what you want to do, you can do that with user groups permissions and automatic promotions—you don't need a plugin.
|
okay , but i don't want put all them in one group ... They are in more than 1 UserGroup
--------------- Added [DATE]1401127681[/DATE] at [TIME]1401127681[/TIME] ---------------
Quote:
Originally Posted by kh99
Try using hook newpost_process and replace your 2 sql queries with this code:
Code:
$post['visible'] = 1;
|
okay i change the hook and code , but still not work
note : the thread must be delete from table
moderation , Even Do not be a list of wating moderation
PHP Code:
$moderator_advanced_forums = explode(",", $vbulletin->options['moderator_advanced_forums']);
if($vbulletin->options['moderator_advanced_onoff']
AND $vbulletin->userinfo['posts'] >= $vbulletin->options['moderator_advanced_posts']
AND in_array($threadinfo[forumid], $moderator_advanced_forums) )
{
$post['visible'] = 1;
}