![]() |
[solved] update forum counters on hook newpost_process
hello ,
i Create plugin on hook : newpost_process it job move threads to another forumid when user posted duplicate thread Content. PHP Code:
I tried a lot : PHP Code:
after threads greated already . is anyway to make update to forum counters on hook : newpost_process Or another way to update the forum counters when this condition is true ! |
I think maybe it only works in newpost_complete because when newpost_process is called, the new post has not been saved yet. Maybe you can do something like, in newpost_process:
Code:
if(//Condition) then in newpost_complete, Code:
if ($update_counters) |
Quote:
Your idea completely succeeded Thank you to my brother :up: |
All times are GMT. The time now is 05:26 AM. |
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:
|