The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Thread moderation
Hi
I'm using hook: postdata_presave to sent to thread awaiting moderation when certain criteria is matched. For sent the post to moderation i use this and works fine: $this->set('visible', 0); but i want to send to moderation the thread enterely and not only the specific post. I tried $thread->set('visible', 0); but it do not work, which would be the correct code? Thanks |
#2
|
|||
|
|||
You need to create a thread datamanager to change the thread. Try this:
Code:
$thread =& datamanager_init('Thread', $this->registry, ERRTYPE_SILENT, 'threadpost'); $thread->set_existing($this->info['thread']); $thread->set('visible', 0); $thread->save(); |
Благодарность от: | ||
SnakeV |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|