The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
[Solved] How to allow some users to put threads without waiting moderation
Hello ,
i have Some forums require waiting moderation for threads and posts , I want to allow for some users to put threads without "waiting moderation" if them posts more than 5 . and Does not show them this message "Thank you for posting! Your post will not be visible until a moderator has approved it for posting." that's my try but not work, Hook : newthread_form_complete code : PHP Code:
Any suggestions or ideas ?! |
#2
|
|||
|
|||
Try using hook newpost_process and replace your 2 sql queries with this code:
Code:
$post['visible'] = 1; |
#3
|
|||
|
|||
Quote:
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. |
#4
|
||||
|
||||
Quote:
--------------- Added [DATE]1401127681[/DATE] at [TIME]1401127681[/TIME] --------------- Quote:
note : the thread must be delete from table moderation , Even Do not be a list of wating moderation PHP Code:
|
#5
|
|||
|
|||
Quote:
Try adding this line in addition to what you have: Code:
$dataman->set('visible', 1); |
#6
|
||||
|
||||
Quote:
and i try it already , but not worked ... i used more of hook [ newpost_process,newpost_form_complete,newpost_comp lete, elc] PHP Code:
wait ... your code maybe working , I'm going to try it well |
#7
|
|||
|
|||
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:
|
Благодарность от: | ||
omardealo |
#8
|
||||
|
||||
Quote:
your first code i think it working very good and Thank you for clarifying it . PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|