![]() |
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 |
You need to create a thread datamanager to change the thread. Try this:
Code:
$thread =& datamanager_init('Thread', $this->registry, ERRTYPE_SILENT, 'threadpost'); |
All times are GMT. The time now is 01:13 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|